大网数据广告活动
安装更新与部署

Msitran.exe

· 52CE 我爱测

Msitran.exe uses MsiDatabaseGenerateTransform, MsiCreateTransformSummaryInfo, and MsiDatabaseApplyTransform to generate or apply a transform file.This tool is only available in the Windows SDK Components for Windows Installer Developers.

Msitran.exe uses MsiDatabaseGenerateTransform, MsiCreateTransformSummaryInfo, and MsiDatabaseApplyTransform to generate or apply a transform file.

This tool is only available in the Windows SDK Components for Windows Installer Developers.

Syntax

Use the following syntax to generate a transform.

msitran -g {base db}{ref db}{transform file name}[{error conditions / validation conditions}]

Use the following syntax to apply a transform

msitran -a {transform}{database}[{error conditions}]

Command Line Options

Msitran.exe uses the following case-insensitive command line options. A slash delimiter may also be used in place of a dash.

Option Description
-g Transform generation.
-a Transform application.

The following errors may be suppressed when applying a transform. To suppress an error, include the appropriate character in the {error conditions} argument. Conditions specified with -g are placed in the summary information of the transform, but are not used when applying a transform with -a. For information, see MsiDatabaseApplyTransform.

Option Suppressed error
a Add existing row.
b Delete non-existing row.
c Add existing table.
d Delete non-existing table.
e Modify existing row.
f Change codepage.

The following validation conditions may be used to indicate when a transform may be applied to a package. These conditions may be specified with -g, but not -a.

Option Validation condition
g Check upgrade code.
l Check language.
p Check platform.
r Check product.
s Check major version only.
t Check major and minor versions only.
u Check major, minor, and upgrade versions.
v Applied database version < Base database version.
w Applied database version <= Base database version.
x Applied database version = Base database version.
y Applied database version >= Base database version.
z Applied database version > Base database version.

Related topics

Windows Installer Development Tools

Database Transforms

A Customization Transform Example

Released Versions, Tools, and Redistributables

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。