Straff
Straff

Reputation: 5749

How to set MSI custom property

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

Upvotes: 0

Views: 1750

Answers (1)

PhilDW
PhilDW

Reputation: 20780

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.

Upvotes: 1

Related Questions