Skip to content
⌘ NSIS Forum Archive

Silent Uninstall suggestion

1 posts

mgentry#

Silent Uninstall suggestion

Modifying Main.c in the exehead project as follows:
Replace line 311:

lstrcat(buf2,"\" _=");
with:

if (silent)
lstrcat(buf2,"\" /S _=");
else
lstrcat(buf2,"\" _=");
This change allows you to specify /S on the command line of the uninstaller and force it to be silent. Obviously it's needed because the uninstaller copies itself to a temp directory and executes the copy and needs to be told the origanal exe was called with /S in order to itself run silently.

-martin