tags:

views:

323

answers:

2

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>
+1  A: 

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.

Pete Davis
Perfect! I'll have a look.
Riri
A: 

This is what I used

<Target Name="MakeDistributable">
  <Exec command="..\Tools\NSIS\makensis.exe MyDistScript.nsi" WorkingDirectory="..\Installation" /> 
</Target>
Riri