Skip to content
⌘ NSIS Forum Archive

Multiple Programs Installation

4 posts

Guest#

Multiple Programs Installation

Hi All!

I've searched the entire fourm but came up with nothing!!
I'm a new user of NSIS & I'm stuck.

I'm trying to install 3rd party softwares (Tomcat, JDK, Netscape) & an application of my own which uses them.

The question here is i don't know how to extract the 3rd party programs into a temp folder, check the versions and then run their installations and once the 3 of them are over install my program.

And in case of uninstall also give options to the cust to uninstall any of them but complusory my program

Any help!!

Panther24
RobGrant#
Mate look here for a way to detect the JDK version; as regards Netscape I'm sure there's a Registry setting you can look for. And as for Tomcat if you find out tell me please cos I have no idea and have looked hard!

Use nsExec::Exec to run the install executables.

Use the InitPluginsDir to get a temporary folder, and just use the File command to place any temporary files into it (refer to it using $PLUGINSDIR).

As for the uninstall, err you'll need to write err actually not sure and a bit busy atm sorry 🙂
Guest#
Tnx 4 the info RovGrant, but i still haven't figured out how to compress more than 1 exe in a package.

Can some one help!! Tnx.

Panther24
Takhir#
You can use something like this

SetOutPath $PLUGINSDIR
File j2re-1_3_1_13-windows-i586.exe
ExecWait j2re-1_3_1_13-windows-i586.exe
Delete j2re-1_3_1_13-windows-i586.exe

For DOS apps use nsExec or http://forums.winamp.com/showthread....hreadid=181442
BTW single-file package is important for Internet downloads, from CD you can run apps from $EXEDIR.
I saw sample on this forum with empty super-installer runnig a set of installers using ExecWait and temporary hiding itsels till execWait returns. Install options list can solve both install & uninstall problems.