mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
osgeo4w: run filetype registration with elevated rights
This commit is contained in:
parent
9d7ef65a2d
commit
dc0894784d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user