opus-nt/mods/[all]/disable autoplay/modscript.py
2021-08-14 19:00:45 +02:00

5 lines
258 B
Python

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"])