cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
sniperkid
Level 3

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
Labels (1)
0 Kudos
(2) Replies
joshstechnij
Level 10 Flexeran
Level 10 Flexeran

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.
0 Kudos
sniperkid
Level 3

Thanks alot!

Regards,

Sniperkid
0 Kudos