textreplace -std -t bin\qgis.bat
textreplace -std -t bin\qgis-browser.bat

mkdir "%OSGEO4W_STARTMENU%"
xxmklink "%OSGEO4W_STARTMENU%\Quantum GIS Desktop (1.8.0).lnk"       "%OSGEO4W_ROOT%\bin\qgis.bat" " " \ "Quantum GIS - Desktop GIS (1.8.0)" 1 "%OSGEO4W_ROOT%\apps\qgis\icons\QGIS.ico"
xxmklink "%OSGEO4W_STARTMENU%\Quantum GIS Browser (1.8.0).lnk"       "%OSGEO4W_ROOT%\bin\qgis-browser.bat" " " \ "Quantum GIS - Desktop GIS (1.8.0)" 1 "%OSGEO4W_ROOT%\apps\qgis\icons\QGIS.ico"

xxmklink "%ALLUSERSPROFILE%\Desktop\Quantum GIS Desktop (1.8.0).lnk" "%OSGEO4W_ROOT%\bin\qgis.bat" " " \ "Quantum GIS - Desktop GIS (1.8.0)" 1 "%OSGEO4W_ROOT%\apps\qgis\icons\QGIS.ico"
xxmklink "%ALLUSERSPROFILE%\Desktop\Quantum GIS Browser (1.8.0).lnk" "%OSGEO4W_ROOT%\bin\qgis-browser.bat" " " \ "Quantum GIS - Desktop GIS (1.8.0)" 1 "%OSGEO4W_ROOT%\apps\qgis\icons\QGIS.ico"

set O4W_ROOT=%OSGEO4W_ROOT%
set OSGEO4W_ROOT=%OSGEO4W_ROOT:\=\\%
textreplace -std -t "%O4W_ROOT%\apps\qgis\bin\qgis.reg"
"%WINDIR%\regedit" /s "%O4W_ROOT%\apps\qgis\bin\qgis.reg"
