- NSIS Discussion
- multiple installment
Archive: multiple installment
Strikr
29th December 2006 23:00 UTC
multiple installment
My "Supervisor" told me I need to make a script using NSIS to install several executables. I have been through the tutorial, everything and I am completly lost. I really need some indept help with this. I just cant seem to figure it out.
Can anyone bring me on the right track for where to get going. I need to make a script that is able to execute 7 programs or so. Also the programs are located on a site.
Red Wine
29th December 2006 23:30 UTC
First step should be to check if the program is already installed.
Common way to achieve such a thing is to read a value from Registry .
Assuming that the program is not installed you call a download plugin e.g Inetc plugin to download program's installer.
After a successful download execute Scripting Reference-ExecWait the downloaded installer.
Once everything is done, you may proceed to the next program following the same procedure. :-)
Strikr
29th December 2006 23:45 UTC
thanks alot. I will try that out tonight at home see how it goes.
Strikr
30th December 2006 17:26 UTC
I got it to download and execute. I am just wondering if there is a way to make it accept the license and just click the next buttons for each install.
I just need it to install the .exe by itself.
Red Wine
30th December 2006 18:30 UTC
Something like this, if I got what you mean:
Page License
Page InstFiles pre1
Page InstFiles pre2
Section "Prog 1" sec1
# download + execute prog 1
SectionEnd
Section 'Prog 2' sec2
# download + execute prog 2
SectionEnd
function pre1
sectionsetflags ${sec1} 1
sectionsetflags ${sec2} 0
functionend
function pre2
sectionsetflags ${sec1} 0
sectionsetflags ${sec2} 1
functionend
Red Wine
31st December 2006 19:14 UTC
Added page at wiki with complete example regarding to the subject.
http://nsis.sourceforge.net/Installe..._Installations
Strikr
3rd January 2007 21:16 UTC
I am not too sure if im following you with the wiki example there. I got the wiki to work but I get a license agreement which is one thing I cannot have.
This is what is done, all that is left is to run threw the licenses and other windows without having to click anything.
I download the program off the net using inetc::get then use exec to execute it and then im point blank. I got a next text button and I gotta accept license agreement. I want to be able to do with silently lets say.
Red Wine
3rd January 2007 23:50 UTC
Remove the license page if you don't want it, remove and the SetAutoClose false, and you ready to go.
Strikr
4th January 2007 21:48 UTC
It solves my problem there
Problem # I dunno
Now when I come to install the program I need for that to run without having me to press next or accept the license.
I dont even know if its possible.
Red Wine
4th January 2007 22:01 UTC
You may want to refer to NSIS documentation especially on 4.8.1.36 SilentInstall.
http://nsis.sourceforge.net/Docs/Chapter4.html#4.8.1
Strikr
5th January 2007 21:14 UTC
I fixed all my problems. Thanks