PDA

View Full Version : Cannot access setup outside of installshield



Igeeky1
03-18-2009, 03:56 PM
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

hidenori
03-19-2009, 09:58 AM
You may need to use the SourceDir Windows Install property as follows:

[SourceDir]thirdParty\v1\setup.exe

Igeeky1
03-19-2009, 11:24 AM
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?

hidenori
03-20-2009, 11:47 PM
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;