Old 10th January 2008, 11:18   #1
oreillyr
Junior Member
 
Join Date: Jan 2008
Posts: 6
Wrap multiple MSI's(newbie)

HI All,

I have a requirement for a client to wrap three MSI's into a single file install. NSIS was recommended to me as the solution! Is it possible to use NSIS to achieve this? I have had a look and dont see MSI's mentioned(possibly not looked efficiently!. When looking at some of the scripts it mentions the installdir however I am looking for something that you can run from the desktop which will just kick off the MSI's one after another, the InstallDir being taken care of in the MSI's themselves. Sorry if I have missed something simple!Could someone point me in the right direction either to a previous post or some sample script involving multiple MSI install? Thanks in advance!
oreillyr is offline   Reply With Quote
Old 10th January 2008, 11:36   #2
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
Probably you did not perform a deep search into the forum.
These are regular expressions for nsis. You can extract msi's into $PLUGINSDIR and call msiexec for each one.
You're able to check if the required version of msiexec is installed on the target and download it if needed.

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 10th January 2008, 13:03   #3
oreillyr
Junior Member
 
Join Date: Jan 2008
Posts: 6
Thanks for the reply. Could you give me the URL for one such post please? I have been searching through since and have not found any! cheers
oreillyr is offline   Reply With Quote
Old 10th January 2008, 13:26   #4
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
There's s huge "database" here. Just for reference...

http://forums.winamp.com/search.php?...by=&sortorder=

Also you may want to review the documentation,

http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.1

http://nsis.sourceforge.net/Docs/Chapter4.html#4.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 10th January 2008, 13:53   #5
oreillyr
Junior Member
 
Join Date: Jan 2008
Posts: 6
Thanks mate. Will be more thorough when next searching
oreillyr is offline   Reply With Quote
Old 11th January 2008, 13:01   #6
oreillyr
Junior Member
 
Join Date: Jan 2008
Posts: 6
Could anyone post a complete sample script which just installs 1 MSI and I will hopefully be able to work out how to do the rest please? I am not a developer/scripter by any stretch of the imagination! I am having trouble with the installdir concept as the MSI will take care of all that anyway. Do I need to set an installdir? Any help would be appreciated!
oreillyr is offline   Reply With Quote
Old 11th January 2008, 14:09   #7
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Use File and then ExecWait.

Stu
Afrow UK is offline   Reply With Quote
Old 11th January 2008, 14:53   #8
oreillyr
Junior Member
 
Join Date: Jan 2008
Posts: 6
Could you expand a bit? Post a snippet perhaps?
Cheers,
Rob
oreillyr is offline   Reply With Quote
Old 11th January 2008, 16:12   #9
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
You don't need to use InstallDir unless you installer has to extract a custom installation beyond msi's.
My suggestion is to use $PLUGINSDIR as I mentioned above.

Also, you may want to search wiki to grab useful info.

http://nsis.sourceforge.net/List_of_...SIS_repository

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 11th January 2008, 16:18   #10
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
code:
InitPluginsDir
SetOutPath $PLUGINSDIR
File setup.msi
ExecWait `msiexec.exe /qn /i "setup.msi"` $R0
${If} $R0 != 0
DetailPrint `Application installation failed: $R0`
Abort
${EndIf}


Pretty self explanatory. Look up the instructions if you need more information.

Stu
Afrow UK is offline   Reply With Quote
Old 14th January 2008, 10:13   #11
oreillyr
Junior Member
 
Join Date: Jan 2008
Posts: 6
Self explanatory when you know how Thanks for your help guys
oreillyr 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