Update Among Us - TOHE.ps1

This commit is contained in:
2024-10-07 14:54:24 +00:00
parent 4789d43095
commit a27b3b84ac

View File

@@ -1,4 +1,8 @@
$gameName = "Among Us"
#To Run this easily. Run the following command:
# Powershell $A = (curl https://gitea.resta.us/resta.us/public/raw/branch/main/Among%20Us%20-%20TOHE.ps1).content; Invoke-Expression $A
$gameName = "Among Us"
$registryPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
$gameKey = Get-ChildItem $registryPath | Where-Object {(Get-ItemProperty $_.PSPath).DisplayName -like "*$gameName*"}
$GamePath = (Get-ItemProperty $gameKey.PSPath).InstallLocation