Using NSIS, how to let user choose option on uninstall?
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?
Solution
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