Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create NSIS package as part of build

Tags:

nsis

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>
like image 874
Riri Avatar asked Jul 13 '09 12:07

Riri


People also ask

How do you compile NSIS?

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'.

Can NSIS create MSI?

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.


2 Answers

This is what I used

<Target Name="MakeDistributable">
  <Exec command="..\Tools\NSIS\makensis.exe MyDistScript.nsi" WorkingDirectory="..\Installation" /> 
</Target>
like image 191
Riri Avatar answered Sep 21 '22 03:09

Riri


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.

like image 21
Pete Davis Avatar answered Sep 23 '22 03:09

Pete Davis