自动安装MSI [英] Automated MSI installation

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

问题描述

什么是自动安装MSI文件或安装程序.exe文件的最好方法?我们希望从我们的编译系统做一些自动化测试在安装了该产品的副本。我们的安装人员通常接受许可屏幕,安装位置等。

What is the best way to automatically install an MSI file or installer .exe? We want to do some automated testing from our build system on the installed copy of the product. Our installer has the usual license acceptance screen, install location, etc.


由于FryHard指出,有两个特别的选项,似乎得心应手:

As FryHard pointed out there are two options in particular that seem handy:




推荐答案

要自动执行MSI软件包的insatllation,您可以使用/ I选项,如:

To automate the insatllation of an MSI package, you can use the /I option, like this:

msiexec.exe /qn /i mypackage.msi

请记住,你也是我需要指定特定属性MSI软件包可能期望用户通过指定为UI的值,并且没有默认值。

Keep in mind that you also my need to specify certain properties the MSI package might expect the user to specify a value through the UI for and that does not have a default value.

您可以使用 Orca工具,查看列表周围的MSI条件等,并为属性设置值的属性和小提琴的,你可以在命令行中指定。对于如。对于设置属性ISDEBUG,

You can use the Orca tool to see the list of properties and fiddle around with MSI conditions, etc. And to set values for the properties, you can just specify it in command line. For eg. for setting a property ISDEBUG,

MSIEXEC.EXE / QN /我MyPackage.msi程序ISDEBUG = 1

边注:要自动卸载,使用带有包装或产品code / x选项:

Side note: To automate uninstall, use the /X option with the package or the product code:

msiexec.exe /qn /x mypackage.msi

或本(如果你需要与你的产品code键更改CLSID):

or this (where you need to change the CLSID with your product code):

msiexec.exe /qn /x {B741B8A3-8DCB-44E0-B06F-2A11F56572DB}

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

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