ServiceInstallerDialog Class
Provides a dialog box, which prompts for account information of a Windows Service application.
Assembly: System.ServiceProcess (in System.ServiceProcess.dll)
Normally, you do not use the ServiceInstallerDialog class directly within your code; this dialog is generally used by the installation utility for a Windows Service application.
If a ServiceProcessInstaller object has the Account set to User, and either the Username or Password is an empty string (""), then the installation utility uses ServiceInstallerDialog to prompt for these values.
ServiceInstallerDialog derives from Form; use the Form class methods and properties to display and manipulate the dialog. For example, use ShowDialog to display the form, and then check the Result before validating the input text for the Username and Password properties.
Note: |
|---|
ServiceInstallerDialog does not check the credentials and privileges for the specified account. For example, the user might enter an invalid account name and password for the computer, or the account might not have the correct privileges to run as a service. Validate the user input to ensure that the installed service runs successfully. |
System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.Control
System.Windows.Forms.ScrollableControl
System.Windows.Forms.ContainerControl
System.Windows.Forms.Form
System.ServiceProcess.Design.ServiceInstallerDialog
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Note: