r26703 - trunk/apps/wininstaller/src_freenethelpers

[email protected]
Newsgroups gmane.network.freenet.cvs
Message-ID <[email protected]>
Author: Zero3
Date: 2009-04-10 12:05:17 +0000 (Fri, 10 Apr 2009)
New Revision: 26703

Modified:
   trunk/apps/wininstaller/src_freenethelpers/FreenetLauncher.ahk
Log:
Improved Opera detection. Changed Chrome launcher code to launch fproxy in incognito mode.

Modified: trunk/apps/wininstaller/src_freenethelpers/FreenetLauncher.ahk
===================================================================
--- trunk/apps/wininstaller/src_freenethelpers/FreenetLauncher.ahk	2009-04-10 11:17:52 UTC (rev 26702)
+++ trunk/apps/wininstaller/src_freenethelpers/FreenetLauncher.ahk	2009-04-10 12:05:17 UTC (rev 26703)
@@ -93,12 +93,12 @@
 ;
 ; Try browser: Opera (Tested versions: 9.6)
 ;
-RegRead, _OperaInstallDir, HKEY_LOCAL_MACHINE, Software\Microsoft\Windows\CurrentVersion\Uninstall\{1BC4026B-1957-4514-9058-2B542557F143}, InstallLocation
+RegRead, _OperaPath, HKEY_LOCAL_MACHINE, Software\Clients\StartMenuInternet\Opera.exe\shell\open\command
 
-If (!ErrorLevel && _OperaInstallDir <> "")
-{
-	_OperaPath = %_OperaInstallDir%\opera.exe
-
+If (!ErrorLevel && _OperaPath <> "")
+{
+	StringReplace, _OperaPath, _OperaPath, ", , All
+
 	IfExist, %_OperaPath%
 	{
 		Run, %_OperaPath% "%_URL%", , UseErrorLevel
@@ -117,7 +117,7 @@
 
 	IfExist, %_ChromePath%
 	{
-		Run, %_ChromePath% "%_URL%", , UseErrorLevel
+		Run, %_ChromePath% "%_URL%" --incognito, , UseErrorLevel
 		ExitApp, 0
 	}
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.