Macy
Posts: 18
Joined: Sun Nov 25, 2007 2:02 am

Four part version number question...

We build our assemblies with VS2008. I was hoping to use /SetVersion -fromfile against our main exe. That appears to set the Product Version to 1.1.7.0. Then when we embed the ProductVersion property as part of our file name, we get that same thing. I was hoping to just end up with 1.1.7 as my Product Version, as only three parts are significant to the installer. Is there an easy way to do this?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Four part version number question...

Hi,

Unfortunately the "/SetVersion" command uses the entire version of the source file (some developers may need to use four fields, even if they know that Windows Installer ignores the fourth one). However, I have added on our TODO list an improvement which will make this command ignore the fourth field if it's "0". Thank you for your suggestion.

Until then, a workaround is to modify the version manually.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Macy
Posts: 18
Joined: Sun Nov 25, 2007 2:02 am

Re: Four part version number question...

Thank you. I cannot ask for anything more than that!

Return to “Common Problems”