0
votes

Ultimately I'm wanting to determine the version of an MSI without installing. There are answers like this but in my case I am actually generating the MSI (using WIX) and figured I should be able to set a custom property, viewable via right-mouse->properties->custom on the msi file, that represents the version number. enter image description here It would have no purpose other than to enable someone to query an msi file to see the version before installing (the .msi file will have the version number imbeded in it's filename but a custom property seems a better idea). Thanks

I should add I have tried "<Property Id='Version' Value="27.3" />" in WIX wxs file under <Wix><Product> to no avail. It does not appear anywhere viewable via properties on the generated msi file from Explorer

Details from File explorer->right-mouse->properties enter image description here

1
Don't you have the version number in the details tab?Morten Frederiksen
yes, but only via overloading another field (Subject) - see second screen-shot. One would think Version should be shown on the Details tab but not so.Straff

1 Answers

1
votes

The MSI's version isn't in the summary info stream, it's in the property table and you get it via that link. You have no choice but to overload one of the standard fields, such as Author.