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

ValidateProductID Action

· 52CE 我爱测

The ValidateProductID action sets the ProductID property to the full product identifier.

The ValidateProductID action sets the ProductID property to the full product identifier.

Sequence Restrictions

This action must be sequenced before the user interface wizard in the InstallUISequence table and before the RegisterUser action in the InstallExecuteSequence table.

ActionData Messages

There are no ActionData messages.

Remarks

The installer checks whether a product has validated successfully by checking the ProductID property. The installer sets the ProductID property to the full product identifier after a successful validation. The ValidateProductID action does nothing if the ProductID property has already been set by a successful validation or by another method.

The ValidateProductID action always returns a success, whether or not the product identifier is valid, so that the product identifier can be entered on the command line the first time the product is run.

The product identifier can be validated without having the user reenter this information by setting the PIDKEY property on the command line or by using a transform. The display of the dialog box requesting the user to enter the product identifier can then be made conditional upon the presence of the ProductID property, which is set when the PIDKEY property is validated.

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)

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

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