Command Msiexec Install

Posted CIAS

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Command Msiexec Install相关的知识,希望对你有一定的参考价值。

解释包和安装产品的可执行程序是Msiexec.exe。注意,Msiexec还在返回时设置了一个与系统错误代码相对应的错误级别。命令行选项不区分大小写。

下表中的命令行选项可用于Windows Installer 3.0及更早版本。的 Standard Installer Command-Line Options 也可以从Windows Installer 3.0开始使用。

COMMAND-LINE OPTIONS
OptionParametersMeaning
/IPackage|ProductCodeInstalls or configures a product.
/f[p|o|e|d|c|a|u|m|s|v] Package|ProductCodeRepairs a product. This option ignores any property values entered on the command line. The default argument list for this option is 'omus.' This option shares the same argument list as the REINSTALLMODE property.
p - Reinstalls only if file is missing.
o - Reinstalls if file is missing or an older version is installed.
e - Reinstalls if file is missing or an equal or older version is installed.
d - Reinstalls if file is missing or a different version is installed.
c - Reinstalls if file is missing or the stored checksum does not match the calculated value. Only repairs files that have msidbFileAttributesChecksum in the Attributes column of the File table.
a - Forces all files to be reinstalled.
u - Rewrites all required user-specific registry entries.
m - Rewrites all required computer-specific registry entries.
s - Overwrites all existing shortcuts.
v - Runs from source and re-caches the local package. Do not use the v reinstall option for the first installation of an application or feature.
/aPackageAdministrative installation option. Installs a product on the network.
/xPackage|ProductCodeUninstalls a product.
/j[u|m]Packageor
[u|m]Package/tTransform List
or
[u|m]Package/gLanguageID
Advertises a product. This option ignores any property values entered on the command line.
u - Advertises to the current user.
m - Advertises to all users of machine.
g - Language identifier.
t - Applies transform to advertised package.
/L[i|w|e|a|r|u|c|m|o|p|v|x|+|!|*] LogfileWrites logging information into a logfile at the specified existing path. The path to the logfile location must already exist. The installer does not create the directory structure for the logfile. Flags indicate which information to log. If no flags are specified, the default is 'iwearmo.'
i - Status messages.
w - Nonfatal warnings.
e - All error messages.
a - Start up of actions.
r - Action-specific records.
u - User requests.
c - Initial UI parameters.
m - Out-of-memory or fatal exit information.
o - Out-of-disk-space messages.
p - Terminal properties.
v - Verbose output.
x - Extra debugging information. Windows Installer 2.0: Not supported. The x option is available with Windows Installer version 3.0.3790.2180 and later.

+ - Append to existing file.
! - Flush each line to the log.
"*" - Wildcard, log all information except for the v and x options. To include the v and x options, specify "/l*vx".
[!Note]
For more information about all the methods that are available for setting the logging mode, see  Normal Logging in the  Windows Installer Logging section
/mfilename
[!Note]
The length of  filename must be no more than eight characters.
Generates an SMS status .mif file. Must be used with either the install (-i), remove (-x), administrative installation (-a), or reinstall (-f) options. The ISMIF32.DLL is installed as part of SMS and must be on the path.
The fields of the status mif file are filled with the following information:
Manufacturer - Author
Product - Revision Number
Version - Subject
Locale - Template
Serial Number - not set
Installation - set by ISMIF32.DLL to "DateTime"
InstallStatus - "Success" or "Failed"
Description - Error messages in the following order: 1) Error messages generated by installer. 2) Resource from Msi.dll if installation could not commence or user exit. 3) System error message file. 4) Formatted message: "Installer error %i", where %i is error returned from Msi.dll.
/pPatchPackage[;patchPackage2 ]Applies a patch. To apply a patch to an installed administrative image you must combine the following options:
/p
Advertises a new instance of the product. Must be used in conjunction with /t. Available starting with the Windows Installer version that is shipped with Windows Server 2003 and Windows XP with Service Pack 1 (SP1).
/nProductCodeSpecifies a particular instance of the product. Used to identify an instance installed using the multiple instance support through a product code changing transforms. Available starting with the Windows Installer version shipped with Windows Server 2003 and Windows XP with SP1.

The options /i, /x, /f[p|o|e|d|c|a|u|m|s|v], /j[u|m], /a, /p, /y and /z should not be used together. The one exception to this rule is that patching an administrative installation requires using both /p and /a. The options /t, /c and /g should only be used with /j. The options /l and /q can be used with /i, /x, /f[p|o|e|d|c|a|u|m|s|v], /j[u|m], /a, and /p. The option /n can be used with /i, /f, /x and /p.

安装测试 ,Win+R CMD 管理员权限安装

 msiexec /qn  /i C:\\download\\mysql-workbench-community-6.3.10-winx64.msi

以上是关于Command Msiexec Install的主要内容,如果未能解决你的问题,请参考以下文章

调用命令和 msiexec

使用 Powershell 从远程调用 msiexec 中获取结果

程序安装出现错误代码为2869

issue:Linux /opt/python36/bin/pip3.6 install mysqlclient报错:ERROR: Command errored out with exit(示例代码

issue:Linux /opt/python36/bin/pip3.6 install mysqlclient报错:ERROR: Command errored out with exit(示例代码

避免 MsiExec 卸载中的确认框