Skip to content

Commit dc08947

Browse files
committedFeb 12, 2014
osgeo4w: run filetype registration with elevated rights
1 parent 9d7ef65 commit dc08947

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎ms-windows/osgeo4w/postinstall-desktop.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ if not %OSGEO4W_DESKTOP_LINKS%==0 nircmd shortcut "%O4W_ROOT%\bin\nircmd.exe" "~
1313

1414
set OSGEO4W_ROOT=%OSGEO4W_ROOT:\=\\%
1515
textreplace -std -t "%O4W_ROOT%\apps\@package@\bin\qgis.reg"
16-
"%WINDIR%\regedit" /s "%O4W_ROOT%\apps\@package@\bin\qgis.reg"
16+
nircmd elevate "%WINDIR%\regedit" /s "%O4W_ROOT%\apps\@package@\bin\qgis.reg"

‎ms-windows/osgeo4w/postinstall-dev.bat

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

16-
"%WINDIR%\regedit" /s "%O4W_ROOT%\apps\@package@\bin\qgis.reg"
16+
nircmd elevate "%WINDIR%\regedit" /s "%O4W_ROOT%\apps\@package@\bin\qgis.reg"
1717

1818
call "%OSGEO4W_ROOT%"\bin\o4w_env.bat
1919
path %PATH%;%OSGEO4W_ROOT%\apps\@package@\bin

0 commit comments

Comments
 (0)
Please sign in to comment.