elanius
Posts: 38
Joined: Fri May 15, 2009 9:49 am

reinstall condition

Hi

I have simple problem. I need define condition for CA which should be called only in case of reinstall. I mean upgrade from lower version to higher.
I tried combination of properties like REINSTALL, REINSTALLMODE, Installed ... But nothing works like I want.

I shouldn't be called at uninstall, repair or clean install.

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

Re: reinstall condition

Hi,

For this you need to use only the public property UPGRADINGPRODUCTCODE.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
elanius
Posts: 38
Joined: Fri May 15, 2009 9:49 am

Re: reinstall condition

Hi

It doesn't work for me. Probably it is supported from Windows Installer 4.0. And my application have to be compatible also with older versions. I tried it with version 3.1
Any other suggestions?

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

Re: reinstall condition

Hi,

According to MSDN documentation it should work on older systems too.
Can you please send me the aip file and a verbose log to support at advancedinstaller dot com so I can investigate this?

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
elanius
Posts: 38
Joined: Fri May 15, 2009 9:49 am

Re: reinstall condition

So there was problem that I called it too early. Because this property is set during RemoveExistingProducts action. But this is late for me. I need to do this check before welcome dialog shown.

But I will make it all in my direction.

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

Re: reinstall condition

Hi,

Please note that this property is available at any time in the package which is being upgraded. The MSDN documentation states that "RemoveExistingProducts" sets it in the package which is being upgraded, as opposed to not being set when uninstalling the package manually. If you want to detect an upgrade in your new version, you can use OLDPRODUCTS property.

Please note that our user guide contains a How do I determine if an Upgrade is being performed FAQ which may help you.

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

Return to “Common Problems”