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

查看:76
本文介绍了检测无人值守安装的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的组件功能 properties .您没有提到您使用的是哪个MSI构建器-如果您使用的是Visual Studio附带的MSI构建器,我不知道它是否能够为您提供组件和功能的访问权限,但是价格低廉,只有一两个或可用的免费替代方法(即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).

如何查看可用的公共属性? 从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管理工具可以帮助您拆卸和/或包装MSis,但我不记得他们叫什么.

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天全站免登陆