[wpkg-users] In memory of WMIC...

Marco Gaiarin gaio at lilliput.linux.it
Mon Mar 16 10:41:55 CET 2026


Mandi! Raimundas Andrijauskas
  In chel di` si favelave...

> powershell -C "msiexec /x (Get-CimInstance -ClassName Win32_Product | Where-Object { $_.Name -like 'Adobe Acrobat Reader*' }).IdentifyingNumber /quiet /norestart"

WOW! Wonderful!

I've only a problem with that: seems that powershell get 'spawned' and exit
before real uninstall, so this onliner work but check condition get
evaluated before uninstallation, so recipe fail.

I've tried to wrap powershell in a 'start "" /wait':

	<remove cmd='%COMSPEC% /c start "" /wait powershell -C "msiexec /q /x (Get-CimInstance -ClassName Win32_Product | Where-Object { $_.Name -like \"Oracle VirtualBox 7.2.6\" }).IdentifyingNumber REBOOT=ReallySuppress"' >

but nothing changed. Probably is powershell itself that spawn the msiexec
process in background.


How can i fixt it? Thanks.

-- 




More information about the wpkg-users mailing list