opus-nt/mods/[hell]/disable bing in search/modscript.py

7 lines
526 B
Python

for reg in regs:
if not reg.startswith("user-"): continue
user = opusnt.regTmpPath + reg
opusnt.runReg(["add",user + "\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer","/v","DisableSearchBoxSuggestions","/t","REG_DWORD","/d","1","/f"])
opusnt.runReg(["add",user + "\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Search","/v","BingSearchEnabled","/t","REG_DWORD","/d","0","/f"])
opusnt.runReg(["add",user + "\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Search","/v","CortanaConsent","/t","REG_DWORD","/d","0","/f"])