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
- :
- Environment variables - get current dir
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
‎Nov 12, 2009
08:59 AM
Environment variables - get current dir
Anyone know how to get the absolute path of the exe that is run ?
for example
if i run this from C:\setup.exe, it will return C:\
if i run this from \\server1\folder\setup.exe it will return \\server1\folder\
Thanks
Sniperkid
for example
if i run this from C:\setup.exe, it will return C:\
if i run this from \\server1\folder\setup.exe it will return \\server1\folder\
Thanks
Sniperkid
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 12, 2009
11:39 AM
If this is an MSI project launched with setup.exe, the SETUPEXEDIR property should provide the path the setup was launched from. If this is an InstallScript project, either SRCDIR or PACKAGE_LOCATION (depending on whether the setup is uncompressed or a single .exe) should provide the launch path.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 13, 2009
03:51 AM
Thanks alot!
Regards,
Sniperkid
Regards,
Sniperkid