Skip to content

IBundleUI Interface

BundleUI interface.

MethodDescription
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

Create (but do not show) the BundleUI window to return the window’s handle to the bootstrapper application.

public BundleUIWindowContext CreateWindow()

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.

public void OnCompleteCancel(
bool restartRequired,
bool fullUI
)
ParameterTypeDescription
restartRequiredboolIndicates whether restart is required.
fullUIboolIndicates 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.

public void OnCompleteFailure(
bool restartRequired,
int errorCode,
bool fullUI
)
ParameterTypeDescription
restartRequiredboolIndicates whether restart is required.
errorCodeintError code for the failure.
fullUIboolIndicates 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.

public void OnCompleteSuccess(
bool restartRequired,
bool fullUI
)
ParameterTypeDescription
restartRequiredboolIndicates whether restart is required.
fullUIboolIndicates whether UI should be displayed.

OnConditionFailure(BundleCondition condition, string message) Method

Section titled “OnConditionFailure(BundleCondition condition, string message) Method”

Callback when a condition fails.

public bool OnConditionFailure(
BundleCondition condition,
string message
)
ParameterTypeDescription
conditionBundleConditionFailed condition.
messagestringFormatted message that can be displayed to the user.

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.

public bool OnDowngradeAllowed(
string bundleId,
bool perMachine
)
ParameterTypeDescription
bundleIdstringId of the new bundle already installed.
perMachineboolIndicates wither the newer bundle is per-machine.

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.

public BundleResult? OnError(
BundleErrorType type,
string packageId,
int code,
string message,
int uIHint,
BundleResult recommendation
)
ParameterTypeDescription
typeBundleErrorTypeType of error.
packageIdstringOptional identifier of package involved in the error.
codeintError code.
messagestringError message.
uIHintintFlags for use if displaying a message box.
recommendationBundleResultResult 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.

public bool OnForceReboot(
int status,
bool fullUI
)
ParameterTypeDescription
statusintError code before the force restart.
fullUIboolIndicates whether UI should be displayed.

Callback before help will be started.

public void OnInitializeHelp()

Callback before install will be started.

public void OnInitializeInstall(
bool fullUI
)
ParameterTypeDescription
fullUIboolIndicates whether UI should be displayed.

Callback before layout will be started.

public void OnInitializeLayout()

Callback before modify will be started.

public void OnInitializeModify(
bool fullUI
)
ParameterTypeDescription
fullUIboolIndicates whether UI should be displayed.

Callback before repair will be started.

public void OnInitializeRepair(
bool fullUI
)
ParameterTypeDescription
fullUIboolIndicates whether UI should be displayed.

Callback before uninstall will be started.

public void OnInitializeUninstall(
bool fullUI
)
ParameterTypeDescription
fullUIboolIndicates 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.

public BundleResult? OnMsiMessage(
BundlePackage package,
BundleInstallMessage messageType,
string message,
int displayParameters,
string[] data,
bool fullUI
)
ParameterTypeDescription
packageBundlePackageMSI package that sent the message.
messageTypeBundleInstallMessageType of message from the Windows Installer.
messagestringFormatted message from the Windows Installer
displayParametersintFlags for use if displaying a message box.
datastring[]Optional data specific to the message provided by the Windows Installer.
fullUIboolIndicates whether UI should be displayed.

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.

public void OnPackageComplete(
BundlePackage package,
BundleProgressAction action,
int errorCode
)
ParameterTypeDescription
packageBundlePackagePackage completed.
actionBundleProgressActionAction completed.
errorCodeintError encountered during action. 0 indicates success.

OnPackageProgress(BundlePackageProgress packageProgress) Method

Section titled “OnPackageProgress(BundlePackageProgress packageProgress) Method”

Callback on overall package progress update.

public void OnPackageProgress(
BundlePackageProgress packageProgress
)
ParameterTypeDescription
packageProgressBundlePackageProgressOverall progress.

OnProgress(BundleOverallProgress progress) Method

Section titled “OnProgress(BundleOverallProgress progress) Method”

Callback on overall progress update.

public void OnProgress(
BundleOverallProgress progress
)
ParameterTypeDescription
progressBundleOverallProgressOverall 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.

