Bogdan Verbenets
Bogdan Verbenets

Reputation: 26946

uninstall custom actions

After which custom action should my C# custom actions execute? And what condition should I use so my custom action could run only on uninstall?

Upvotes: 0

Views: 492

Answers (2)

Sunil Agarwal
Sunil Agarwal

Reputation: 4277

You need to provide the condition in custom action call as to when they should be called.

Example :

<Custom Action="UpdateConfig" After="InstallFinalize">INSTALL_APPLICATION = "1"</Custom>

Here, as you can see the custom action UpdateConfig will be called after everything is installed and if Application was selected as feature while installing.

Upvotes: 1

Cosmin
Cosmin

Reputation: 21416

After which custom action should my C# custom actions execute?

It depends on what they do.

And what condition should I use so my custom action could run only on uninstall?

REMOVE = "ALL"

Upvotes: 2

Related Questions