Skip to content
⌘ NSIS Forum Archive

Locate an exe file and use path as installpath???

5 posts

Debone#edited

Locate an exe file and use path as installpath???

can anyone help me. im trying to make and installer for addons for wow and it needs to locate wow.exe and chose the path as the install path. but it need to locate wow.exe on any drive and any path

If it could detect the regdir instead it would be awsome to

HKEY_LOCAL_MACHINE\SOFTWARE\Blizzard Entertainment\World of Warcraft "InstallPath"

Plz help
Debone#
like this

Originally posted by kichik
Use InstallDirRegKey.
InstallDirRegKey HKEY_LOCAL_MACHINE\SOFTWARE\Blizzard Entertainment\World of Warcraft "InstallPath"

???
kichik#
Almost... HKEY_LOCAL_MACHINE goes in a separate parameter and the second parameter, containing the path (Software\Blizzard...) should be quoted because it contains spaces.
Debone#
Found it

InstallDirRegKey HKLM "SOFTWARE\Blizzard Entertainment\World of Warcraft" "InstallPath"

Thanks