public bool OnResolveSource(
string packageOrContainerId,
string payloadId,
string[] sources,
BundleResolveSourceLocation locations
)
ParameterTypeDescription
packageOrContainerIdstringPackage or container identifier for payload that cannot be found.
payloadIdstringPayload that cannot be found.
sourcesstring[]Possible sources where payload was not found.
locationsBundleResolveSourceLocationNew resource source locations to find the payload.

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.

public BundleSameVersionAction OnSameVersionInstalled(
string bundleId,
string bundleTag,
bool perMachine,
WixToolset.Versioning.WixVersion version
)
ParameterTypeDescription
bundleIdstringId of the already installed bundle.
bundleTagstringTag of the already installed bundle.
perMachineboolIndicates wither the newer bundle is per-machine.
versionWixToolset.Versioning.WixVersionVersion of the already installed bundle.

BundleSameVersionAction Action to handle same version.

Callback when help should be displayed.

public bool OnStartHelp(
bool fullUI
)
ParameterTypeDescription
fullUIboolIndicates whether UI should be displayed.

bool True if the BundleUI handles the callback, otherwise bootstrapper application will exit.

Callback when layout preparation should begin.

public bool OnStartInstall(
bool fullUI
)
ParameterTypeDescription
fullUIboolIndicates whether UI should be displayed.

bool True if the BundleUI handles the callback, otherwise bootstrapper application will continue on to progress phase.

Callback when installation preparation should begin.

public bool OnStartLayout(
bool fullUI
)
ParameterTypeDescription
fullUIboolIndicates whether UI should be displayed.

bool True if the BundleUI handles the callback, otherwise bootstrapper application will continue on to progress phase.

Callback when modify preparation should begin.

public bool OnStartModify(
bool fullUI
)
ParameterTypeDescription
fullUIboolIndicates whether UI should be displayed.

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.

public void OnStartProgressInstall(
bool showUI
)
ParameterTypeDescription
showUIboolIndicates whether UI should be displayed.

Callback when installation progress should begin.

public void OnStartProgressLayout(
bool showUI
)
ParameterTypeDescription
showUIboolIndicates whether UI should be displayed.

Callback when modify progress should begin.

public void OnStartProgressModify(
bool showUI
)
ParameterTypeDescription
showUIboolIndicates whether UI should be displayed.

Callback when repair progress should begin.

public void OnStartProgressRepair(
bool showUI
)
ParameterTypeDescription
showUIboolIndicates whether UI should be displayed.

OnStartProgressUninstall(bool showUI) Method

Section titled “OnStartProgressUninstall(bool showUI) Method”

Callback when uninstall progress should begin.

public void OnStartProgressUninstall(
bool showUI
)
ParameterTypeDescription
showUIboolIndicates whether UI should be displayed.

OnStartProgressUpdateReplace(bool showUI) Method

Section titled “OnStartProgressUpdateReplace(bool showUI) Method”

Callback when update progress should begin.

public void OnStartProgressUpdateReplace(
bool showUI
)
ParameterTypeDescription
showUIboolIndicates whether UI should be displayed.

Callback when repair preparation should begin.

public bool OnStartRepair(
bool fullUI
)
ParameterTypeDescription
fullUIboolIndicates whether UI should be displayed.

bool True if the BundleUI handles the callback, otherwise bootstrapper application will continue on to progress phase.

Callback when uninstall preparation should begin.

public bool OnStartUninstall(
bool fullUI
)
ParameterTypeDescription
fullUIboolIndicates whether UI should be displayed.

bool True if the BundleUI handles the callback, otherwise bootstrapper application will continue on to progress phase.

Callback when update preparation should begin.

public bool OnStartUpdateReplace(
bool fullUI
)
ParameterTypeDescription
fullUIboolIndicates whether UI should be displayed.

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.

public bool OnUpdateAvailable(
string updateLocation,
string title
)
ParameterTypeDescription
updateLocationstringLocation where update was found.
titlestringTitle of found update.

bool True if update should be executed.

Prompt the user to cancel the bundle.

public bool PromptCancel()

bool True if the user allowed the cancel.

Runs the BundleUI until Stop().

public void Run()

Called to stop the running of the BundleUI.

public void Stop()

UpdateCheckAllowed(string updateLocation) Method

Section titled “UpdateCheckAllowed(string updateLocation) Method”

Callback to determine whether update check can be attempted at updateLocation.

public bool UpdateCheckAllowed(
string updateLocation
)
ParameterTypeDescription
updateLocationstringLocation to check for updates.

bool True to allow check for update.