Archive: Find AIM Directory


Find AIM Directory
I need to find the directory that AIM is installed in, how can I do this?


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"


Ya but I'm kinda new to this, how can I use that info to install a file there?


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.

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


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.