Product Version property with fourth field - 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!

MaheshV
Posts: 2
Joined: Mon Mar 25, 2013 7:14 pm

Product Version property with fourth field

Hi,

Our product uses third party files and we decided to make installer for it. But, the files are versioned in the format a.b.c.d and we decided to use the same format for the Product Version property for it's installer. The problem is that if there is a change in the 4th field alone, installer is not performing an upgrade/downgrade of the existing installed product on the client. Instead, it is installed as a new product on the client.

From MSDN on Product Version property http://msdn.microsoft.com/en-us/library ... s.85).aspx, I learnt that -

"At least one of the three fields of ProductVersion must change for an upgrade using the Upgrade table."

Is there any workaround to upgrade/downgrade the product based on the 4th field of Product Version property ?


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

Re: Product Version property with fourth field

Hi and welcome to our forums,

I'm afraid there is no workaround, the upgrade is performed by Windows Installer based on the product version it reads from the package.

You can see that Advanced Installer also gives a similar warning when changing only the forth version field in a project.

Best regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MaheshV
Posts: 2
Joined: Mon Mar 25, 2013 7:14 pm

Re: Product Version property with fourth field

Hi Bogdan,

Thanks for the reply.

I wonder how Google Chrome developers are handling the issue (http://imgur.com/sIcW0CO).

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

Re: Product Version property with fourth field

HI Mahesh,

Google uses a customized updater tool to deploy their new versions of Chrome. It is very possible that they have implemented this updater tool
to automatically uninstall the old version before it launches the installation for the new version. So the upgrade is not handled by Windows Installer,
but by their updater. This is just a guess, I don't know for sure as I haven't studied extensively its code.

However, this is open source, so you might take it for a spin, and integrate within the package built by Advanced Installer.

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

Return to “Common Problems”