IPublishedApp::Install method (shappmgr.h)

Installs an application published by an application publisher. This method is invoked when the user selects Add or Add Later in Add/Remove Programs in Control Panel.

Syntax

HRESULT Install(
  [in] LPSYSTEMTIME pstInstall
);

Parameters

[in] pstInstall

Type: LPSYSTEMTIME

A pointer to a SYSTEMTIME structure that specifies the time the user elected to schedule installation through the Add Later button in Add/Remove Programs. This option is only available if the application supports scheduled installation (compare GetPossibleActions). If this parameter is NULL, the application should be installed immediately.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows XP, Windows 2000 Professional, Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header shappmgr.h

See also

GetPossibleActions

IAppPublisher

IPublishedApp