|
|
#1 |
|
Junior Member
Join Date: Jul 2006
Posts: 4
|
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. |
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
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.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#3 |
|
Major Dude
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
|
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...)
|
|
|
|
|
|
#4 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
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 |
|
|
|
|
|
#5 |
|
Major Dude
Join Date: May 2005
Location: New Zealand
Posts: 916
|
Or, create a batch file from an nsis script
.
"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me) NSIS 3 POSIX Ninja Wiki Profile |
|
|
|
|
|
#6 |
|
Senior Member
Join Date: Jul 2004
Location: Switzerland
Posts: 223
|
Batchfile
Hi dhalsim2
Maybe http://www.jensign.com/JavaScience/w...toSigncode.txt 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 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|