问题
I'm using Installshield 2019 to generate a basic MSI file. I want to customize the file properties that are displayed in the windows explorer file properties (in the details tab => title, subject, comments) Sadly (and strangely), the Product Version does not appear in my generated MSI file's props, and I would like to have at least one file property with the product version.
Constraint: It is automated => I'm using the command line with IsBuildCmd.exe to pass the product version.
In the General Information panel of my project I can define a few values they are mapped to "Strings" (and not properties). In the release information it is the same, I can override the file properties values, but they are mapped to "strings".
1/ I don't manage to map those values to properties
2/ I did not find anything to override "Strings" from the command line
Thanks for your help
回答1:
It may be a little tough but I think you can control this using the IsWiProject COM interface. With this you can dynamically set the ProductVersion property for the project.
回答2:
Try these old answers:
On Installshield Build Automation.
IsCmdBld.exe
,InstallShield Automation Interface
,MsBuild.exe
,etc...
- make sure to read the actual answer.Installshield COM Automation
Chris Painter on COM automation (scroll up to see question details)
Short answer is that there are various options here to review. Be aware that there are some persistent bugs here and there, have a good read of the answers - particularly the problems described in the second one. Maybe run a smoke test.
Further Links:
- https://community.flexera.com/t5/InstallShield-Forum/Command-Line-build-questions-Basic-MSI/td-p/35985
- Old answer on automation
来源:https://stackoverflow.com/questions/62450418/how-can-i-dynamically-customize-the-product-version-in-the-msi-file-properties-w