Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

how to update ProductVersion through patch?


5 replies to this topic

graven

graven
  • Full Members
  • 4 posts

Posted 16 October 2011 - 11:16

my initial msi has ProductVersion 1.0.5
the latest msi has ProductVersion 1.0.5.1

i'm now using patchwiz.dll to use a *.pcp to generate my patch (*.msp).

however, on the target machine the version number does not get updated.
it seems this particular property isn't reflected in the generated patch file, at all.

any ideas?

Edited by graven, 16 October 2011 - 14:13.


graven

graven
  • Full Members
  • 4 posts

Posted 17 October 2011 - 11:18

in the meantime i found the following recommendation:

manually add an entry to the "Properties" table of the pcp:
- name = "ProductVersion"
- value = "1.0.5.1"

i will try and let you know the results ...

Edited by graven, 17 October 2011 - 15:00.


graven

graven
  • Full Members
  • 4 posts

Posted 17 October 2011 - 15:00

yes, seems to be working fine.

please consider my inital question to be answered and solved.

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 25 October 2011 - 14:42

Please be aware that Windows Installer ignores the fourth filed of ProductVersion so 1.0.5.0 and 1.0.5.1 look like the same ProductVersion to Windows Installer.

graven

graven
  • Full Members
  • 4 posts

Posted 25 October 2011 - 15:07

thanks for the hint, stefan.

however, in my case this is no restriction.
it's exactly what i need smile.gif

consider a scenario in a corporate environment with hundreds of desktop installations.
and now you're doing some kind of software "inventory".
there should be an easy way to determine the version number and the patch level of the different installed instances.
this should be possible through various standard technologies.

example:
CODE

Local $objInstaller = ObjCreate('WindowsInstaller.Installer')
Local $Products = $objInstaller.Products
For $Product In $Products
 $aSoftwareList.Append( $hostname,
   $objInstaller.ProductInfo($Product, 'ProductName'),
   $objInstaller.ProductInfo($Product, 'VersionString') )
Next


previously my installation would simply show as version "1.0.5" on all of the target machines.
with recent modification to my patch it's now possible to immediately tell the following:
[*] 1.0.5 => initial installation
[*] 1.0.5.1 => patch 1 is installed
[*] 1.0.5.2 => patch 2 is installed
[*] etc.

by the way:
my patches are cumulative, of course. the latest one supersedes all previous ones.

Edited by graven, 25 October 2011 - 15:10.


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 25 October 2011 - 15:09

Okay, just wanted to make sure you are aware of it smile.gif
BTW did you look at the software tagging support in InstallShield 2012?