如何更好地利用MSI文件 [英] How to make better use of MSI files

查看:148
本文介绍了如何更好地利用MSI文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您可能知道,

As you might know, msiexec is a command line application that you can use to install an MSI file. As you might know, you can run it in silent or invisible mode.

如果安装程序要求用户回答有关要安装哪些部件的特定问题,我可以通过某种方式在msiexec命令行中添加一系列选项来实现此目的吗?

If the installer requires the user to answer specific questions about what parts to install, is there some way that I can put in the msiexec command line a series of options to do this?

我认为必须有某种方式来设置MSI文件的默认设置,以实现此目的.如何制作MSI文件?它们是通过Microsoft的工具开发的吗?可以打开和编辑它们吗?

I figure there must be some sort of way of setting the MSI file's default settings to make this happen. How are MSI files made? Are they developed through tools from Microsoft? Can they be opened and edited?

推荐答案

使用MSI作为可选的用户界面.这意味着不应要求任何答案,因为开发人员具有合理的默认设置,以确保事情不会中断.

Think of the user interface with MSI as optional. This means no answers should be required as the developer has sensible defaults in place so that things don't break.

我们以MSI格式向企业客户分发我们的软件,我也向他们提供有关Orca基础知识的文档( orca.msi

We distribute our software in MSI format to corporate customers, I also provide them with documentation on the basics of Orca (orca.msi is distributed with the Windows Installer SDK) and how to customize certain fields we have listed in the Property table for their installation. Such as serial number, registration details and a few other settings.

要回答有关 msiexec命令行选项的原始问题,只需运行MSIEXEC /?来在命令行上设置属性,您将使用类似的

In response to the original question about msiexec command line options just run MSIEXEC /? to set properties on the command line you would use something like

MSIEXEC /I test.msi SOMEPROPERTY="Some value" PROP2="something else"

这篇关于如何更好地利用MSI文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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