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

7 lines
726 B
Python

opusnt.runReg(["add",opusnt.regTmpPath + "software\\Policies\\Microsoft\\Internet Explorer\\Security","/v","DisableSecuritySettingsCheck","/t","REG_DWORD","/d","1","/f"])
opusnt.runReg(["add",opusnt.regTmpPath + "software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Attachments","/v","SaveZoneInformation","/t","REG_DWORD","/d","1","/f"])
opusnt.runReg(["add",opusnt.regTmpPath + "software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings","/v","1806","/t","REG_DWORD","/d","0","/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","0","/f"])