-1

Hi i'm trying to execute a custom action after the installation is finished, but only execute when uninstall the program.

i try this:

new ManagedAction(CustomActions.SayHi, Return.check, When.After, Step.InstallFinalize, Condition.Installed)

CA:

[CustomAction]
public static ActionResult a(Session session)
{
  MessageBox.Show("Hola");
  return ActionResult.Success;
}

thanks

Bob Arnson
  • 21,377
  • 2
  • 40
  • 47
Jorge Luis
  • 99
  • 3

1 Answers1

0

As I remember, a Condition.Installed will be true exactly when the application is already installed. During the install it will be set to false. Try to replace Condition.Installed with a Condition.NOT_Installed. Also check this sample from wix# distribution.

Serg
  • 3,454
  • 2
  • 13
  • 17