PDA

View Full Version : Get the setup location



Kotiomkin
01-16-2009, 11:51 AM
Hi all
is there a safety way to get the setup path of an InstallScript 2008 project?

For example, suppose that I launch my setup from "C:\MySetup\": I need to detect (during the installation) the full path of the setup file (that will be something like "C:\MySetup\Media\Release 1\Disk Images\Disk1\setup.exe").

I've found the SRC function and the SETUPEXEDIR too, but no one of them return me the path...

What is the correct way to do it?

Thank you!

RobertDickau
01-16-2009, 12:06 PM
For InstallScript, perhaps see if PACKAGE_LOCATION contains the value you want?

Kotiomkin
01-16-2009, 12:09 PM
No... it return an empty string ("")...

RobertDickau
01-16-2009, 12:21 PM
If it's an option to build a self-extracting executable, PACKAGE_LOCATION should work. For an uncompressed build, SRCDIR might have the value you want.