InstallShield Basic MSI project generate New GUID by CommandLine IsCmdBld.exe

前端 未结 2 1138
-上瘾入骨i
-上瘾入骨i 2021-01-18 19:21

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

2条回答
  •  庸人自扰
    2021-01-18 19:32

    You can't via the command line tool, but you can via the automation interface if you have a recent version of InstallShield (not sure which version the availability of automation was added).

    Here's an example of how to do that in C#.

    // You'll need to add a reference in your C# project
    // for ISWiAuto19 (may also work with ISWiAuto16)
    var is1 = new ISWiAuto19.ISWiProject();
    is1.OpenProject("path to ism project file")
    is1.ProductCode = Guid.NewGuid();
    is1.SaveProject();
    is1.CloseProject();
    

    More details can be found here: http://helpnet.installshield.com/installshield19helplib/helplibrary/IHelpAutoISWiProject.htm

提交回复
热议问题