cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Kelter
Level 10

Gracefully abort?

I've found similar questions, but no satisfactory answers, so i'll make the question as direct as possible.

Project Type: Basic MSI

In an IScript CA which runs in Deferred Execution, I need to be able to cancel the installation and trigger a rollback without "Add/Remove Programs" barfing up a "Fatal error during installation" message box.

Note: This only seems to happen when the maintenance install is launched from Add/remove programs. re-launching from the setup.exe doesn't produce the undesired messagebox.
Labels (1)
0 Kudos
(1) Reply
joshstechnij
Level 10 Flexeran
Level 10 Flexeran

As far as I am aware, there is no way to prevent this from occurring for an installation that uses an MSI uninstall key for Add/Remove Programs. ARP is checking the return value from the launched uninstall process (msiexec.exe for MSI's). When an MSI install errors out or is aborted, a 1603 or 1602 error is returned. If ARP wants the return value to be 0 (success), there isn't much that can be done to stop this.
0 Kudos