Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Force remove the user.config during uninstall?

how do i code the custom action during the uninstall? Would it require a batch file?

thanks!

like image 242
Martin Ongtangco Avatar asked Jan 20 '23 05:01

Martin Ongtangco


1 Answers

The user.config data gets stored in the %APPDATA%\ProjectName folder.

If you want to remove the user.config data when you uninstall then you can just use the System.IO.Directory.Delete("%APPDATA%\ProjectName");

Note: You can get the installed path using the following Context.Parameters["assemblypath"] this is the path that the user selects to install the project.

like image 118
Jethro Avatar answered Jan 30 '23 13:01

Jethro