Jump to content

Auto-compile NSI files


GEOSoft
 Share

Recommended Posts

I want to add the ability into one of my apps but I don't use NSIS anymore so I don't have the documentation. If anyone has already written this then I would appreciate seeing it. Then I can modify it to work in the app. I don't really feel like installing it again just to get the information. The app that I am working on compiles all portions of an application but it's dependent on what compilers are installed.

For example if my project is written using an AutoIt script + a help project + an Inno Setup script then it's a matter of selecting 3 checkboxes and clicking i button to get a Compiled Autoit script, a Compiled HTML help file and compile the setup program. Right now the only setup compiler it will handle is Inno and I want to add more.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

If you are asking what I think you are asking then the following will compile an NSIS script to an exe.

$NSISInstallationFolder = "C:\Program Files\NSIS"

$NSISInstallerFile = "My Program.nsi"

; Create the Installer Package

RunWait($NSISInstallationFolder & "\makensisw.exe """ & @ScriptDir & "\" & $NSISInstallerFile & """")

; Wait for the compiler to close

WinClose("MakeNSISW")

“Give a man a script; you have helped him for today. Teach a man to script; and you will not have to hear him whine for help.”AutoIt4UE - Custom AutoIt toolbar and wordfile for UltraEdit/UEStudio users.AutoIt Graphical Debugger - A graphical debugger for AutoIt.SimMetrics COM Wrapper - Calculate string similarity.

Link to comment
Share on other sites

Thanks Stumpii

That will save me from having to re-install NSIS

All I needed was the command string.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...