Old 22nd October 2012, 08:06   #1
vuser
Junior Member
 
Join Date: Oct 2012
Posts: 6
Bundle an MSI & a zip file

I have never worked with NSIS. I came investigating it because it has good compression.

I have a MSI file( around 4MB ) created using Installshield and a zipped up directory.

I want to create an installer which does the following
- Invoke the MSI
- Read the registry to find out where the MSI has been installed to
- Unzip the zipped up directory to that directory. The unzipping should happen silently - i.e. it shouldn't ask for directory to be unzipped to.
- Some pack files should be unpacked to jar files using unpack200.exe.

Is something like this possible through NSIS? What's the learning curve to achieve something like this?

So I am assuming any NSIS installer I create would be 12 + 4 + few MBs.

Is something like this doable with NSIS?
vuser is offline   Reply With Quote
Old 22nd October 2012, 09:08   #2
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
Yes, this will be easy to accomplish, assuming that the MSI's install directory can be read from registry properly. This means the NSIS installer needs to run at the same level as the MSI installer (admin or userlevel). You can use the File command to install files (forget about zipping anything). Extract unpack2000 to $PLUGINSDIR and run it from there using ExecWait.


To learn NSIS, start with examining NSIS\Examples\Example1.nsi and Example2.nsi. Find out what all commands do, using the command reference: http://nsis.sourceforge.net/Docs/Chapter4.html
Once you know what all the commands in those Examples do, and why, you will be well on your way to creating your own installer.
MSG is offline   Reply With Quote
Old 26th October 2012, 11:15   #3
vuser
Junior Member
 
Join Date: Oct 2012
Posts: 6
Thank you, MSG. I have gone through the examples now and also checked some basic tutorials on the webpage. Very easy learning curve. Wonderful product.
vuser 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