cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
eckerm
Level 2

Single Prerequisite Folder for Multiple Setups

Hello!

In my company, we are deploying a single cd with multiple programs, all setups being created with installshield. Most of these programs use similar prerequisites (e.g. .NET Framework).

Currently, i have to deploy these prerequisites with every application, since the folder for the prereqisites is directly below the application setup folder.
This leads to the following structure on the CD:

Product 1
- Setup.exe
- ISSetupPrerequisites
Product 2
- Setup.Exe
- ISSetupPrerequisites

What i want now is to have ONE single folder with the prerequisites of all applications. The structure of my CD would be as follows:

Product 1
- Setup.exe
Product 2
- Setup.Exe
ISSetupPrerequisites

Is there any way to achieve this or is this impossible at all?

Thanks, Best Regards
Markus
Labels (1)
0 Kudos
(1) Reply
Earthshine
Level 4

We use ISScript based projects, so it is kind of easy to do this.

for example, in the OnFirstUIBefore event, you can do the following

#define SD_PREREQS "Prereqs" // Make this the name of your pre-reqs dir

szPath = SRCDIR ^ SD_PREREQS;
CheckWinInstRedist(szPath);
CheckVCRedist(szPath ^ "vcredist_x86.exe");
CheckVCRedist(szPath ^ "vcredist_x86_08.exe");


/////////////////////////////////////////////////////////////////////////
// FUNCTION: CheckVCRedist
// PURPOSE: Check VC Redist
///////////////////////////////////////////////////////////////////////////////
function CheckVCRedist(szPath)
begin

LaunchAppAndWait(szPath, "/q", LAAW_OPTION_SET_BATCH_INSTALL | LAAW_OPTION_WAIT);
return 0;

end;
0 Kudos