mirror of
https://github.com/slorelee/wimbuilder2.git
synced 2025-05-06 18:25:51 +08:00
add bin/HIVE2REG.cmd
This commit is contained in:
parent
d6813fa794
commit
89022c2d71
19
bin/HIVE2REG.cmd
Normal file
19
bin/HIVE2REG.cmd
Normal file
@ -0,0 +1,19 @@
|
||||
@echo off
|
||||
if "x%APP_ROOT%"=="x" goto :EOF
|
||||
|
||||
IsAdmin.exe
|
||||
if not ERRORLEVEL 1 (
|
||||
ElevateMe.vbs "%~0" "%~fs1"
|
||||
goto :EOF
|
||||
)
|
||||
call :MAIN "%~f1"
|
||||
goto :EOF
|
||||
|
||||
|
||||
:MAIN
|
||||
cd /d "%~dp1"
|
||||
set key=%~n1
|
||||
reg load HKLM\Tmp_%key% "%~1"
|
||||
reg export HKLM\Tmp_%key% Tmp_%key%.reg /y
|
||||
reg unload HKLM\Tmp_%key%
|
||||
pause
|
Loading…
x
Reference in New Issue
Block a user