srrdev
Posts: 5
Joined: Thu May 27, 2010 5:19 pm

Running an EXE after a successful update.

I need to run an exe after a successful update. I'm trying to accomplish this by using a Custom Action run during the Commit phase but can't seem to come up with an Execution Condition that will work. Can someone help me out with this? Is the Commit phase the proper place to do this?

Steven
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Running an EXE after a successful update.

Hi Steven,

The best way is to run to place the custom action after the InstallFinalize standard action, this is not visible by default but you can show it like it is explained here. You can try using a "Launch File or Open URL" custom action to launch the EXE.

The condition you need is this:

Code: Select all

NOT Installed AND OLDPRODUCTS
The property OLDPRODUCTS is set only during an upgrade operation.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”