opus-nt/mods/[hell]/disable onedrive auto-install/modscript.py

10 lines
386 B
Python
Raw Normal View History

2021-10-31 03:46:21 +00:00
try:
opusnt.removeFile(p("Users","Default","AppData","Roaming","Microsoft","Windows","Start Menu","Programs","OneDrive.lnk"))
except Exception as e:
print(e)
2021-05-19 21:43:31 +00:00
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"])