You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if the Install-MSI function could support a 3-part asynch model. The reason is, if i "stop" a powershell script execution while it is running an MSI, the MSI runs to completion (taking several minutes) and i would like it to cancel/rollback the MSI, it also gives me more control of when to start the MSI progress bar and potentially nest it under other progress bars.
Example cmdlets:
Start-MSIInstall
Starts the installer and returns a context object
Watch-MSIInstall
Monitors the installer using the context object and displays progress bars, etc
Stop-MSIInstall
Stops/cancels the install
Example desired code:
try {
$MSIObject = Start-MSIInstall $InstallPath
$MSIObject | Watch-MSIInstall -ParentProgressID $MyProgressID
} catch {
#do some thing
} finally {
#ensure MSI is not still running
if ($MSIObject.IsRunning) {
$MSIObject | Stop-MSIInstall
}
}
The text was updated successfully, but these errors were encountered:
It would be nice if the Install-MSI function could support a 3-part asynch model. The reason is, if i "stop" a powershell script execution while it is running an MSI, the MSI runs to completion (taking several minutes) and i would like it to cancel/rollback the MSI, it also gives me more control of when to start the MSI progress bar and potentially nest it under other progress bars.
Example cmdlets:
Starts the installer and returns a context object
Monitors the installer using the context object and displays progress bars, etc
Stops/cancels the install
Example desired code:
The text was updated successfully, but these errors were encountered: