cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
asafzinger
Level 2

Aborting Uninstall

My Uninstall runs a custom code that can fail.
In case of a failure I would like to leave and not remove all the files + uninstall file and to show a message to the user.

In the current state even if the custom code fails all files are still removed so the systm is inconsistent .

Do I have a way to indicate the uninstaller to not remove the files?
Labels (1)
0 Kudos
(2) Replies
RobertDickau
Flexera Alumni

If you can run your code early enough (Pre-Uninstall task?), you can abort the uninstaller there; if your code can set a property, for example, you can add a conditional Show Message Dialog action that exits the installer...
0 Kudos
totoroliu
Level 2

How to abort Uninstaller in Pre-Uninstall task?
0 Kudos