检测无人值守安装的 msi 参数 [英] detect msi parameters for unattended install

查看:19
本文介绍了检测无人值守安装的 msi 参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 msi 包,可以选择安装两种不同的语言,有没有办法检测负责选择语言的参数,以便我可以使用命令提示符静默安装包(无人值守安装)?

I have a msi package that have option to install two different languages , is there a way to detect the parameter responsible for selecting the language so I can use the command prompt to install the package silently (unattended installation) ?

谢谢

推荐答案

使用 MSI 的正常处理方式是,属性表中完全以大写字母命名的任何属性都被视为公共外部属性.这意味着当您从命令行运行 MSI 时它是可设置的.

The normal way to do things with an MSI is any property in the property table who is named entirely with capital letters is considered a public external property. This means it is settable when you run the MSI from the command line.

因此,如果您确定要如何标记您的语言选择,请为其添加一个属性,然后您可以将 MSI 内的组件或功能的安装链接到该标记/变量.

So if you work out how you want to flag your language choice, put a property in for it, and then you can link the installation of components or features inside the MSI to that flag/variable.

因此,如果您还不熟悉这些概念,请查看 MSI 的组件功能属性.您没有提到您使用的是哪个 MSI 构建器 - 如果您使用的是 Visual Studio 附带的构建器,我不知道它是否能够让您访问组件和功能,但是有一两个价格低廉的或可用的免费(即 Wix)替代品(如果您使用的是像 Wise 或 InstallShield 这样合适的东西,那么您可以完全控制所有这些东西).

So if you are not familiar with the concepts yet, check out components, features and properties of MSIs. You don't mention which MSI builder you are using - if you are using the one that comes with Visual Studio i don't know if it is capable of giving you access to the components and feature, but there are one or two low priced or free (i.e. Wix) alternatives out there that do (if you are using something proper like Wise or InstallShield then you have full control over all these things).

这里是一个脚本链接,该脚本将为您提取公共属性列表(单击文本Get MSI-File properties.vbs 以查看脚本).或者,如何查看哪些公共属性可用?无需安装即可从 MSI 文件中提取属性 可能会为您提供一些其他选择.

here is a link to a script that will extract a list of public properties for you (click on the text Get MSI-File properties.vbs to see the script). Alternatively, How can I see what public properties are available? and Extracting properties from MSI file without installing may provide you some other options.

ServerFault 上的人可能会在这方面提供更多帮助,我知道有一些 Windows 管理工具可以让您拆卸和/或包装 MSi 但我不记得它们叫什么了.

The guys over on ServerFault will probably be able to help a lot more with this, I know there are some Windows admin tools that allow you to disassemble and/or wrap up MSis but I can't remember what they are called.

这篇关于检测无人值守安装的 msi 参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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