安装屏蔽模板?

发布于 2024-12-14 01:55:02 字数 156 浏览 1 评论 0原文

在我们公司,我们定期使用 Installshield(最新)创建 MSI。 这些设置遵循一组规则和命名方案,因此它们可以与我们的部署系统和自动构建等配合使用。

有没有一种方法可以消除遍历所有样板内容(设置公司元数据、基本文件夹结构、每个设置的事件很少,包括一些默认帮助程序文件等)?

In our company we regularly create MSI's with Installshield(latest).
These setups adhere to a set of rules and name schemes so they work with our deployment system and autobuilds etc.

Is there a way to eliminate the repetitive overhead of going through all the boilerplate stuff (setting the company meta data, basic folder structures, a few events, including some default helper files etc) for each setup?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

拔了角的鹿 2024-12-21 01:55:02

看一下 InstallShield Automation 界面。我所做的是:

  1. 将我的所有组件抽象为 WiX 合并模块(不过也可能是 IS 合并模块)。
  2. 创建基础 InstallShield 项目 ( Common.ISM )
  3. 创建 XML 文件来描述我的功能树和产品配置
  4. 创建构建自动化以反映 XML 并调用自动化接口来“发出”我的安装程序源。
  5. 在 ISM 中构建产品配置。

这给了我大量的代码重用,但建立这种类型的系统并不简单。然而,如果您有正确的业务需求,它的扩展性非常好,并且优势巨大。

Take a look at the InstallShield Automation interface. What I did was:

  1. Abstract all my components out into WiX Merge Modules ( could be IS merge modules though ).
  2. Create a base InstallShield project ( Common.ISM )
  3. Create XML files to describe my feature tree and product configurations
  4. Create Build Automation to reflect the XML and invoke the Automation Interface to "Emit" my installer source.
  5. Build the Product Config in the ISM.

This gave me a great deal of code reuse but it's not trivial to set up this type of system. However it scales very well and the advantages are huge if you have the right business needs.

那伤。 2024-12-21 01:55:02

有两种方法可以做到这一点:

  1. 以 xml 格式保存 ism 文件(在项目设置中有一个设置)。然后在运行时,使用可以编写的新应用程序推送所需的值(它将使用 DOM 等编辑 XML 文件...)
  2. 使用 InstallShield Automation 界面。这可以使用 VBScript 来完成。您可以查看此链接:InstallShield 自动化界面

There are two ways you can do this:

  1. Save the ism file in xml format (there is a setting for this in the project settings). Then in run time, push the desired values with a new application that could be written (which will edit the XML file using DOM or so...)
  2. Use InstallShield Automation interface. This can be done using VBScript. You may check this link: InstallShield Automation Interface
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文