MSI 软件包的静默安装 [英] Silent installation of a MSI package

查看:91
本文介绍了MSI 软件包的静默安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 MSI 包,如果该包尚未安装,我需要安装它.我也需要静默安装.包提示用户:

I have a MSI package that I need to install if the package is not already installed. Also I need to install it silently. The package prompts user for:

  • 安装位置(C:Program FilesFoobar)
  • 安装类型:最小和完整(最小)

我需要使用命令行参数或其他方法覆盖这两个参数.那么我该如何解决这两个问题.我将使用 VBScript 编写脚本.

I need to override these two parameters using command line parameters or some other method. So how do I go about these two issues. I'll use VBScript for scripting.

推荐答案

您应该能够将 /quiet/qn 选项与 msiexec 执行静默安装.

You should be able to use the /quiet or /qn options with msiexec to perform a silent install.

MSI 包导出公共属性,您可以使用 msiexec 参数末尾的 PROPERTY=value 语法进行设置.

MSI packages export public properties, which you can set with the PROPERTY=value syntax on the end of the msiexec parameters.

例如,这个命令安装一个没有 UI 和重启的包,带有一个日志和两个属性:

For example, this command installs a package with no UI and no reboot, with a log and two properties:

msiexec /i c:path	opackage.msi /quiet /qn /norestart /log c:path	oinstall.log PROPERTY1=value1 PROPERTY2=value2

您可以读取 msiexec 的选项,只需在 Start -> Run 中不带任何选项运行即可.

You can read the options for msiexec by just running it with no options from Start -> Run.

这篇关于MSI 软件包的静默安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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