From dc0894784df7da8f18cab18b59545e347121e69a Mon Sep 17 00:00:00 2001 From: "Juergen E. Fischer" Date: Wed, 12 Feb 2014 01:01:48 +0100 Subject: [PATCH] osgeo4w: run filetype registration with elevated rights --- ms-windows/osgeo4w/postinstall-desktop.bat | 2 +- ms-windows/osgeo4w/postinstall-dev.bat | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ms-windows/osgeo4w/postinstall-desktop.bat b/ms-windows/osgeo4w/postinstall-desktop.bat index 37dacf7427b..ac56568bc8e 100644 --- a/ms-windows/osgeo4w/postinstall-desktop.bat +++ b/ms-windows/osgeo4w/postinstall-desktop.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" diff --git a/ms-windows/osgeo4w/postinstall-dev.bat b/ms-windows/osgeo4w/postinstall-dev.bat index 4fa57396980..befbbe99509 100644 --- a/ms-windows/osgeo4w/postinstall-dev.bat +++ b/ms-windows/osgeo4w/postinstall-dev.bat @@ -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