cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Kotiomkin
Level 5

Get the setup location

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!
Labels (1)
0 Kudos
(3) Replies
RobertDickau
Flexera Alumni

For InstallScript, perhaps see if PACKAGE_LOCATION contains the value you want?
0 Kudos
Kotiomkin
Level 5

No... it return an empty string ("")...
0 Kudos
RobertDickau
Flexera Alumni

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.
0 Kudos