Old 29th December 2006, 22:00   #1
Strikr
Junior Member
 
Join Date: Dec 2006
Posts: 9
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.
Strikr is offline   Reply With Quote
Old 29th December 2006, 22:30   #2
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
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. :-)

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 29th December 2006, 22:45   #3
Strikr
Junior Member
 
Join Date: Dec 2006
Posts: 9
thanks alot. I will try that out tonight at home see how it goes.
Strikr is offline   Reply With Quote
Old 30th December 2006, 16:26   #4
Strikr
Junior Member
 
Join Date: Dec 2006
Posts: 9
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.

Last edited by Strikr; 30th December 2006 at 16:52.
Strikr is offline   Reply With Quote
Old 30th December 2006, 17:30   #5
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
Something like this, if I got what you mean:
code:
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


Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 31st December 2006, 18:14   #6
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
Added page at wiki with complete example regarding to the subject.
http://nsis.sourceforge.net/Installe..._Installations

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 3rd January 2007, 20:16   #7
Strikr
Junior Member
 
Join Date: Dec 2006
Posts: 9
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.

Last edited by Strikr; 3rd January 2007 at 21:23.
Strikr is offline   Reply With Quote
Old 3rd January 2007, 22:50   #8
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
Remove the license page if you don't want it, remove and the SetAutoClose false, and you ready to go.

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 4th January 2007, 20:48   #9
Strikr
Junior Member
 
Join Date: Dec 2006
Posts: 9
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.
Strikr is offline   Reply With Quote
Old 4th January 2007, 21:01   #10
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
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

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 5th January 2007, 20:14   #11
Strikr
Junior Member
 
Join Date: Dec 2006
Posts: 9
I fixed all my problems. Thanks

Last edited by Strikr; 5th January 2007 at 20:38.
Strikr 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