set ICON=%OSGEO4W_ROOT%\apps\grass\grass-7.0.0\gui\icons\grass_osgeo.ico
set ICON_CMD=%OSGEO4W_ROOT%\apps\grass\grass-7.0.0\gui\icons\grass_cmd.ico
set BATCH=%OSGEO4W_ROOT%\bin\grass70.bat
textreplace -std -t "%OSGEO4W_ROOT%"\bin\grass70.bat
textreplace -std -t "%OSGEO4W_ROOT%"\bin\grass70
textreplace -std -t "%OSGEO4W_ROOT%"\apps\grass\grass-7.0.0\etc\fontcap

mkdir "%OSGEO4W_STARTMENU%\GRASS GIS 7.0.0" 
xxmklink "%OSGEO4W_STARTMENU%\GRASS GIS 7.0.0\GRASS 7.0.0 GUI.lnk"   "%BATCH%" "-gui" \ "Launch GRASS GIS 7.0.0 with wxGUI" 1 "%ICON%" 
xxmklink "%OSGEO4W_STARTMENU%\GRASS GIS 7.0.0\GRASS 7.0.0 Command Line.lnk"  "%BATCH%" "-text" \ "Launch GRASS GIS 7.0.0 in text mode" 1 "%ICON_CMD%" 

xxmklink "%ALLUSERSPROFILE%\Desktop\GRASS GIS 7.0.0.lnk" "%BATCH%"  "-gui" \ "Launch GRASS GIS 7.0.0 with wxGUI" 1 "%ICON%" 

del "%OSGEO4W_ROOT%"\bin\grass70.bat.tmpl
del "%OSGEO4W_ROOT%"\bin\grass70.tmpl
