IBundleUI Interface
BundleUI interface.
Methods
Section titled “Methods”| Method | Description |
|---|---|
| CreateWindow() | Create (but do not show) the BundleUI window to return the window’s handle to the bootstrapper application. |
| OnCompleteCancel(bool, bool) | Callback when the bundle application is canceled. |
| OnCompleteFailure(bool, int, bool) | Callback when the bundle application fails. |
| OnCompleteSuccess(bool, bool) | Callback when the bundle application succeeds. |
| OnConditionFailure(BundleCondition, string) | Callback when a condition fails. |
| OnDowngradeAllowed(string, bool) | Callback when a newer bundle is detected. |
| OnError(BundleErrorType, string, int, string, int, BundleResult) | Callback when an overall bundle appliation error occurs. |
| OnForceReboot(int, bool) | Callback when the Burn engine forces a restart. |
| OnInitializeHelp() | Callback before help will be started. |
| OnInitializeInstall(bool) | Callback before install will be started. |
| OnInitializeLayout() | Callback before layout will be started. |
| OnInitializeModify(bool) | Callback before modify will be started. |
| OnInitializeRepair(bool) | Callback before repair will be started. |
| OnInitializeUninstall(bool) | Callback before uninstall will be started. |
| OnMsiMessage(BundlePackage, BundleInstallMessage, string, int, string[], bool) | Callback when Windows Installer send an message. |
| OnPackageComplete(BundlePackage, BundleProgressAction, int) | Callback when action on package is complete. |
| OnPackageProgress(BundlePackageProgress) | Callback on overall package progress update. |
| OnProgress(BundleOverallProgress) | Callback on overall progress update. |
| OnResolveSource(string, string, string[], BundleResolveSourceLocation) | Callback when payload or container cannot be located. |
| OnSameVersionInstalled(string, string, bool, WixToolset.Versioning.WixVersion) | Callback when a bundle with the same version is detected. |
| OnStartHelp(bool) | Callback when help should be displayed. |
| OnStartInstall(bool) | Callback when layout preparation should begin. |
| OnStartLayout(bool) | Callback when installation preparation should begin. |
| OnStartModify(bool) | Callback when modify preparation should begin. |
| OnStartProgressInstall(bool) | Callback when layout progress should begin. |
| OnStartProgressLayout(bool) | Callback when installation progress should begin. |
| OnStartProgressModify(bool) | Callback when modify progress should begin. |
| OnStartProgressRepair(bool) | Callback when repair progress should begin. |
| OnStartProgressUninstall(bool) | Callback when uninstall progress should begin. |
| OnStartProgressUpdateReplace(bool) | Callback when update progress should begin. |
| OnStartRepair(bool) | Callback when repair preparation should begin. |
| OnStartUninstall(bool) | Callback when uninstall preparation should begin. |
| OnStartUpdateReplace(bool) | Callback when update preparation should begin. |
| OnUpdateAvailable(string, string) | Callback to determine if update should be executed. |
| PromptCancel() | Prompt the user to cancel the bundle. |
| Run() | Runs the BundleUI until Stop(). |
| Stop() | Called to stop the running of the BundleUI. |
| UpdateCheckAllowed(string) | Callback to determine whether update check can be attempted at updateLocation. |
FireGiant.BundleApplicationFramework v6.0.1
CreateWindow() Method
Section titled “CreateWindow() Method”Create (but do not show) the BundleUI window to return the window’s handle to the bootstrapper application.
Declaration
Section titled “Declaration”public BundleUIWindowContext CreateWindow()Return value
Section titled “Return value”BundleUIWindowContext BundleUI window context with the windows handle and optional synchronization context.
OnCompleteCancel(bool restartRequired, bool fullUI) Method
Section titled “OnCompleteCancel(bool restartRequired, bool fullUI) Method”Callback when the bundle application is canceled.
Declaration
Section titled “Declaration”public void OnCompleteCancel( bool restartRequired, bool fullUI)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| restartRequired | bool | Indicates whether restart is required. |
| fullUI | bool | Indicates whether UI should be displayed. |
OnCompleteFailure(bool restartRequired, int errorCode, bool fullUI) Method
Section titled “OnCompleteFailure(bool restartRequired, int errorCode, bool fullUI) Method”Callback when the bundle application fails.
Declaration
Section titled “Declaration”public void OnCompleteFailure( bool restartRequired, int errorCode, bool fullUI)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| restartRequired | bool | Indicates whether restart is required. |
| errorCode | int | Error code for the failure. |
| fullUI | bool | Indicates whether UI should be displayed. |
OnCompleteSuccess(bool restartRequired, bool fullUI) Method
Section titled “OnCompleteSuccess(bool restartRequired, bool fullUI) Method”Callback when the bundle application succeeds.
Declaration
Section titled “Declaration”public void OnCompleteSuccess( bool restartRequired, bool fullUI)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| restartRequired | bool | Indicates whether restart is required. |
| fullUI | bool | Indicates whether UI should be displayed. |
OnConditionFailure(BundleCondition condition, string message) Method
Section titled “OnConditionFailure(BundleCondition condition, string message) Method”Callback when a condition fails.
Declaration
Section titled “Declaration”public bool OnConditionFailure( BundleCondition condition, string message)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| condition | BundleCondition | Failed condition. |
| message | string | Formatted message that can be displayed to the user. |
Return value
Section titled “Return value”bool False to fail the bundle application.
OnDowngradeAllowed(string bundleId, bool perMachine) Method
Section titled “OnDowngradeAllowed(string bundleId, bool perMachine) Method”Callback when a newer bundle is detected.
Declaration
Section titled “Declaration”public bool OnDowngradeAllowed( string bundleId, bool perMachine)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| bundleId | string | Id of the new bundle already installed. |
| perMachine | bool | Indicates wither the newer bundle is per-machine. |
Return value
Section titled “Return value”bool True if this bundle should downgrade the newer bundle.
OnError(BundleErrorType type, string packageId, int code, string message, int uIHint, BundleResult recommendation) Method
Section titled “OnError(BundleErrorType type, string packageId, int code, string message, int uIHint, BundleResult recommendation) Method”Callback when an overall bundle appliation error occurs.
Declaration
Section titled “Declaration”public BundleResult? OnError( BundleErrorType type, string packageId, int code, string message, int uIHint, BundleResult recommendation)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| type | BundleErrorType | Type of error. |
| packageId | string | Optional identifier of package involved in the error. |
| code | int | Error code. |
| message | string | Error message. |
| uIHint | int | Flags for use if displaying a message box. |
| recommendation | BundleResult | Result recommended by the bundle application for this class of error. |
OnForceReboot(int status, bool fullUI) Method
Section titled “OnForceReboot(int status, bool fullUI) Method”Callback when the Burn engine forces a restart.
Declaration
Section titled “Declaration”public bool OnForceReboot( int status, bool fullUI)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| status | int | Error code before the force restart. |
| fullUI | bool | Indicates whether UI should be displayed. |
OnInitializeHelp() Method
Section titled “OnInitializeHelp() Method”Callback before help will be started.
Declaration
Section titled “Declaration”public void OnInitializeHelp()OnInitializeInstall(bool fullUI) Method
Section titled “OnInitializeInstall(bool fullUI) Method”Callback before install will be started.
Declaration
Section titled “Declaration”public void OnInitializeInstall( bool fullUI)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| fullUI | bool | Indicates whether UI should be displayed. |
OnInitializeLayout() Method
Section titled “OnInitializeLayout() Method”Callback before layout will be started.
Declaration
Section titled “Declaration”public void OnInitializeLayout()OnInitializeModify(bool fullUI) Method
Section titled “OnInitializeModify(bool fullUI) Method”Callback before modify will be started.
Declaration
Section titled “Declaration”public void OnInitializeModify( bool fullUI)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| fullUI | bool | Indicates whether UI should be displayed. |
OnInitializeRepair(bool fullUI) Method
Section titled “OnInitializeRepair(bool fullUI) Method”Callback before repair will be started.
Declaration
Section titled “Declaration”public void OnInitializeRepair( bool fullUI)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| fullUI | bool | Indicates whether UI should be displayed. |
OnInitializeUninstall(bool fullUI) Method
Section titled “OnInitializeUninstall(bool fullUI) Method”Callback before uninstall will be started.
Declaration
Section titled “Declaration”public void OnInitializeUninstall( bool fullUI)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| fullUI | bool | Indicates whether UI should be displayed. |
OnMsiMessage(BundlePackage package, BundleInstallMessage messageType, string message, int displayParameters, string[] data, bool fullUI) Method
Section titled “OnMsiMessage(BundlePackage package, BundleInstallMessage messageType, string message, int displayParameters, string[] data, bool fullUI) Method”Callback when Windows Installer send an message.
Declaration
Section titled “Declaration”public BundleResult? OnMsiMessage( BundlePackage package, BundleInstallMessage messageType, string message, int displayParameters, string[] data, bool fullUI)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| package | BundlePackage | MSI package that sent the message. |
| messageType | BundleInstallMessage | Type of message from the Windows Installer. |
| message | string | Formatted message from the Windows Installer |
| displayParameters | int | Flags for use if displaying a message box. |
| data | string[] | Optional data specific to the message provided by the Windows Installer. |
| fullUI | bool | Indicates whether UI should be displayed. |
Return value
Section titled “Return value”BundleResult? Result of the message handling.
OnPackageComplete(BundlePackage package, BundleProgressAction action, int errorCode) Method
Section titled “OnPackageComplete(BundlePackage package, BundleProgressAction action, int errorCode) Method”Callback when action on package is complete.
Declaration
Section titled “Declaration”public void OnPackageComplete( BundlePackage package, BundleProgressAction action, int errorCode)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| package | BundlePackage | Package completed. |
| action | BundleProgressAction | Action completed. |
| errorCode | int | Error encountered during action. 0 indicates success. |
OnPackageProgress(BundlePackageProgress packageProgress) Method
Section titled “OnPackageProgress(BundlePackageProgress packageProgress) Method”Callback on overall package progress update.
Declaration
Section titled “Declaration”public void OnPackageProgress( BundlePackageProgress packageProgress)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| packageProgress | BundlePackageProgress | Overall progress. |
OnProgress(BundleOverallProgress progress) Method
Section titled “OnProgress(BundleOverallProgress progress) Method”Callback on overall progress update.
Declaration
Section titled “Declaration”public void OnProgress( BundleOverallProgress progress)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| progress | BundleOverallProgress | Overall progress. |
OnResolveSource(string packageOrContainerId, string payloadId, string[] sources, BundleResolveSourceLocation locations) Method
Section titled “OnResolveSource(string packageOrContainerId, string payloadId, string[] sources, BundleResolveSourceLocation locations) Method”Callback when payload or container cannot be located.
Declaration
Section titled “Declaration”public bool OnResolveSource( string packageOrContainerId, string payloadId, string[] sources, BundleResolveSourceLocation locations)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| packageOrContainerId | string | Package or container identifier for payload that cannot be found. |
| payloadId | string | Payload that cannot be found. |
| sources | string[] | Possible sources where payload was not found. |
| locations | BundleResolveSourceLocation | New resource source locations to find the payload. |
Return value
Section titled “Return value”bool True to retry with new locations, otherwise false to fail the installation.
OnSameVersionInstalled(string bundleId, string bundleTag, bool perMachine, WixToolset.Versioning.WixVersion version) Method
Section titled “OnSameVersionInstalled(string bundleId, string bundleTag, bool perMachine, WixToolset.Versioning.WixVersion version) Method”Callback when a bundle with the same version is detected.
Declaration
Section titled “Declaration”public BundleSameVersionAction OnSameVersionInstalled( string bundleId, string bundleTag, bool perMachine, WixToolset.Versioning.WixVersion version)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| bundleId | string | Id of the already installed bundle. |
| bundleTag | string | Tag of the already installed bundle. |
| perMachine | bool | Indicates wither the newer bundle is per-machine. |
| version | WixToolset.Versioning.WixVersion | Version of the already installed bundle. |
Return value
Section titled “Return value”BundleSameVersionAction Action to handle same version.
OnStartHelp(bool fullUI) Method
Section titled “OnStartHelp(bool fullUI) Method”Callback when help should be displayed.
Declaration
Section titled “Declaration”public bool OnStartHelp( bool fullUI)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| fullUI | bool | Indicates whether UI should be displayed. |
Return value
Section titled “Return value”bool True if the BundleUI handles the callback, otherwise bootstrapper application will exit.
OnStartInstall(bool fullUI) Method
Section titled “OnStartInstall(bool fullUI) Method”Callback when layout preparation should begin.
Declaration
Section titled “Declaration”public bool OnStartInstall( bool fullUI)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| fullUI | bool | Indicates whether UI should be displayed. |
Return value
Section titled “Return value”bool True if the BundleUI handles the callback, otherwise bootstrapper application will continue on to progress phase.
OnStartLayout(bool fullUI) Method
Section titled “OnStartLayout(bool fullUI) Method”Callback when installation preparation should begin.
Declaration
Section titled “Declaration”public bool OnStartLayout( bool fullUI)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| fullUI | bool | Indicates whether UI should be displayed. |
Return value
Section titled “Return value”bool True if the BundleUI handles the callback, otherwise bootstrapper application will continue on to progress phase.
OnStartModify(bool fullUI) Method
Section titled “OnStartModify(bool fullUI) Method”Callback when modify preparation should begin.
Declaration
Section titled “Declaration”public bool OnStartModify( bool fullUI)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| fullUI | bool | Indicates whether UI should be displayed. |
Return value
Section titled “Return value”bool True if the BundleUI handles the callback, otherwise bootstrapper application will continue on to progress phase.
OnStartProgressInstall(bool showUI) Method
Section titled “OnStartProgressInstall(bool showUI) Method”Callback when layout progress should begin.
Declaration
Section titled “Declaration”public void OnStartProgressInstall( bool showUI)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| showUI | bool | Indicates whether UI should be displayed. |
OnStartProgressLayout(bool showUI) Method
Section titled “OnStartProgressLayout(bool showUI) Method”Callback when installation progress should begin.
Declaration
Section titled “Declaration”public void OnStartProgressLayout( bool showUI)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| showUI | bool | Indicates whether UI should be displayed. |
OnStartProgressModify(bool showUI) Method
Section titled “OnStartProgressModify(bool showUI) Method”Callback when modify progress should begin.
Declaration
Section titled “Declaration”public void OnStartProgressModify( bool showUI)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| showUI | bool | Indicates whether UI should be displayed. |
OnStartProgressRepair(bool showUI) Method
Section titled “OnStartProgressRepair(bool showUI) Method”Callback when repair progress should begin.
Declaration
Section titled “Declaration”public void OnStartProgressRepair( bool showUI)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| showUI | bool | Indicates whether UI should be displayed. |
OnStartProgressUninstall(bool showUI) Method
Section titled “OnStartProgressUninstall(bool showUI) Method”Callback when uninstall progress should begin.
Declaration
Section titled “Declaration”public void OnStartProgressUninstall( bool showUI)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| showUI | bool | Indicates whether UI should be displayed. |
OnStartProgressUpdateReplace(bool showUI) Method
Section titled “OnStartProgressUpdateReplace(bool showUI) Method”Callback when update progress should begin.
Declaration
Section titled “Declaration”public void OnStartProgressUpdateReplace( bool showUI)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| showUI | bool | Indicates whether UI should be displayed. |
OnStartRepair(bool fullUI) Method
Section titled “OnStartRepair(bool fullUI) Method”Callback when repair preparation should begin.
Declaration
Section titled “Declaration”public bool OnStartRepair( bool fullUI)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| fullUI | bool | Indicates whether UI should be displayed. |
Return value
Section titled “Return value”bool True if the BundleUI handles the callback, otherwise bootstrapper application will continue on to progress phase.
OnStartUninstall(bool fullUI) Method
Section titled “OnStartUninstall(bool fullUI) Method”Callback when uninstall preparation should begin.
Declaration
Section titled “Declaration”public bool OnStartUninstall( bool fullUI)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| fullUI | bool | Indicates whether UI should be displayed. |
Return value
Section titled “Return value”bool True if the BundleUI handles the callback, otherwise bootstrapper application will continue on to progress phase.
OnStartUpdateReplace(bool fullUI) Method
Section titled “OnStartUpdateReplace(bool fullUI) Method”Callback when update preparation should begin.
Declaration
Section titled “Declaration”public bool OnStartUpdateReplace( bool fullUI)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| fullUI | bool | Indicates whether UI should be displayed. |
Return value
Section titled “Return value”bool True if the BundleUI handles the callback, otherwise bootstrapper application will continue on to progress phase.
OnUpdateAvailable(string updateLocation, string title) Method
Section titled “OnUpdateAvailable(string updateLocation, string title) Method”Callback to determine if update should be executed.
Declaration
Section titled “Declaration”public bool OnUpdateAvailable( string updateLocation, string title)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| updateLocation | string | Location where update was found. |
| title | string | Title of found update. |
Return value
Section titled “Return value”bool True if update should be executed.
PromptCancel() Method
Section titled “PromptCancel() Method”Prompt the user to cancel the bundle.
Declaration
Section titled “Declaration”public bool PromptCancel()Return value
Section titled “Return value”bool True if the user allowed the cancel.
Run() Method
Section titled “Run() Method”Runs the BundleUI until Stop().
Declaration
Section titled “Declaration”public void Run()Stop() Method
Section titled “Stop() Method”Called to stop the running of the BundleUI.
Declaration
Section titled “Declaration”public void Stop()UpdateCheckAllowed(string updateLocation) Method
Section titled “UpdateCheckAllowed(string updateLocation) Method”Callback to determine whether update check can be attempted at updateLocation.
Declaration
Section titled “Declaration”public bool UpdateCheckAllowed( string updateLocation)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| updateLocation | string | Location to check for updates. |
Return value
Section titled “Return value”bool True to allow check for update.