|
| 1 | +## Installation |
| 2 | +- Arch: x86_64 |
| 3 | +- Silent install: windowsdesktop-runtime-8.0.13-win-x64.exe /install /quiet /norestart |
| 4 | +- Silent uninstall: windowsdesktop-runtime-8.0.13-win-x64.exe /uninstall /quiet /norestart |
| 5 | +## Registry changes |
| 6 | +???- info "HKLM\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall" |
| 7 | + - `{e882eb81-b18c-4676-88f0-9a6ea9db6090}` |
| 8 | + - DisplayName: Microsoft Windows Desktop Runtime - 8.0.13 (x64) |
| 9 | + - DisplayVersion: 8.0.13.34517 |
| 10 | + - UninstallString: `"C:\ProgramData\Package Cache\{e882eb81-b18c-4676-88f0-9a6ea9db6090}\windowsdesktop-runtime-8.0.13-win-x64.exe" /uninstall` |
| 11 | + - QuietUninstallString: `"C:\ProgramData\Package Cache\{e882eb81-b18c-4676-88f0-9a6ea9db6090}\windowsdesktop-runtime-8.0.13-win-x64.exe" /uninstall /quiet` |
| 12 | +???- info "HKLM\Software\WOW6432Node\dotnet\Setup\InstalledVersions\x64\sharedfx" |
| 13 | + - `Microsoft.NETCore.App` |
| 14 | + - 8.0.13: 1 |
| 15 | + - `Microsoft.WindowsDesktop.App` |
| 16 | + - 8.0.13: 1 |
| 17 | +???- info "HKLM\Software\WOW6432Node\dotnet\Setup\InstalledVersions" |
| 18 | + - `hostfxr` |
| 19 | + - Version: 8.0.13 |
| 20 | +???- info "HKLM\Software\dotnet\Setup\InstalledVersions\x64" |
| 21 | + - `sharedhost` |
| 22 | + - Version 8.0.13 |
| 23 | + - Path: `C:\Program Files\dotnet` |
| 24 | +## File paths |
| 25 | +- `C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.13` |
| 26 | +- `C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.13` |
| 27 | +## Intune |
| 28 | +### Detection Rules |
| 29 | +#### Rule type: Detection script |
| 30 | +```powershell title="Custom detection script" |
| 31 | +[string]$RegistryPath = "HKLM:\SOFTWARE\WOW6432Node\dotnet\Setup\InstalledVersions\x64\sharedfx" |
| 32 | +[version]$MinVer = '8.0.13' |
| 33 | +[array]$runtimes = $null |
| 34 | +
|
| 35 | +if (Test-Path -Path $RegistryPath -PathType Container) { |
| 36 | + $runtimes = Get-ChildItem -Path "$RegistryPath" | |
| 37 | + Where-Object PSChildName -eq "Microsoft.WindowsDesktop.App" | |
| 38 | + Select-Object -ExpandProperty Property | |
| 39 | + Where-Object { ($_ -like "8.0.*") -and ($_ -ge $MinVer) } |
| 40 | +} |
| 41 | +if ($null -eq $runtimes) { |
| 42 | + Write-Output "Minimum version: $MinVer for Windows Desktop Runtime not detected" |
| 43 | + exit 1 |
| 44 | +} |
| 45 | +Write-Output "Minimum version: $MinVer for Windows Desktop Runtime detected" |
| 46 | +exit 0 |
| 47 | +``` |
| 48 | +## Tests |
| 49 | +- [ ] Application installs on Autopilot VMs |
| 50 | +- [ ] Application is detected in Intune |
| 51 | +- [ ] Application uninstalls |
| 52 | +- [ ] Application reinstalls on Autopilot VMs |
| 53 | +- [ ] License activates |
0 commit comments