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
- :
- Package_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
‎Dec 28, 2010
01:50 PM
need script to read exe folder, not necessarily working folder
I was using GetCurrentDir(), and that seemed to work fine... but apparently that is only the case if you invoke the setup exe with your active working directory equal to the folder where the exe is. This method breaks down if a user sets up a batch file / script in some other folder which calls the setup exe without changing the working / active folder first.
This is for a pure Installscript project, so if there is a Windows Installer variable that would have helped here, I can't use it.
This is for a pure Installscript project, so if there is a Windows Installer variable that would have helped here, I can't use it.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 28, 2010
02:14 PM
I should clarify one more thing - I'm generating a single (self-extracting) exe, and as mentioned in some other threads, SCRDIR will not give me the correct folder (I had tried this earlier, before arriving at GetCurrentDir() ).
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 28, 2010
05:00 PM
Issue has been resolved: I found another thread which referenced using PACKAGE_LOCATION in a pure Installscript project, and based on some quick testing, this will work fine (I just need to filter out the filename portion).
For reference, here's the thread I was referring to:
http://community.flexerasoftware.com/showthread.php?t=194020
For reference, here's the thread I was referring to:
http://community.flexerasoftware.com/showthread.php?t=194020
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)