更新时间:2022-06-16 00:28:22
感谢所有帮助-事实证明这是WiX问题.
Thanks all for the help - turns out it was a WiX issue.
当产品ID GUID保留为显式&时,按照问题进行硬编码,当使用orca检查时,生成的.msi不具有ProductCode属性,而具有Product ID属性.
When the Product ID GUID was left explicit & hardcoded as in the question, the resulting .msi had no ProductCode property but a Product ID property instead when inspected with orca.
一旦我将GUID更改为"*"以自动生成,就会显示ProductCode,并且在其他答案确认的语法下都可以正常工作.
Once I changed the GUID to '*' to auto-generate, the ProductCode showed up and all works fine with syntax confirmed by the other answers.