Redo: disable gameux

This commit is contained in:
Fierelier 2023-08-16 02:07:19 +02:00
parent ecdd7e92d7
commit 36389068fa
2 changed files with 4 additions and 12 deletions

View File

@ -0,0 +1,3 @@
@echo off
regsvr32 -u C:\Windows\SysWOW64\gameux.dll
regsvr32 -u C:\Windows\System32\gameux.dll

View File

@ -1,12 +1 @@
try:
opusnt.readyFile(p("Windows","System32","gameux.dll"))
opusnt.renameFile(p("Windows","System32","gameux.dll"),p("Windows","System32","gameux.dll.deactivated"))
except Exception as e:
print(e)
if opusnt.target["version"]["architecture"] in ["amd64","ia64"]:
try:
opusnt.readyFile(p("Windows","SysWOW64","gameux.dll"))
opusnt.renameFile(p("Windows","SysWOW64","gameux.dll"),p("Windows","SysWOW64","gameux.dll.deactivated"))
except Exception as e:
print(e)
opusnt.runReg(["add",opusnt.regTmpPath + "software\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\GameUX\\ServiceLocation","/v","Games","/t","REG_SZ","/d","127.0.0.1","/f"])