Old 24th August 2009, 06:06   #1
niobe
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
niobe is offline   Reply With Quote
Old 24th August 2009, 12:05   #2
nameless0815
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)
nameless0815 is offline   Reply With Quote
Old 24th August 2009, 12:48   #3
niobe
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!
niobe is offline   Reply With Quote
Old 24th August 2009, 13:13   #4
nameless0815
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.
nameless0815 is offline   Reply With Quote
Old 25th August 2009, 01:28   #5
niobe
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?
niobe is offline   Reply With Quote
Old 25th August 2009, 06:10   #6
nameless0815
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/
nameless0815 is offline   Reply With Quote
Old 25th August 2009, 07:09   #7
ionut_y
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
ionut_y is offline   Reply With Quote
Old 25th August 2009, 23:50   #8
niobe
Junior Member
 
Join Date: Aug 2009
Posts: 6
Thanks to you both, I'll check those out.
niobe is offline   Reply With Quote
Old 26th August 2009, 05:27   #9
ionut_y
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.
ionut_y is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump