IPublishedApp2::Install2 method (shappmgr.h)

Installs an application published by an application publisher, while preventing multiple windows from being active on the same thread.

Syntax

HRESULT Install2(
  [in] LPSYSTEMTIME pstInstall,
  [in] HWND         hwndParent
);

Parameters

[in] pstInstall

Type: LPSYSTEMTIME

A pointer to a SYSTEMTIME structure.

[in] hwndParent

Type: HWND

A handle to the parent window.

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 Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header shappmgr.h