diff --git a/mods-trustedInstaller/[all-based]/disable gameux/data/Windows/Setup/Scripts/SetupComplete/disable gameux/SetupComplete.cmd b/mods-trustedInstaller/[all-based]/disable gameux/data/Windows/Setup/Scripts/SetupComplete/disable gameux/SetupComplete.cmd new file mode 100644 index 0000000..b9afe37 --- /dev/null +++ b/mods-trustedInstaller/[all-based]/disable gameux/data/Windows/Setup/Scripts/SetupComplete/disable gameux/SetupComplete.cmd @@ -0,0 +1,3 @@ +@echo off +regsvr32 -u C:\Windows\SysWOW64\gameux.dll +regsvr32 -u C:\Windows\System32\gameux.dll \ No newline at end of file diff --git a/mods-trustedInstaller/[all-based]/disable gameux/modscript.py b/mods-trustedInstaller/[all-based]/disable gameux/modscript.py index 8d401f3..f1a98bd 100644 --- a/mods-trustedInstaller/[all-based]/disable gameux/modscript.py +++ b/mods-trustedInstaller/[all-based]/disable gameux/modscript.py @@ -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) \ No newline at end of file +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"])