Add mod: userSetup
This commit is contained in:
parent
beb8f0c3cf
commit
8bd46f9644
9
mods/[all]/userSetup/data/opus-nt/userSetup.cmd
Normal file
9
mods/[all]/userSetup/data/opus-nt/userSetup.cmd
Normal file
@ -0,0 +1,9 @@
|
||||
@echo off
|
||||
setlocal EnableDelayedExpansion
|
||||
cd /d "%~dp0"
|
||||
cd userSetup
|
||||
for /f "tokens=*" %%f in ('dir /b /s "*.cmd"') do (
|
||||
start /b /wait cmd /c call "%%f"
|
||||
)
|
||||
|
||||
shutdown /l
|
@ -1,4 +1,4 @@
|
||||
for reg in regs:
|
||||
if not reg.startswith("user-"): continue
|
||||
user = opusnt.regTmpPath + reg
|
||||
opusnt.runReg(["add",user + "\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce","/v","opus-nt","/t","REG_SZ","/d","cmd /c call C:\\opus-nt\\userSetup.bat","/f"])
|
||||
opusnt.runReg(["add",user + "\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce","/v","opus-nt","/t","REG_SZ","/d","cmd /c call C:\\opus-nt\\userSetup.cmd","/f"])
|
Loading…
Reference in New Issue
Block a user