opus-nt/mods/[all]/disable file open warnings/modscript.py

7 lines
762 B
Python
Raw Normal View History

2022-06-24 18:18:10 +00:00
opusnt.runReg(["add",opusnt.regTmpPath + "software\\Policies\\Microsoft\\Internet Explorer\\Security","/v","DisableSecuritySettingsCheck","/t","REG_DWORD","/d","0x00000001","/f"])
opusnt.runReg(["add",opusnt.regTmpPath + "software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Attachments","/v","SaveZoneInformation","/t","REG_DWORD","/d","0x00000001","/f"])
opusnt.runReg(["add",opusnt.regTmpPath + "software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings","/v","1806","/t","REG_DWORD","/d","0x00000000","/f"])
for reg in regs:
if not reg.startswith("user-"): continue
user = opusnt.regTmpPath + reg
opusnt.runReg(["add",user + "\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings","/v","1806","/t","REG_DWORD","/d","0x00000000","/f"])