PDA

View Full Version : Installscript project - Get Setup.exe location



mymobile
06-30-2005, 07:26 PM
How do I get the Setup.exe location? My setup needs to read the file that can be included in the Setup.exe.

Using Install script MSI project, I was using the SETUPEXEDIR, which gives me the location of the Setup.exe being run.

I am not able to do the same using Installscript project. If I use the SRCDIR, this gives me the location of the .CAB file. It is because I have one compressed Setup.exe and when it is run it extracts .CAB file to a temp folder.

Using Installscript project lot functions are missing but I have to use the Installscript project as I need to have the Multiple Instance functionality.

Any one tried this?

RobertDickau
06-30-2005, 08:07 PM
You might see if the PACKAGE_LOCATION InstallScript variable will return the value you want.

mymobile
07-01-2005, 11:46 AM
Yes, this is what I wanted.

Thanks!