跳转到主要内容
此指令稿會完全解除安裝 Gorelo Connect 與 Gorelo Launcher:
若已安裝 Gorelo Connect 外掛,這會讓 Gorelo Connect 外掛無法使用。請重新安裝 Gorelo Connect 外掛以恢復對此特定資產的遠端存取。
# Uninstall GoreloConnect
$goreloConnectReg = Get-ChildItem -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall' | 
                    ForEach-Object { Get-ItemProperty $_.PSPath } | 
                    Where-Object { $_.DisplayName -like '*GoreloConnect*' }
                    
if ($goreloConnectReg.UninstallString) {
    Start-Process "cmd.exe" -ArgumentList "/c $($goreloConnectReg.UninstallString) /S -Force" -Wait -NoNewWindow
}

# Get all user profiles
$userProfiles = Get-ChildItem "C:\Users" -Directory

# Remove GoreloConnect and GoreloLauncher components for all users
foreach ($profile in $userProfiles) {
    # Remove GoreloConnect components
    Remove-Item "C:\Users\$($profile.Name)\AppData\Roaming\GoreloConnect" -Recurse -Force -ErrorAction SilentlyContinue
    
    # Remove GoreloLauncher components
    Remove-Item "C:\Users\$($profile.Name)\Downloads\GoreloLauncher.exe" -Force -ErrorAction SilentlyContinue
    Remove-Item "C:\Users\$($profile.Name)\AppData\Local\GoreloLauncher\config.dat" -Force -ErrorAction SilentlyContinue
    Remove-Item "C:\Users\$($profile.Name)\AppData\Local\GoreloLauncher" -Recurse -Force -ErrorAction SilentlyContinue
}

# Remove global GoreloLauncher components
Remove-Item "Registry::HKEY_CLASSES_ROOT\GoreloLauncher" -Recurse -Force -ErrorAction SilentlyContinue
Remove-Item "C:\Program Files\GoreloLauncher" -Recurse -Force -ErrorAction SilentlyContinue
Remove-Item "C:\ProgramData\GoreloLauncher" -Recurse -Force -ErrorAction SilentlyContinue

# NOTE! This will break the Gorelo Connect plugin if installed. Reinstall the Gorelo Connect plugin to restore remote access to this specific asset.  
若已安裝 Gorelo Connect 外掛,這會讓 Gorelo Connect 外掛無法使用。請重新安裝 Gorelo Connect 外掛以恢復對此特定資產的遠端存取。