PDA

View Full Version : How to distinguish between an uninstall between the cmd-line method or maintenance



Aditya
10-31-2002, 08:08 AM
My problem:

I have a custom action which is fired in the Ready-to-Remove dialog in my basic MSI project. However, I noticed that it is not fired when uninstalling the product using the command-line, "msiexec.exe /x {prod_code}".

Does anyone know if there is a way to distinguish between these two methods of uninstall?

(I remember reading in this community about this issue but I failed in my searches.)

Keppler
10-31-2002, 08:09 AM
msiexec /x does not call the UI Sequence.
can you move your custom action into the Execute Sequence?

Aditya
10-31-2002, 09:37 AM
If I place the custom action in the execute sequence, which condition do I use to fire this custom action only when the uninstall is being done?

Keppler
10-31-2002, 09:54 AM
Installed AND REMOVE=ALL should do the trick