Skip to content
⌘ NSIS Forum Archive

How to create Uninstall.exe at compile time

3 posts

badeabhijit#

How to create Uninstall.exe at compile time

Hi,

I have the code in which the uninstaller exe is created in the installer directory when we run the nsi script.

But I want that the exe should get created at compile time at any specified directory (e.g. C:\).

How to create Uninstaller exe in the specified directory at the compile time of the nsi script.

Please help me!!!
MSG#
The most straight-forward way would be to compile an nsi that writes your uninstaller, then execute that compiled installer, then compile your real nsi which will include your uninstall.exe. You could use a batch script, vbscript or even an NSIS exe, but you can also execute system commands using the compile time functions from inside your nsi script. See chapter 5 of the manual.
Anders#
This is usually required for signing, there are a couple of threads about signing on the forum, you will probably find more information there...