InstallShield Basic MSI 项目通过命令行 IsCmdBld.exe 生成新的 GUID [英] InstallShield Basic MSI project generate New GUID by CommandLine IsCmdBld.exe
问题描述
我有一个 Installshield 项目 .ism,我希望能够通过命令行运行它.有一种可能的方法可以通过 CommadnLine 使用 IsCmdBld.exe 生成新的产品代码
I have an Installshield project .ism and I want to be able to run it by command line. It's there a possible way to generate a new Product Code by CommadnLine using IsCmdBld.exe
注意:不能使用其他构建软件
Note: Can't use another build software
提前致谢
推荐答案
正如@Steve 提到的,您无法通过命令行生成新的产品代码,但您可以使用命令行设置新的产品代码.您需要的是使用 3rd 方应用程序(或使用自动化)生成随机 GUID,您可以在命令行中设置此新 GUID,如下所示...
As @Steve mention you cannot generate new Product Code via command line, but what you can is set new product code with command line. What you need is generate random GUID with a 3rd party application (or use automation) and you may set this new GUID in command line as follow ...
IsCmdBld.exe -z "ProductCode={D1B1C3E2-AA6F-455C-8533-C642EED0512D}"
还有一件事我想提一下......我希望你明白,通过替换你的包的产品代码,它每次都会执行主要"升级.这是你想做的吗?通常,开发人员会尽量避免产品的重大"升级,而是随着产品的发展进行小升级.
Yet another thing I would like to mention ... I hope you understand that by replacing product code of your package, it will perform "major" upgrade every time. Is this what you want to do? Usually developers are trying to avoid "major" upgrades of products and do minor upgrades as the products evolve.
这篇关于InstallShield Basic MSI 项目通过命令行 IsCmdBld.exe 生成新的 GUID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!