opus-nt/mods/[hell]/disable onedrive auto-install/modscript.py
2021-10-31 04:46:21 +01:00

10 lines
386 B
Python

try:
opusnt.removeFile(p("Users","Default","AppData","Roaming","Microsoft","Windows","Start Menu","Programs","OneDrive.lnk"))
except Exception as e:
print(e)
for reg in regs:
if not reg.startswith("user-"): continue
user = opusnt.regTmpPath + reg
opusnt.runReg(["add",user + "\\Software\\Microsoft\\Windows\\CurrentVersion\\Run","/v","OneDriveSetup","/t","REG_SZ","/d"," ","/f"])