opus-nt/mods/[all]/disable autoplay/modscript.py

5 lines
258 B
Python
Raw Normal View History

2021-08-14 17:00:45 +00:00
for reg in regs:
if not reg.startswith("user-"): continue
user = opusnt.regTmpPath + reg
opusnt.runReg(["add",user + "\\Software\\Microsoft\\Windows\\CurrentVersion\\policies\\Explorer","/v","NoDriveTypeAutoRun","/t","REG_DWPRD","/d","0x000000ff","/f"])