File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,9 +24,9 @@ Check (Test-Path "$inst\bin\organizer.exe") "organizer.exe under $inst"
2424Check (Test-Path $lnk ) " Start-menu shortcut"
2525foreach ($h in " HKCU" , " HKLM" ) { foreach ($k in " Software\Microsoft\Windows\CurrentVersion\Uninstall" , " Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall" ) {
2626 Get-ItemProperty " ${h} :\$k \*" - ErrorAction SilentlyContinue | Where-Object { $_.DisplayName -like " ECCE*" } | ForEach-Object { Say " uninstall entry: ${h} :\$k \$ ( $_.PSChildName ) $ ( $_.DisplayName ) " } } }
27- $arp = Get-ItemProperty " HKCU:\Software\Microsoft\ Windows\CurrentVersion\Uninstall\* " - ErrorAction SilentlyContinue | Where-Object { $_ .DisplayName -eq " ECCE " }
28- Check ( $null -ne $arp ) " Apps & Features entry in HKCU (per user) "
29- Check (-not ( Get-ItemProperty " HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* " - ErrorAction SilentlyContinue | Where-Object { $_ .DisplayName -eq " ECCE " })) " no HKLM entry"
27+ # Elevated (as on the runner) Windows Installer files a per-user package's entry under HKLM; unelevated it is HKCU.
28+ $arp = ( Get-ItemProperty " HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* " , " HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* " - ErrorAction SilentlyContinue | Where-Object { $_ .DisplayName -eq " ECCE " })
29+ Check ($null -ne $arp ) " Apps & Features entry present "
3030Say (" installed: {0:N0} MB, {1} files" -f ((Get-ChildItem $inst - Recurse - File | Measure-Object Length - Sum).Sum / 1 MB ), (Get-ChildItem $inst - Recurse - File).Count)
3131$t = New-Object - ComObject WScript.Shell
3232Say (" shortcut: " + $t.CreateShortcut ($lnk ).TargetPath + " " + $t.CreateShortcut ($lnk ).Arguments)
You can’t perform that action at this time.
0 commit comments