Skip to content
⌘ NSIS Forum Archive

Uninstall check section

3 posts

DVDK#

Uninstall check section

I'm a new happy user of NSIS and have made some different modern installers. I have now run into trouble because I have different things that the user can choose from when installing.

Let's say the user installs 3 out of 5 components. How do I then make the uninstall section check which components the user has installed? - so the uninstall section skips the parts/components that where not installed.

(As for now my script uninstalls all components included in the uninstall section.)
Sunjammer#
You'll need to record what the user installed in an ini file or the registry for example. Then on uninstall you read that information back and set the checkboxes appropriately.
DVDK#
Keeping track of installed components

Ok, that sounds good 👍. Do anyone know how to make such reg infomation in the installer? - and the commandoline to put in the uninstall section to call the reg infomation?

The thing is that my english is not that good 🙁, so having big trouble getting/understand the infomation from the html-manual.