I defined an action group in pre-uninstall actions. I run some program and based on its output I have a rule that decides if uinstall should proceed to exit. It is not working on Linux. I know that the rule is working correctly. I have 3 actions if rule is true: 1) Through error 2) Log text 3) Exit installer

I do not get popup message but I see in the log file an enry saying: Exit uninstall and message I sent to the log, but uninstall doesn't stop and remove all files. In the attached image you can see my definitions.

asked 24 Jun '12, 06:36

NicoleH's gravatar image

accept rate: 50%

alt text

(24 Jun '12, 06:37) NicoleH

Could you change the throwError to a showWarning?


answered 24 Jun '12, 06:48

juanjo's gravatar image

juanjo ♦♦
accept rate: 23%

Replacing throwError by showWarning fixed the problem. Is it some kind of feature? When should I use throwError?

(24 Jun '12, 07:09) NicoleH

The throwError action throws an error which causes remaining actions not to be executed. It is similar to throwing any other action throwing an error - for example not being able to create a service due to invalid path to program.

Before and during installation, it causes the installation to abort and if rollback is enabled, it also removes any changes made to the OS by installing the files. An error is ignored (user is shown a warning, but (un)installer does not exit) after installation and during uninstallation.

(25 Jun '12, 09:23) wojciechka ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 24 Jun '12, 06:36

Seen: 1,372 times

Last updated: 25 Jun '12, 09:23