Documentation ¶
Overview ¶
Package install handles installing updates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // ErrBusy indicates that the Windows installer is busy ErrBusy = goerr.New("an installation or uninstallation is already in progress") )
Functions ¶
This section is empty.
Types ¶
type Installer ¶
type Installer struct { IUpdateInstaller *ole.IDispatch IInstallationResult *ole.IDispatch }
Installer represents an update Install interface. https://docs.microsoft.com/en-us/windows/desktop/api/wuapi/nn-wuapi-iupdateinstaller
func NewInstaller ¶
func NewInstaller(us *session.UpdateSession, uc *updatecollection.Collection) (*Installer, error)
NewInstaller creates an update download interface with a specified update collection.
func (*Installer) HResult ¶
HResult gets the HRESULT of the exception, if any, that is raised during the installation.
func (*Installer) IsBusy ¶
IsBusy gets a Boolean value that indicates whether an installation or uninstallation is in progress.
func (*Installer) RebootRequired ¶
RebootRequired gets a Boolean value that indicates whether you must restart the computer to complete the installation.
func (*Installer) ResultCode ¶
ResultCode gets an OperationResultCode value that specifies the result of an operation on an update. Possible Result codes: 0 - (orcNotStarted) The operation is not started. 1 - (orcInProgress) The operation is in progress. 2 - (orcSucceeded) The operation was completed successfully. 3 - (orcSucceededWithErrors) The operation is complete, but one or more errors occurred during the operation. The results might be incomplete. 4 - (orcFailed) The operation failed to complete. 5 - (orcAborted) The operation is canceled.