opus-nt/mods/[all]/disable auto crash reboot/modscript.py

4 lines
245 B
Python
Raw Normal View History

2021-03-22 02:45:21 +00:00
for key in opusnt.regQueryKeys(opusnt.regTmpPath + "system"):
if key.lower().startswith(opusnt.regTmpPath.lower() + "system\\controlset"):
opusnt.runReg(["add",key+ "\\Control\\CrashControl","/v","AutoReboot","/t","REG_DWORD","/d","0","/f"])