Author: Zero3
Date: 2009-01-23 15:09:09 +0000 (Fri, 23 Jan 2009)
New Revision: 25244

Modified:
   trunk/apps/wininstaller/src_freenethelpers/FreenetLauncher.ahk
Log:
Add support for Google Chrome to the launcher and misc. wording and spelling

Modified: trunk/apps/wininstaller/src_freenethelpers/FreenetLauncher.ahk
===================================================================
--- trunk/apps/wininstaller/src_freenethelpers/FreenetLauncher.ahk      
2009-01-23 14:53:27 UTC (rev 25243)
+++ trunk/apps/wininstaller/src_freenethelpers/FreenetLauncher.ahk      
2009-01-23 15:09:09 UTC (rev 25244)
@@ -92,13 +92,13 @@
 _URL = http://127.0.0.1:%_Port1%/
 
 ;
-; Try browser: FireFox
+; Try browser: Mozilla FireFox
 ;
-RegRead, _FFVersion, HKEY_LOCAL_MACHINE, SOFTWARE\Mozilla\Mozilla Firefox, 
CurrentVersion
+RegRead, _FFVersion, HKEY_LOCAL_MACHINE, Software\Mozilla\Mozilla Firefox, 
CurrentVersion
 
 If (!ErrorLevel && _FFVersion <> "")
 {
-       RegRead, _FFPath, HKEY_LOCAL_MACHINE, SOFTWARE\Mozilla\Mozilla 
Firefox\%_FFVersion%\Main, PathToExe
+       RegRead, _FFPath, HKEY_LOCAL_MACHINE, Software\Mozilla\Mozilla 
Firefox\%_FFVersion%\Main, PathToExe
 
        If (!ErrorLevel && _FFPath <> "" && FileExist(_FFPath))
        {
@@ -108,6 +108,22 @@
 }
 
 ;
+; Try browser: Google Chrome (no direct registry key to where it is installed, 
so we will have to do with what we get)
+;
+RegRead, _ChromeInstallDir, HKEY_LOCAL_MACHINE, 
Software\Microsoft\Windows\CurrentVersion\Uninstall\Google Chrome, 
InstallLocation
+
+If (!ErrorLevel && _ChromeInstallDir <> "")
+{
+       _ChromePath = %_ChromeInstallDir%\chrome.exe
+
+       IfExist, %_ChromePath%
+       {
+               Run, %_ChromePath% "%_URL%", , UseErrorLevel
+               ExitApp, 0
+       }
+}
+
+;
 ; Try browser: Internet Explorer
 ;
 IfExist, %A_ProgramFiles%\Internet Explorer\iexplore.exe

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to