Skip to content
⌘ NSIS Forum Archive

Run a command after installer compilation

6 posts

dhalsim2#

Run a command after installer compilation

Is it possible to run a command from within an .nsi script after an installer has been compiled?

Specifically, I'd like to sign the .exe with Microsoft's signcode.
kichik#
You can run a program on the stub itself, without the data, using !packhdr. However, there's no way to run a program after the installer is completely ready. You can use a batch file for that.
Comperio#
Couldn't you just run the command using a !system or !execute command as the very last line of your NSI script file? (I'm just being curious...)
Afrow UK#
That won't work as the compression/build process is only performed after the script has been parsed and executed.
You'd need a batch file to run makensis and then run the program.

-Stu
bholliger#
Batchfile

Hi dhalsim2

Maybe

is of use for you. With this script you dont have to enter the password for the certificate each time.

If you need a sample for NSIS output signing, you can find it on www.quicksupport.org Download, Extract the package, in the Path Paket\ there are several batchfiles.

Hope this helps.

Greetings,

Bruno