Skip to content

Commit

Permalink
allow opening of qgis projects from windows explorer in OSGeo4W build
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@11620 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Sep 10, 2009
1 parent 50d3ea4 commit 8858bc2
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions ms-windows/osgeo4w/package.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ cd ..
copy postinstall.bat %OSGEO4W_ROOT%\etc\postinstall\%PACKAGENAME%.bat
copy preremove.bat %OSGEO4W_ROOT%\etc\preremove\%PACKAGENAME%.bat
copy %PACKAGENAME%.bat.tmpl %OSGEO4W_ROOT%\bin\%PACKAGENAME%.bat.tmpl
copy qgis-dev.reg.tmpl %OSGEO4W_ROOT%\apps\%PACKAGENAME%\bin\qgis-dev.reg.tmpl

sed -e 's/%OSGEO4W_ROOT:\=\\\\\\\\%/@osgeo4w@/' %OSGEO4W_ROOT%\apps\%PACKAGENAME%\python\qgis\qgisconfig.py >%OSGEO4W_ROOT%\apps\%PACKAGENAME%\python\qgis\qgisconfig.py.tmpl
if errorlevel 1 goto error
Expand Down
5 changes: 5 additions & 0 deletions ms-windows/osgeo4w/postinstall.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ textreplace -std -t apps\qgis-dev\python\qgis\qgisconfig.py
mkdir "%OSGEO4W_STARTMENU%"
xxmklink "%OSGEO4W_STARTMENU%\Quantum GIS (trunk).lnk" "%OSGEO4W_ROOT%\bin\qgis-dev.bat" " " \ "Quantum GIS - Desktop GIS (trunk)" 1 "%OSGEO4W_ROOT%\apps\qgis-dev\icons\QGIS.ico"
xxmklink "%ALLUSERSPROFILE%\Desktop\Quantum GIS (trunk).lnk" "%OSGEO4W_ROOT%\bin\qgis-dev.bat" " " \ "Quantum GIS - Desktop GIS (trunk)" 1 "%OSGEO4W_ROOT%\apps\qgis-dev\icons\QGIS.ico"

set O4W_ROOT=%OSGEO4W_ROOT%
set OSGEO4W_ROOT=%OSGEO4W_ROOT:\=\\%
textreplace -std -t "%O4W_ROOT%\apps\qgis-dev\bin\qgis-dev.reg"
"%WINDIR%\regedit" /s "%O4W_ROOT%\apps\qgis-dev\bin\qgis-dev.reg"
19 changes: 19 additions & 0 deletions ms-windows/osgeo4w/qgis-dev.reg.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Quantum GIS Project]
@="Quantum GIS Project"

[HKEY_CLASSES_ROOT\Quantum GIS Project\DefaultIcon]
@="@osgeo4w@\\apps\\qgis-dev\\icons\\qgis.ico"

[HKEY_CLASSES_ROOT\Quantum GIS Project\Shell]

[HKEY_CLASSES_ROOT\Quantum GIS Project\Shell\open]
@=""

[HKEY_CLASSES_ROOT\Quantum GIS Project\Shell\open\command]
@="\"@osgeo4w@\\bin\\qgis-dev.bat\" \"%1\""

[HKEY_CLASSES_ROOT\.qgs]
@="Quantum GIS Project"

0 comments on commit 8858bc2

Please sign in to comment.