Partilhar via


ISetupInstance2 Interface

Definition

Information about an instance of a product.

public interface class ISetupInstance2 : Microsoft::VisualStudio::Setup::Configuration::ISetupInstance
public interface class ISetupInstance2 : Microsoft::VisualStudio::Setup::Configuration::ISetupInstance
__interface ISetupInstance2 : Microsoft::VisualStudio::Setup::Configuration::ISetupInstance
[System.Runtime.InteropServices.Guid("89143C9A-05AF-49B0-B717-72E218A2185C")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface ISetupInstance2 : Microsoft.VisualStudio.Setup.Configuration.ISetupInstance
[<System.Runtime.InteropServices.Guid("89143C9A-05AF-49B0-B717-72E218A2185C")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type ISetupInstance2 = interface
    interface ISetupInstance
Public Interface ISetupInstance2
Implements ISetupInstance
Attributes
Implements

Remarks

You can enumerate all properties of basic types by casting to an ISetupPropertyStore.

Methods

GetDescription(Int32)

Gets the description of the product installed in this instance.

GetDisplayName(Int32)

Gets the display name (title) of the product installed in this instance.

GetEnginePath()

Gets the directory path to the setup engine that installed the instance.

GetErrors()

Gets the error state of the instance, if available.

GetInstallationName()

Gets the unique name of the installation, often indicating the branch and other information used for telemetry.

GetInstallationPath()

Gets the path to the installation root of the product.

GetInstallationVersion()

Gets the version of the product installed in this instance.

GetInstallDate()

Gets the local date and time when the installation was originally installed.

GetInstanceId()

Gets the instance identifier (should match the name of the parent instance directory).

GetPackages()

Gets an array of package references registered to the instance.

GetProduct()

Gets a package reference to the product registered to the instance

GetProductPath()

Gets the relative path to the product application, if available.

GetProperties()

Gets product-specific properties.

GetState()

Gets the state of the instance.

IsComplete()

Gets a value indicating whether the instance is complete.

IsLaunchable()

Gets a value indicating whether the instance can be launched.

ResolvePath(String)

Resolves the optional relative path to the root path of the instance.

Applies to