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

5 lines
261 B
Python
Raw Normal View History

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_DWORD","/d","0x000000ff","/f"])