IPublishedApp2::Unschedule Method

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

Syntax

HRESULT Unschedule(VOID);

Return Value

Returns S_OK if successful, or an error value otherwise.

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.

See Also

IAppPublisher, IShellApp, IPublishedApp::GetPublishedAppInfo