Repository navigation
wireshark: Fix reinstall and post_install failure - #19149
armadavalor wants to merge 1 commit into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review.
|
Closes #18517
Two failures from the issue:
pre_installfailed withRename-Item: Cannot create a file when that file already existswhen the version directory still held a renamed installer from an earlier attempt (failed install that could not be purged, or reinstall). The globnpcap-*.exealso matched the already-renamednpcap-installer.exe. Now it matchesnpcap-[0-9]*.exeand usesMove-Item -Forceto the target path, so leftovers are overwritten.post_installaborted the install when USBPcap is not installed:enable-usbpcap.ps1usedWrite-Error, and2>$nulldoes not stop it from terminating when the caller runs with$ErrorActionPreference = 'Stop'. The "not found" message is nowWrite-Warning, silenced with3>$nullinpost_install, since enabling USBPcap is optional.Verified
npcap-installer.exe/USBPcap-installer.exeand no USBPcap installed, under$ErrorActionPreference = 'Stop': installers replaced,post_installcompletes.bin/formatjson.ps1 -App wireshark: no changes. Manifest parses as JSON.Not verified
A full
scoop installof 4.6.9 end to end, and the path where USBPcap is installed.bin/test.ps1(needs Pester 5; left to CI).Use conventional PR title:
<manifest-name[@version]|chore>: <general summary of the pull request>I have read the Contributing Guide