CollectUserInfo Method

Microsoft Deployment Tools

Deployment Tools Foundation CollectUserInfo Method
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerProductInstallationCollectUserInfo()()()
Obtains and stores the user information and product ID from an installation wizard.
Declaration Syntax
C# Visual Basic Visual C++
public void CollectUserInfo()
Public Sub CollectUserInfo
public:
void CollectUserInfo()
Remarks

This method is typically called by an application during the first run of the application. The application first gets the ProductId or RegOwner. If those properties are missing, the application calls CollectUserInfo. CollectUserInfo opens the product's installation package and invokes a wizard sequence that collects user information. Upon completion of the sequence, user information is registered. Since this API requires an authored user interface, the user interface level should be set to full by calling SetInternalUI(InstallUIOptions) as Full.

The CollectUserInfo method invokes a FirstRun dialog from the product installation database.

Win32 MSI API: MsiCollectUserInfo

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller) Version: 3.0.0.0 (3.5.1623.0)