Skip to content
⌘ NSIS Forum Archive

Find AIM Directory

6 posts

buz#edited
get the value of this registry key:
"HKCU\Software\America Online\AOL Instant Messenger (TM)\CurrentVersion\AppPath" ""

you will get the full path to the app, for example: "C:\Program Files\AIM\aim.exe"
deguix#
Example (Not tested, I don't have AIM):

ReadRegStr $0 "HCKU" \
"Software\America Online\AOL Instant Messenger (TM)\CurrentVersion\AppPath" \
""

SetOutPath $0
File "FileName.ext"
Where "FileName.ext" is the file name wanted to be installed in the folder found.
Vytautas#
deguix, would you not have to remove the aim.exe from the end of the path? I also don't have aim so I can't test but the previous poster said that that command returned the path + aim.exe appended to it.

Vytautas
buz#
if you use this somewhere at the begining of your script, then $INSTDIR should hold the path to AIM's folder.

InstallDirRegKey HKCU \
"Software\America Online\AOL Instant Messenger (TM)\CurrentVersion\AppPath" \
""
this seems to remove "aim.exe" from the path.