dcsimg
Results 1 to 2 of 2

Thread: How to remove User Settings while uninstalling my Application

  1. #1

    Thread Starter
    Addicted Member Spybot's Avatar
    Join Date
    Jan 2019
    Posts
    173

    How to remove User Settings while uninstalling my Application

    Hello!

    I need some help here please!

    I installed an application I've created with Setup Project utility within Visual Studio 2019 community.

    My App uses "My.Settings" to store different values, I have a particular setting I've called: My.Settings.License = 0 or 1 depending on the User's input (by default I set it to zero).

    The problem comes when I uninstall the App and then reinstall it, this setting has a value of 1, meaning the program is already licensed. so the App starts and don't ask for license code anymore.

    I went to my setup project and I found Custom Actions, but I don't know what to write in order to delete this User setting while normal Windows Uninstaller is performing.

    Thank you.

  2. #2
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    103,319

    Re: How to remove User Settings while uninstalling my Application

    I don't know either but I thought that I'd just point out that user settings are per user, so you're going need to make sure that the settings are removed fro every user, not just the current user. I doubt that that's possible unless you're an administrator, so that may be why it's not done.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width