Page 1 of 1

Unable to create patch database

Posted: Tue Mar 31, 2009 3:48 pm
by ssloka
I am getting the following error when trying to generate a patch against an old build. It was built on another computer, but should still be the same version of IA.

Error during build: Unable to create patch database [TargetImages.Target = 'TARGET1': ProductVersion is not valid.]

Thanks,

~ Steve

Posted: Tue Mar 31, 2009 3:50 pm
by MichaelNesmith
The error is pretty clear (fortunately in the case of patching, MSI API errors generally are). Make sure you have a valid version - numeric only in the form of X.YY.ZZZ.

Posted: Tue Mar 31, 2009 4:57 pm
by ssloka
Gotcha, I was using 7.0.2.1108.1 which doesn't match your pattern.

Is there a way to change this on an old build so I don't have to rebuild? I don't have access to the machine that built the old one.

Thanks,

~ Steve

Posted: Tue Mar 31, 2009 5:47 pm
by MichaelNesmith
No, but MSI takes only the first three version numbers into account, so maybe you can increment one of the first three numbers so the patch engine recognizes it as a new version. According to Microsoft docs, any information after the first three numbers are discarded; so I'm hoping this helps. If it does not, in that case, you will really need to update the original package - of course this might not be practically feasible, but there is no alternative.