Skip to content

Commit

Permalink
osgeo4w: don't register .qgs file extensions if release version is in…
Browse files Browse the repository at this point in the history
…stalled

(fixes OSGeo4W#415)
  • Loading branch information
jef-n committed May 9, 2014
1 parent f5f0326 commit ecb2778
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ms-windows/osgeo4w/postinstall-dev.bat
Expand Up @@ -13,7 +13,8 @@ set OSGEO4W_ROOT=%OSGEO4W_ROOT:\=\\%
textreplace -std -t "%O4W_ROOT%\apps\@package@\bin\qgis.reg"
set OSGEO4W_ROOT=%O4W_ROOT%

nircmd elevate "%WINDIR%\regedit" /s "%O4W_ROOT%\apps\@package@\bin\qgis.reg"
REM Do not register extensions if release is installed
if not exist "%O4W_ROOT%\apps\qgis\bin\qgis.reg" nircmd elevate "%WINDIR%\regedit" /s "%O4W_ROOT%\apps\@package@\bin\qgis.reg"

call "%OSGEO4W_ROOT%"\bin\o4w_env.bat
path %PATH%;%OSGEO4W_ROOT%\apps\@package@\bin
Expand Down

0 comments on commit ecb2778

Please sign in to comment.