Question How to start a program before Uninstall or clear mySettings? Using Setup Project

Flippedbeyond

Well-known member
Joined
Dec 19, 2008
Messages
198
Programming Experience
1-3
First time using the setup project, it installs and uninstalls the application and files just fine, however the settings that are stored in user/appdata on the computer from mySettings are not being deleted or reset.

I am just having the user go to the control panel to uninstall the program, is there a way i can have the uninstaller run a program before it starts the uninstall? Or how can i reset/delete the settings stored in user/appdata when the uninstaller is ran?

I am trying to avoid having to use a textwriter and reader to create a file to store my settings, i'd just like to use the mySettings option if possible...

Thanks in advance
 
Resolved

This thread has been resolved. Please mark it as resolved. Thank you.

I found a solution, when using the setupwizard in VS.Net, to add custom events before an uninstall just use the custom actions editor.

See link for more info.
Custom Actions Management in Deployment
 
Back
Top