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

Cannot access setup outside of installshield

Hello, as this seems rather rudementary I'm sure I'm just overlooking the obviousl way to do this...please allow me to explain.

We distribute software for several different product via CD. Fo exapmle lets say we have products A, B, C , D, E, F, G While the end user may only be interested in D, all the others are on the ditribution CD as well.

Some of these need a third party program to be installed as well, some don't. This third party program is relatively large. It makes no sense to have it be on the CD in repeated places for the installs that require it.

The CD structure looks something like this

A ¬
---software ¬
-------------setup.exe
B ¬
---software ¬
-------------setup.exe
C ¬
---software ¬
-------------setup.exe
thirdParty ¬
...............L v1 ¬
.......................L setup.exe

I've tried running a custom action after file transfer like

..\..\thirdParty\v1\setup.exe

using both the File Exists and Browse options to no avail. Despite the fact that these are the correct relative locations I get an error 1606: Could not access network location when installing from the CD

So... if figure I must be barking up the wrong tree competely, can anybody please direct me in the proper manner to accomplish this?

Thank you

Mark
Labels (1)
0 Kudos
(3) Replies
hidenori
Level 17

You may need to use the SourceDir Windows Install property as follows:

[SourceDir]thirdParty\v1\setup.exe
0 Kudos
Igeeky1
Level 2

hidenori wrote:
You may need to the SourceDir Windows Install property as follows:

[SourceDir]thirdParty\v1\setup.exe


Thanks, sounded great, but then got the same error

error 1606: Could not access network location ..\..\thirdParty\v1\setup.exe

Any other thoughts?
0 Kudos
hidenori
Level 17

It looks like that you need to write code to accomplish it. The following is an sample InstallScript code to get the location of your third party program:

function MyFunction(hMSI)
string svDisk, szPath;
begin
if (GetDisk (SRCDIR, svDisk) == 0) then
szPath = svDisk ^ "thirdParty\\v1\\setup.exe";
endif;
end;
0 Kudos