Skip to content

Commit ecb2778

Browse files
committed
osgeo4w: don't register .qgs file extensions if release version is installed
(fixes OSGeo4W#415)
1 parent f5f0326 commit ecb2778

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ms-windows/osgeo4w/postinstall-dev.bat

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ set OSGEO4W_ROOT=%OSGEO4W_ROOT:\=\\%
1313
textreplace -std -t "%O4W_ROOT%\apps\@package@\bin\qgis.reg"
1414
set OSGEO4W_ROOT=%O4W_ROOT%
1515

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

1819
call "%OSGEO4W_ROOT%"\bin\o4w_env.bat
1920
path %PATH%;%OSGEO4W_ROOT%\apps\@package@\bin

0 commit comments

Comments
 (0)