Skip to content
⌘ NSIS Forum Archive

Generate Uninstaller with(out) an Installer?

4 posts

jelwell#

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.
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.
jelwell#
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.

This is awesome! Thanks.
Joseph Elwell.