mirror of
https://github.com/slorelee/wimbuilder2.git
synced 2025-05-06 18:25:51 +08:00
fix typo(DisAutoRun.bat reads wrong registry key)
This commit is contained in:
parent
b0229fb3b5
commit
1d18f468f2
@ -1,6 +1,6 @@
|
|||||||
rem Disable execution of AutoRun commands from registry
|
rem Disable execution of AutoRun commands from registry
|
||||||
set NeedCmdWarpper=0
|
set NeedCmdWarpper=0
|
||||||
reg query "HKCR\SOFTWARE\Microsoft\Command Processor" /v Autorun 1>nul 2>nul
|
reg query "HKCU\SOFTWARE\Microsoft\Command Processor" /v Autorun 1>nul 2>nul
|
||||||
if %errorlevel% EQU 0 set "NeedCmdWarpper=1" && goto :LoadCmdWarpper
|
if %errorlevel% EQU 0 set "NeedCmdWarpper=1" && goto :LoadCmdWarpper
|
||||||
reg query "HKLM\SOFTWARE\Microsoft\Command Processor" /v Autorun 1>nul 2>nul
|
reg query "HKLM\SOFTWARE\Microsoft\Command Processor" /v Autorun 1>nul 2>nul
|
||||||
if %errorlevel% EQU 0 set "NeedCmdWarpper=1"
|
if %errorlevel% EQU 0 set "NeedCmdWarpper=1"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user