Author: toad Date: 2008-05-05 23:31:00 +0000 (Mon, 05 May 2008) New Revision: 19775
Modified: trunk/apps/new_installer/res/windows/browse.cmd Log: Check for c:\Program Files\Mozilla Firefox\firefox.exe if we can't find it from the registry. Unfortunately, some people reinstall windows without reinstalling firefox... Not tested yet. Modified: trunk/apps/new_installer/res/windows/browse.cmd =================================================================== --- trunk/apps/new_installer/res/windows/browse.cmd 2008-05-05 23:03:52 UTC (rev 19774) +++ trunk/apps/new_installer/res/windows/browse.cmd 2008-05-05 23:31:00 UTC (rev 19775) @@ -28,8 +28,14 @@ :: bin\cat.exe firefox.reg | find "@=" | bin\sed.exe "s/""/|/g" | bin\sed.exe "s/.*|\(.*\)|/\1/" | bin\sed.exe "s/\\\\/\\/g" > firefox.location @bin\cat.exe firefox.reg | find "@=" | bin\sed.exe s/@="\(.*\)"/\1/ | bin\sed.exe "s/\\\\/\\/g" > firefox.location @set /P FIREFOX=<firefox.location - at if not defined FIREFOX goto noff + at if not defined FIREFOX goto maybeff +:maybeff +:: Try to detect firefox by checking standard locations. +if not exist c:\Program Files\Mozilla Firefox\firefox.exe goto noff + at set FIREFOX=c:\Program Files\Mozilla Firefox\firefox.exe + at echo c:\Program Files\Mozilla Firefox\firefox.exe > firefox.location + :: creation of the profile @echo Creating a Firefox profile for freenet @start "" /B %FIREFOX% "file:///%INSTALL_PATH%\dont-close-me.html"
