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


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


Use InstallDirRegKey.


like this

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

???

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.


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

Thanks