IPublishedApp::Unschedule method (shappmgr.h)

Cancels the installation of an application published by an application publisher.

Syntax

HRESULT Unschedule();

Return value

Type: HRESULT

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

Remarks

This method is called in each of the following circumstances.

  1. The user selected the Do Not Add Program option in the Add Later dialog box in Add/Remove Programs in Control Panel.
  2. The user has selected an installation time later than either the expiration time or the assigned time as specified in the published application information. In these circumstances, implementations are expected to cancel any scheduled installation for the application.

Requirements

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

See also

IAppPublisher

IPublishedApp

IPublishedApp::GetPublishedAppInfo

IShellApp