cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
FlexeraFan
Occasional contributor

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

Accepted Solutions
Flexera Jenifer
Flexera

Re: How to find current directory where the install file resides.

Jump to solution

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

1 Reply
Flexera Jenifer
Flexera

Re: How to find current directory where the install file resides.

Jump to solution

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