custom launch conditions: run when repair or modify is done? - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

davidsmith
Posts: 59
Joined: Sun Jul 12, 2009 8:33 pm

custom launch conditions: run when repair or modify is done?

Steps:

1) a user installs my product including all prerequisites

2) the user manually uninstalls a prerequiste that is checked by an .msi custom launch condition

3) when the user goes into the Windows control panel to repair/modify the installation, the custom launch condition for the missing prerequisite does not give an errror message. The user can repair the installation and the prerequisite is still missing.

For (3), is that normal?

Or, is there someway to have the custom launch conditions work even for install repairs and modifies?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: custom launch conditions: run when repair or modify is done?

Hi,
For (3), is that normal?
Yes, that is the default behavior.
Or, is there someway to have the custom launch conditions work even for install repairs and modifies?
You can test the Custom Launch Conditions on Modify or Repair phases like this:
- go to Custom Actions page
- right click Uninstall → Show Standard Actions → Before Initialization → LaunchConditions
- go to Expression field from the Standard Actions Properties page of the LaunchConditions standard action and delete any condition that is written, leave it empty. This way the standard action will run and on Modify or Repair phases.

However, even if the Custom Launch Conditions will run in those phases the prerequisites found missing will not be installed. To install them you must run the EXE file again.

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

Return to “Common Problems”