Israel
Posts: 14
Joined: Mon Dec 17, 2007 2:53 pm

Detecting that the installation is running in 'Repair' mode.

How can I detect that the installation is running in 'Repair' mode, so that I'll be able to run a custom action in that case only?

Thanks,
Israel
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Detecting that the installation is running in 'Repair' mode.

Hi,

In order to run a custom action only during the Repair, you can use the REINSTALL property as a condition (simply set "REINSTALL" as a condition).

You can read more about this property here:
http://msdn2.microsoft.com/en-us/library/aa371175.aspx

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Israel
Posts: 14
Joined: Mon Dec 17, 2007 2:53 pm

Thank for the reply, but it did not work.

The situation is as follows:

After the installation, I run the installation again, and nothing happens, since the product is already installed. I also don't want the custom action to run in this case.

Then I delete some of the installed files, and run the installation again.
This time the installation is repaired, and the missing files are reinstalled.
In this case I want the custom action to run, but it doesn't, even though the condition is REINSTALL

Israel
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

I'm not sure why your installation package doesn't work.
Can you please send us the AIP which shows this behavior to support at advancedinstaller dot com so we can investigate it? Also, can you please send us a small test case which shows this behavior?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”