注册表使用TI权限导入

This commit is contained in:
dragonflylee 2018-04-27 08:53:22 +08:00
parent 9368ff11bd
commit 6ca79626e5
2 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ set "WimPath=%~dp0install_RS3_%~3_%date:~0,4%%date:~5,2%%date:~8,2%.wim"
call :RemoveFile "%WimPath%"
call :RemoveFolder "%~2"
rem 导出安装镜像
for %%i in (consumer china business) do (
for %%i in (china consumer) do (
for %%j in ("%~1\*.rs3_release_*%%i*_%~3fre_*.esd") do (
if not exist "%~2" call :ExportDVD "%%j", "%~2"
call :ExportImage "%%j", "%WimPath%"
@ -65,7 +65,7 @@ set "WimPath=%~dp0install_RS4_%~3_%date:~0,4%%date:~5,2%%date:~8,2%.wim"
call :RemoveFile "%WimPath%"
call :RemoveFolder "%~2"
rem 导出安装镜像
for %%i in (consumer china business) do (
for %%i in (china consumer) do (
for %%j in ("%~1\*.rs4_release_*%%i*_%~3fre_*.esd") do (
call :ExportImage "%%j", "%WimPath%"
)

View File

@ -334,7 +334,7 @@ for /f "delims=" %%f in ('type "%~1"') do (
set "str=!str:HKEY_LOCAL_MACHINE\SYSTEM=HKEY_LOCAL_MACHINE\TK_SYSTEM!"
echo !str!>>"%TMP%\%~nx1"
)
reg import "%TMP%\%~nx1" >nul 2>&1
%NSudo% reg import "%TMP%\%~nx1" >nul 2>&1
goto :eof
rem ¼ÓÔØ×¢²á±í [ %~1 : ¾µÏñ¹ÒÔØ·¾¶ ]