# 命令行选项

| **选项**   | **参数**                                      | **说明**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |                              |                |                                                                                                   |   |   |   |   |                                  |                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| -------- | ------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | -------------- | ------------------------------------------------------------------------------------------------- | - | - | - | - | -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| /I       | Package\ProductCode                         | 安装或配置                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |                              |                |                                                                                                   |   |   |   |   |                                  |                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| /f       | <p>\[p                                      | o                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | e                            | d              | c                                                                                                 | a | u | m | s | v]</p><p>Package\ProductCode</p> | <p>修复，该选项忽略任何命令行输入的任何属性值。此选项默认参数是「pecms」。该选项和 REINSTALLMODE 属性有相同的参数</p><p>p - 如果文件丢失重新安装</p><p>o - 如果已安装了一个旧版本或文件丢失，重新安装</p><p>e -如果已安装了一个旧版本或同样的版本，或文件丢失，重新安装</p><p>d - 如果文件丢失或者已安装了不同版本，重新安装</p><p>c - 如果文件丢失，或安装检测不能匹配相应的计算值。只修复文件表格中有<strong>msidbFileAttributesChecksum</strong>属性的列</p><p>a - 强制安装所有文件</p><p>u - 重写所有需的用户特定注册表项</p><p>m - 重写所有必须的电脑特定的注册表项</p><p>s - 覆盖所有现有快捷键</p><p>v - 从本地包的运行。第一次安装程序或者功能不使用重安装选项.</p> |
| /a       | Package                                     | 管理员安装选项，在网络上进行安装 EndNote                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |                              |                |                                                                                                   |   |   |   |   |                                  |                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| /x       | Package\ProductCode                         | 卸载 EndNote                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |                              |                |                                                                                                   |   |   |   |   |                                  |                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| /j       | <p>\[u                                      | m]Package</p><p>或</p><p>\[u                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | m]Package/</p><p>或</p><p>\[u | m]Package/</p> | <p>产品广告，此项忽略在命令行输入的任何属性值</p><p>u - 对有用户广告</p><p>m - 电脑上所有用户广告</p><p>g -语言标识符</p><p>t - 适用于广告包</p> |   |   |   |   |                                  |                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| /l       | \[i\|w\|e\|a\|r\|u\|c\|m\|o\|p\|v\|x\|+\|!] | <p>指定日志文件的路径，标识指示日志信息</p><p>i - 状态信息</p><p>w - 致命警告</p><p>e - 所有错误信息</p><p>a - 操作的启动</p><p>r - 操作-特殊记录</p><p>u - 用户请求</p><p>c - 初始界面参数</p><p>m - 内存溢出或致使信息</p><p>o -空间不足信息</p><p>p - 终端性能</p><p>v - 详细输出</p><p>x - 调试信息，只能在 Windows Server 2003 查看</p><p>+ - 现有文件附件</p><p>! - 刷新每一行到日志</p><p>"*" - 通配符，记录除了 V 和 X 选项外所有信息。包含 V 和 X 选项，指定「/ l*vx」</p>                                                                                                                                                                                                                                                                                                                                                 |                              |                |                                                                                                   |   |   |   |   |                                  |                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| /m       | filename                                    | <p>生成一个 SMS 的。mif 状态文件。必需使用安装(-i)或删除(-x)中的一项<br>安装(- a) 或重新安装 (- f)选项。ISMIF32.DLL 是安装 SMS 的一部分，必须包含在路径中</p><p>MIF 文件的状态的字段包含以下信息：</p><p>Manufacturer - Author</p><p>Product - Revision Number</p><p>Version - Subject</p><p>Locale - Template</p><p>Serial Number - not set</p><p>Installation - set by ISMIF32.DLL to "DateTime</p><p>InstallStatus - Success or Failed</p><p>Description - Error messages in the following order:  <br>1) Error messages generated by installer.  <br>2) Resource from Msi.dll if installation could not commence or user exit.</p><p>3) System error message file.</p><p>4) Formatted message: "Installer error %i", where %i is error returned from Msi.dll.</p> |                              |                |                                                                                                   |   |   |   |   |                                  |                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| /p       | PatchPackage\[;patchPackage2...]            | <p>Applies a patch. To apply a patch to an installed administrative image you must combine options as follows:</p><p>/p \<PatchPackage>\[;patchPackage2...] /a \<Package></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |                              |                |                                                                                                   |   |   |   |   |                                  |                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| /q       | n\|b\|r\|f                                  | <p>Sets User interface level.</p><p>q,</p><p>qb - Basic</p><p>qr - Reduced</p><p>qf - Full</p><p>qn+ - No</p><p>qb+ - Basic</p><p>qb- - Basic</p><p>Note that the ! option is available with Windows Installer version 2.0 and works only with basic UI. It is not valid with full UI.</p>                                                                                                                                                                                                                                                                                                                                                                                                           |                              |                |                                                                                                   |   |   |   |   |                                  |                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| /? or /h |                                             | Displays copyright information for Windows Installer.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |                              |                |                                                                                                   |   |   |   |   |                                  |                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| /y       | Module                                      | <p>Calls the system API</p><p>This option is used only for registry information that cannot be added using the registry tables of the .msi file.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |                              |                |                                                                                                   |   |   |   |   |                                  |                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| /z       | Module                                      | <p>Calls the system API</p><p>This option is used only for registry information that cannot be removed using the registry tables of the .msi file.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |                              |                |                                                                                                   |   |   |   |   |                                  |                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| /c       |                                             | Advertises a new instance of the product. Must be used in conjunction with /t.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |                              |                |                                                                                                   |   |   |   |   |                                  |                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| /n       | ProductCode                                 | Specifies a particular instance of the product. Used to identify an instance installed using the multiple instance support through a product code changing transforms.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |                              |                |                                                                                                   |   |   |   |   |                                  |                                                                                                                                                                                                                                                                                                                                                                                                                                  |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kb.howsci.com/vol/msi-command-line-options.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
