Is there a way to compile a NSIS package as part of a build? I use MSBuild.
Update: There is a command tool called makensis as part of the NSIS download. I just executed that from my build script and handed it my .nsi file.
Example:
<Target Name="MakeDistributable">
<Exec command="..\Tools\NSIS\makensis.exe MyDistScript.nsi" WorkingDirectory="..\Installation" />
</Target>
NSIS installers are generated by using the 'MakeNSIS' program to compile a NSIS script (. NSI) into an installer executable. The NSIS development kit installer sets up your computer so that you can compile a . nsi file by simply right-clicking on it in Explorer and selecting 'compile'.
Unfortunately, No. NSIS lets you create scriptable, procedural installation packages. It's simple, easy to use and has a number of features not present in Windows Installer. Windows Installer (MSI) creates database driven, transactional installation packages.
This is what I used
<Target Name="MakeDistributable">
<Exec command="..\Tools\NSIS\makensis.exe MyDistScript.nsi" WorkingDirectory="..\Installation" />
</Target>
Cruise Control .NET builds itself and creates a NSIS package as part of the build process. I recommend taking a look at its build process and source package. You will find everything you need in the nant build file in one of the source zip files from CCNet live.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With