Archive: How to add an option to leave setting files when uninstall


How to add an option to leave setting files when uninstall
What's the most efficient way to add a page with a checkbox which permit the user to leave his setting file when uninstall?
From the consideration of installer binary size.


I guess you need a custom page for this to work,
If the checkbox or may be a radio button is selected you can insert a code that looks like this:
(This is done using radio buttons)

ReadINIStr $0 "$PLUGINSDIR\iniFile.ini" "Field 2" "State"
${If} $0 = "1"
; Code to remove the settings file
${EndIf}

Hope this helps you, Best of luck.


I have the same question as the OP, but this doesn't seem to be an answer. I have a MUI2 installer/uninstaller setup that all works great. All I want to do is add 2 checkboxes to the uninstaller confirmation page that allow the user to optionally uninstall two classes of user data along with the product.

I understand that there will need to be logic to query the state of the checkbox - but I can't wrap my brain around how to actually add the checkboxes to the actual page!

Please help!