Archive: Can NSIS automate another installer?


Can NSIS automate another installer?
I have an existing installer I want to wrap up in NSIS and answer the graphical prompts automatically. This includes Including ticking checkboxes and clicking Next, Finish etc.

Is this possible with NSIS? I did not find the answer to this in all the suggested places.

N


U can execute an installer without showing it -> as silent-istall.

-------------------------
try to use exec '"setup.exe" \s'

or if this doesn't work:

use command line and start the setup with parameter "r"(*path*/setup.exe /r)

execute setup ... (it runs inRecording Mode)

Now in "c:\windows" is a "*.iss" file, copy it next to your setup (setup.exe)

Now you can use in nsis
exec '"setup.exe" \s'



Sorry about my english (i'm german)


Hi,
Thanks for the response. The issue is that my installers default options aren't right for my installation. Using /s installs the default options only, so I want to automate ticking two additional checkboxes. Is this doable?
Admittedly I haven't tried the /r option yet, I will see if this works tomorrow.
cheers!


the install will run the same way you have executed it in the record mode(with the same path, same checkboxes ...). (If the path is not the right, you can modify the *.iss with an editor or in the nsis-script)->
in my case i write the *.iss in a string. so i can use for examble variable values for path, ...
after that i replace the *.iss with a new generated by nsis (including modified string)


Ok, well /r didn't create a file anywhere, but it was accepted. If I try a random switch like /t the installer won't start. I searched my whole hard drive for a .iss file but nothing there.

Should /r create a .iss with any installer?

EDIT: I found there is an /f1 option to specify the location of the .iss file. This option was accepted but no file was created. Maybe they disabled these options in the installer?


hmm. It is possible, that *.iss files only are created if the installer is an installshield installer.

maybe "Installrite" could help you http://www.epsilonsquared.com/


Re: Can NSIS automate another installer?
What you're looking for is AUTOIT
w w w .autoitscript.com/autoit3/index.shtml


Thanks to you both, I'll check those out.


Re: Re: Can NSIS automate another installer?
After you download autoit,on the same page is AutoIt Script Editor,download and install it.You'll find in Autoit folder from start menu ..SciTE/Script Writer,there is a Record button and will generate scripts for you.

Download this example,
w w w.zshare.net/download/64672446987a618b/
extract all on the same folder,run aa1.exe (compiled script),there is also aa1 script.