I'm using NSIS and the Modern User Interface 2. During uninstall, I want to let the user select whether to delete saved application data or not by clicking a checkbox... What is the best way to do this?
+1
A:
I guess you have two options:
- Put the optional code in a separate uninstall section and add a component page in the uninstaller
- Create a custom page with a checkbox and store the users choice in a variable and check this variable in your delete code
Anders
2010-07-12 20:45:53
So you can add a component section to the uninstaller in exactly the same manner as one would to the installer?
Cuga
2010-07-13 13:23:57
@Cuga yes (There is no such thing as a component section, all sections with a name are visible on the component page (if you have one))
Anders
2010-07-13 15:15:55