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

查看:245
本文介绍了静默安装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 Files\Foobar)

  • 安装类型:最小和完整(最小)

我需要使用命令行参数或其他方法来覆盖这两个参数。那么我该如何解决这两个问题。我将使用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 语法进行设置/ code>参数。

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\to\package.msi /quiet /qn /norestart /log c:\path\to\install.log PROPERTY1=value1 PROPERTY2=value2

您可以阅读<$ c $的选项c> msiexec ,只需从开始->运行中不带任何选项即可运行它。

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

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

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