Author: toad
Date: 2008-05-06 02:00:49 +0000 (Tue, 06 May 2008)
New Revision: 19784

Modified:
   trunk/apps/new_installer/res/windows/browse.cmd
Log:
Skip the check if no such key, suppress the error message

Modified: trunk/apps/new_installer/res/windows/browse.cmd
===================================================================
--- trunk/apps/new_installer/res/windows/browse.cmd     2008-05-06 01:45:14 UTC 
(rev 19783)
+++ trunk/apps/new_installer/res/windows/browse.cmd     2008-05-06 02:00:49 UTC 
(rev 19784)
@@ -26,6 +26,7 @@
 @regedit /E firefox.reg 
"HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App 
Paths\firefox.exe"
 :: No I didn't find any better regexp I could do without cote-escaping.
 :: bin\cat.exe firefox.reg | find "@=" | bin\sed.exe "s/""/|/g" | bin\sed.exe 
"s/.*|\(.*\)|/\1/" | bin\sed.exe "s/\\\\/\\/g" > firefox.location
+if not exist firefox.reg goto maybeff
 @bin\cat.exe firefox.reg | find "@=" | bin\sed.exe s/@="\(.*\)"/\1/ | 
bin\sed.exe "s/\\\\/\\/g" > firefox.location
 @set /P FIREFOX=<firefox.location
 @if defined FIREFOX goto foundff


Reply via email to