Skip to content
Permalink
Browse files
osgeo4w: run filetype registration with elevated rights
  • Loading branch information
jef-n committed Feb 12, 2014
1 parent 9d7ef65 commit dc0894784df7da8f18cab18b59545e347121e69a
Showing with 2 additions and 2 deletions.
  1. +1 −1 ms-windows/osgeo4w/postinstall-desktop.bat
  2. +1 −1 ms-windows/osgeo4w/postinstall-dev.bat
@@ -13,4 +13,4 @@ if not %OSGEO4W_DESKTOP_LINKS%==0 nircmd shortcut "%O4W_ROOT%\bin\nircmd.exe" "~

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

"%WINDIR%\regedit" /s "%O4W_ROOT%\apps\@package@\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

0 comments on commit dc08947

Please sign in to comment.