Archive: How to create Uninstall.exe at compile time


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!!!


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.


This is usually required for signing, there are a couple of threads about signing on the forum, you will probably find more information there...