mirror of
https://github.com/dragonflylee/WimHelper.git
synced 2025-01-08 11:37:37 +08:00
注册表使用TI权限导入
This commit is contained in:
parent
9368ff11bd
commit
6ca79626e5
@ -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%"
|
||||
)
|
||||
|
@ -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 : ¾µÏñ¹ÒÔØ·¾¶ ]
|
||||
|
Loading…
Reference in New Issue
Block a user