[wpkg-users] In memory of WMIC...
Raimundas Andrijauskas
raimundasa at gmail.com
Fri Mar 20 09:48:49 CET 2026
Hello,
I always use a delay with the msiexec uninstall command. So, I would
write it like this:
<remove cmd='powershell -C "msiexec /q /x (Get-CimInstance -ClassName
Win32_Product | Where-Object { $_.Name -like \"Oracle VirtualBox *\"
}).IdentifyingNumber REBOOT=ReallySuppress"' />
<remove cmd='%COMSPEC% /C ping -n 5 127.0.0.1 >nul' />
2026-03-19 08:27, Marco Schmidt rašė:
> <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"' >
>
> The wpkg.js itself uses WshScriptExec which monitors the direct
> process it executes.
> In this case "msiexec" spawns and returns directly, which makes the
> powershell process to terminate, which is detected by WshScriptExec.
> But "msiexec" is still running.
More information about the wpkg-users
mailing list