Omnissa Horizon

This commit is contained in:
JonatanRek
2025-02-24 10:28:52 +01:00
parent 57c10bfebc
commit 9a170d3acb
5 changed files with 61 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
# array of uninstall args
$uninstallArgs = "/uninstall"," ","/quiet", "IGNOREDEPENDENCIES=ALL"
$dotnetVersions = Get-WmiObject -Class Win32_Product | Where-Object { $_.Name -like "Microsoft .NET*" }
$dotnetVersions = Get-WmiObject -Class Win32_Product | Where-Object { $_.Name -like "Microsoft Windows Desktop Runtime*" }
foreach ($version in $dotnetVersions) {
# update array index 1 with version id
@@ -11,8 +11,8 @@ foreach ($version in $dotnetVersions) {
Write-Host "All Microsoft .NET versions uninstalled."
#$uri = "https://download.visualstudio.microsoft.com/download/pr/f1e7ffc8-c278-4339-b460-517420724524/f36bb75b2e86a52338c4d3a90f8dac9b/windowsdesktop-runtime-8.0.12-win-x64.exe"
$uri = "https://download.visualstudio.microsoft.com/download/pr/136f4593-e3cd-4d52-bc25-579cdf46e80c/8b98c1347293b48c56c3a68d72f586a1/dotnet-runtime-8.0.12-win-x64.exe"
$uri = "https://download.visualstudio.microsoft.com/download/pr/f1e7ffc8-c278-4339-b460-517420724524/f36bb75b2e86a52338c4d3a90f8dac9b/windowsdesktop-runtime-8.0.12-win-x64.exe"
#$uri = "https://download.visualstudio.microsoft.com/download/pr/136f4593-e3cd-4d52-bc25-579cdf46e80c/8b98c1347293b48c56c3a68d72f586a1/dotnet-runtime-8.0.12-win-x64.exe"
$installerName =($uri -split "/")[-1]
$installerPath = ('./bin/' + $installerName)
if (-not (Test-Path -Path $installerPath)){