[wpkg-users] In memory of WMIC...
Marco Gaiarin
gaio at lilliput.linux.it
Fri Mar 20 13:24:43 CET 2026
Mandi! Marco Schmidt
In chel di` si favelave...
> Please tell us, if it worked.
WOW! Apart some needed escaping, both:
<remove cmd='powershell -C "%COMSPEC% /c start \"\" /wait msiexec /q /x (Get-CimInstance -ClassName Win32_Product | Where-Object { $_.Name -like \"Oracle VirtualBox 7.2.6\" }).IdentifyingNumber REBOOT=ReallySuppress | Out-Null"' >
<remove cmd='powershell -C "& msiexec /q /x (Get-CimInstance -ClassName Win32_Product | Where-Object { $_.Name -like \"Oracle VirtualBox 7.2.6\" }).IdentifyingNumber REBOOT=ReallySuppress | Out-Null"' >
work as expected and flawlessy.
Second option seems to me more 'elegant', so i choose that.
Thanks!
--
More information about the wpkg-users
mailing list