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

How to find current directory where the install file resides.

Jump to solution

 

Can InstallShield script determine the current directory where the installation is occurring from? For example if I deploy my setup.exe file to a folder on the server named "C:\MyDeploy", and then proceed with the installation, is there a way for installscript to find out that the directory setup.exe resides in is "C:\MyDeploy"?

Labels (1)
0 Kudos
(1) Solution
Jenifer
Flexera Alumni

Hi @FlexeraFan ,

To find out current directory where the setup.exe resides:

  • You can use SRCDIR variable which provides the location of an uncompressed setup.exe for InstallScript projects.
  • If the location to a compressed single setup.exe is needed, the PACKAGE_LOCATION variable can be used.

 

Thanks,

Jenifer

View solution in original post

(1) Reply
Jenifer
Flexera Alumni

Hi @FlexeraFan ,

To find out current directory where the setup.exe resides:

  • You can use SRCDIR variable which provides the location of an uncompressed setup.exe for InstallScript projects.
  • If the location to a compressed single setup.exe is needed, the PACKAGE_LOCATION variable can be used.

 

Thanks,

Jenifer