简体   繁体   中英

Removing program settings with nullsoft uninstaller

I have a C# program that is installed using Nullsoft installer script and I have discovered that the program is littering files :) .

The program is using:

Properties.Settings.Default.Save

to store settings. These settings seems to end up in a folder with a very nontrivial name like:

$user/appdata/local/$publisher/myprogram_Url_sad546a5s4d6a5sd1adsd6/$version/

So my question is: How do I find this name from NullSoft so I can remove the files?

A quick and dirty solution would of course be to remove every older containing the name "myprogram" but that would prevent having several versions of the program.

You can search for files/folders with the ${Locate} "$localappdata\\$publisher" "/L=D /G=0 /M=myprogram_*" MyCallbackfunc macro and check in MyCallbackfunc if that folder contains a $version folder. You can also call FindFirst directly if you don't want to use a macro...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM