如何更好地利用 MSI 文件 [英] How to make better use of MSI files

查看:18
本文介绍了如何更好地利用 MSI 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您可能知道,msiexec 是一个命令行应用程序,可用于安装 MSI 文件.您可能知道,您可以在静默或不可见模式下运行它.

As you might know, msiexec is a command line application that you can use to install an MSI file. As you might know, you can run it in silent or invisible mode.

如果安装程序要求用户回答有关要安装哪些部件的具体问题,是否可以通过某种方式在 msiexec 命令行中放入一系列选项来执行此操作?

If the installer requires the user to answer specific questions about what parts to install, is there some way that I can put in the msiexec command line a series of options to do this?

我认为必须有某种方式来设置 MSI 文件的默认设置才能实现这一点.MSI 文件是如何制作的?它们是通过 Microsoft 的工具开发的吗?可以打开和编辑吗?

I figure there must be some sort of way of setting the MSI file's default settings to make this happen. How are MSI files made? Are they developed through tools from Microsoft? Can they be opened and edited?

推荐答案

将带有 MSI 的用户界面视为可选.这意味着不应该要求答案,因为开发人员已经设置了合理的默认设置,这样事情就不会中断.

Think of the user interface with MSI as optional. This means no answers should be required as the developer has sensible defaults in place so that things don't break.

我们以 MSI 格式向企业客户分发我们的软件,我还向他们提供有关 Orca 基础知识的文档(orca.msiWindows Installer SDK) 以及如何自定义我们列出的某些字段在 Property 表中进行安装.例如序列号、注册详细信息和其他一些设置.

We distribute our software in MSI format to corporate customers, I also provide them with documentation on the basics of Orca (orca.msi is distributed with the Windows Installer SDK) and how to customize certain fields we have listed in the Property table for their installation. Such as serial number, registration details and a few other settings.

在回答关于 msiexec 命令行选项 的原始问题时,只需运行 MSIEXEC/? 即可在命令行上设置属性,您可以使用类似

In response to the original question about msiexec command line options just run MSIEXEC /? to set properties on the command line you would use something like

MSIEXEC /I test.msi SOMEPROPERTY="Some value" PROP2="something else"

这篇关于如何更好地利用 MSI 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