Archive: Generate Uninstaller with(out) an Installer?


Generate Uninstaller with(out) an Installer?
I've been using NSIS to generate an Installer for a while now but now I have the need to generate an uninstaller that for target machines that have never run the NSIS generated Installer.

The issues I forsee with this is knowing about $INSTDIR - but I imagine that could be read from the registry key.

I'm basically using another technology (in this case) for the installer, so I can write any information that the NSIS uninstaller would need. Hopefully it as simple as setting a registry key that corresponds to $INSTDIR. Since my uninstaller section does not refer to any other unknown information.

Joseph Elwell.


use the one Section
and use it to declare all the files
you wanna delete or remove


$INSTDIR in the same as $EXEDIR in the uninstaller.

You can create an Uninstall section, run the installer (with WriteUninstaller) and copy the uninstaller.


Quote:


This is awesome! Thanks.
Joseph Elwell.

Originally posted by Joost Verburg
$INSTDIR in the same as $EXEDIR in the uninstaller.

You can create an Uninstall section, run the installer (with WriteUninstaller) and copy the uninstaller.