|
|
#1 |
|
Junior Member
Join Date: Aug 2009
Posts: 6
|
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 |
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Jun 2009
Posts: 7
|
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) |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Aug 2009
Posts: 6
|
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! |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Jun 2009
Posts: 7
|
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) Last edited by nameless0815; 24th August 2009 at 13:29. |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Aug 2009
Posts: 6
|
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? |
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Jun 2009
Posts: 7
|
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/ |
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Jan 2007
Posts: 16
|
Re: Can NSIS automate another installer?
What you're looking for is AUTOIT
w w w .autoitscript.com/autoit3/index.shtml |
|
|
|
|
|
#8 |
|
Junior Member
Join Date: Aug 2009
Posts: 6
|
Thanks to you both, I'll check those out.
|
|
|
|
|
|
#9 |
|
Junior Member
Join Date: Jan 2007
Posts: 16
|
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. Last edited by ionut_y; 26th August 2009 at 07:14. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|