Add mod: userSetup

This commit is contained in:
Fierelier 2021-08-12 23:42:34 +02:00
parent beb8f0c3cf
commit 8bd46f9644
2 changed files with 10 additions and 1 deletions

View 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

View File

@ -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"])