Installshield Build Automation

后端 未结 2 1087
你的背包
你的背包 2020-12-11 19:49

I have seen many solutions for automating my InstallShield build, but I am having issues with each one. I am using InstallShield Professional 2013. Sorry for the lengthy que

相关标签:
2条回答
  • 2020-12-11 20:15

    The choice between these approaches (when they all work) largely depends on the build system you are trying to integrate with. If you're using a batch or makefile approach, IsCmdBld.exe is probably the easiest starting point. If you're using Visual Studio and TFS or MSBuild, you'll probably have more luck there, as it will report errors in a way the build system can understand. (Other than that, they're fundamentally similar.) If you need to make tweaks to the project before you build it, the automation layer can either augment or replace the other approaches.

    But in your case you say they all don't work. What have you done to diagnose why? Here are the first steps I'd take for each of those symptoms:

    • IsCmdBuild built setups yielding an error that the IDE-build ones do not. First identify what the problem really is. Look in a verbose log for more information. Build both ways with the .msi available and compare the results with MsiDiff. Make sure you've tested elevated. Depending on what you find, it may be something to address in the project, the build process, or a bug in InstallShield.
    • Automation Interface yields TYPE_E_LIBNOTREGISTERED. First off, if this is the IDE machine, consider repairing the installation. If it's a standalone-build machine, ditto. If it's a standalone-build machine that didn't use the installation, you should, or at least you should ensure the dependencies are present and that the automation interface is registered. Secondly, as Christopher Painter noted, InstallShield is a 32-bit product so it must be invoked from a 32-bit context. If you're calling, say, CScript to run a .vbs file, make sure you're using C:\Windows\SysWow64\CScript.exe.
    • MSBuild NSB4025. The comment from stijn is largely correct - you can't call MSBuild on the .ism file (while it can be xml instead of binary, it's not MSBuild-compatible). However you can create a .isproj file that can work correctly. Save the project in Visual Studio, or copy <InstallShield>\Support\0409\MSBuild.xml to (ProjectName).isproj and tweak its contents; call MSBuild on the resulting .isproj file. Odds are strong this will have approximately the same results as IsCmdBuild, as the build portion is largely shared.
    0 讨论(0)
  • 2020-12-11 20:22

    Using MSBuild doesn't follow the exact order of the Project files specified in the solution .sln file.

    The best option is to use devenv.exe

    And sometimes, devenv doesn't return exact return status, so I kept an exe to scan the log file for the success code.

    https://devopsdiaryblog.wordpress.com/2017/12/20/devenv-return-code-issue/

    And for iscmdbuild.exe, better to use commandline as it is the suggested one from flexera.

    0 讨论(0)
提交回复
热议问题