This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Get the setup location
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 16, 2009
10:51 AM
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!
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!
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 16, 2009
11:06 AM
For InstallScript, perhaps see if PACKAGE_LOCATION contains the value you want?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 16, 2009
11:09 AM
No... it return an empty string ("")...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 16, 2009
11:21 AM
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.