Code: Select all
FileGetShortcut, %A_StartMenuCommon%\Programs\Google Chrome.lnk, ChromePath
RegRead, vPath, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe
MsgBox, 0, , %ChromePath%`n%vPath%`n
c:\Program Files (x86)\Google\Chrome\Application\chrome.exe
c:\Program Files\Google\Chrome\Application\chrome.exe
The strange thing is that the link in the start menu in c:\ProgramData\Microsoft\Windows\Start Menu\Programs\Google Chrome.lnk
points to the second output line.
The impact is that using the chrome.ahk inclusion throws an exception: Chrome could not be found
It has been working for a long time, but recently I re-installed chrome. After that the error occurs.
Any ideas what migth be wrong?