简体   繁体   中英

Having a string in a MSI / WiX version number

I'm trying to convert our NSIS setup to a WiX/MSI based one. I used to use version numbers like 1.0.4 or 1.0.4.898, which works fine. However when I make a beta, I call it 1.0.4beta1, which is different from 1.0.4 (for example, it says 'beta' in the aboutbox, so it's actually build with different preprocessor #defines). This doesn't seem to be possible with WiX, the Version attribute of a Product can only contain a 'xxxx' string. How do I encode free-text status in the version string, like beta or demo status? Thanks.

Windows Installer doesn't allow this (it encodes the ProductVersion property into a DWORD registry value). You must instead place your custom version string in another property.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM