PDA

View Full Version : UILevel value during full uninstall



Christoph
01-22-2009, 06:02 AM
Hi,

I've a custom action in the execute sequence that need to be triggered when the installer is running silently. Placed the condition "UILevel=2" on it.

However, it seems that this custom action is not executed when clicking 'Remove' from the Add/Remove Control Panel(and I want that).

I thaught that when the uninstaller is started via the ARP by clicking the 'Remove' button, it automatically runs silently and sets the UILevel to '2'...?!?

Is this correct?

RobertDickau
01-22-2009, 10:49 AM
Is the action in the Execute sequence? If it's in the User Interface sequence, MSI skips that sequence for a silent or basic UI.

Otherwise, if you create an MSI log file, is there a different value of UILevel?

Christoph
01-22-2009, 10:56 AM
The CA is scheduled in the Execute Sequence.
I printed out the UILevel property during execution.

Until a few hours ago I always believed that when you do a Product Remove via the AddRemove Control Panel, that UILevel=2 but it isn't.

UILevel=2 when you explicitily launch the setup with the silent flag from the commanline.

Via the Add/Remove Control performing a product uninstall, gives UILevel the value '3'.

I didn't knew that... :rolleyes: