diff --git a/mods/[all]/disable ac low battery shutdown/modscript.py b/mods/[all]/disable ac low battery shutdown/modscript.py index 68d494c..88b9268 100644 --- a/mods/[all]/disable ac low battery shutdown/modscript.py +++ b/mods/[all]/disable ac low battery shutdown/modscript.py @@ -1,5 +1,5 @@ for key in opusnt.regQueryKeys(opusnt.regTmpPath + "system"): if key.lower().startswith(opusnt.regTmpPath.lower() + "system\\controlset"): - opusnt.runReg(["add",key+ "\\CurrentControlSet\\Control\\Power\\User\\PowerSchemes\\381b4222-f694-41f0-9685-ff5bb260df2e\\e73a048d-bf27-4f12-9731-8b2076e8891f\\637ea02f-bbcb-4015-8e2c-a1c7b9c0b546","/v","ACSettingsIndex","/t","REG_DWORD","/d","0x00000000","/f"]) + opusnt.runReg(["add",key+ "\\Control\\Power\\User\\PowerSchemes\\381b4222-f694-41f0-9685-ff5bb260df2e\\e73a048d-bf27-4f12-9731-8b2076e8891f\\637ea02f-bbcb-4015-8e2c-a1c7b9c0b546","/v","ACSettingsIndex","/t","REG_DWORD","/d","0x00000000","/f"]) opusnt.runReg(["add",key+ "\\Control\\Power\\User\\PowerSchemes\\8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c\\e73a048d-bf27-4f12-9731-8b2076e8891f\\637ea02f-bbcb-4015-8e2c-a1c7b9c0b546","/v","ACSettingsIndex","/t","REG_DWORD","/d","0x00000000","/f"]) opusnt.runReg(["add",key+ "\\Control\\Power\\User\\PowerSchemes\\a1841308-3541-4fab-bc81-f71556f20b4a\\e73a048d-bf27-4f12-9731-8b2076e8891f\\637ea02f-bbcb-4015-8e2c-a1c7b9c0b546","/v","ACSettingsIndex","/t","REG_DWORD","/d","0x00000000","/f"]) diff --git a/mods/[all]/disable auto crash reboot/modscript.py b/mods/[all]/disable auto crash reboot/modscript.py index fa684f7..5e0bec0 100644 --- a/mods/[all]/disable auto crash reboot/modscript.py +++ b/mods/[all]/disable auto crash reboot/modscript.py @@ -1 +1,3 @@ -opusnt.runReg(["add",opusnt.regTmpPath + "system\\CurrentControlSet\\Control\\CrashControl","/v","AutoReboot","/t","REG_DWORD","/d","0x00000000","/f"]) +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","0x00000000","/f"])