[wix-users] Progress messages from a Burn bundle?
Rob Mensching
rob at firegiant.com
Mon Mar 6 01:08:03 PST 2023
Yes. Use `IBoostrapperEngine::SendEmbeddedProgress()` and/or `IBoostrapperEngine::SendEmbeddedError()` when embedded.
wixstdba should be doing so already.
-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Matthias Reuss via wix-users
Sent: Monday, March 6, 2023 12:14 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Matthias Reuss <matthias.mr.reuss at wsa.com>
Subject: Re: [wix-users] Progress messages from a Burn bundle?
The 3rd-party bundle uses Burn v3.11.2.4516 (we are using Burn v3.11.1.2318).
That bundle contains 47 packages in total, out of which 33 are actually installed in my test environment. Most of them are MSI packages, there are also some EXE packages. A lot of those packages come both as x86 and x64 packages, where only the matching one is installed (that's why it installs only 33 packages).
When I manually run the 3rd-party bundle with its UI, it does not show an overall progress bar, but is does display the name of the package it is currently installing.
Your questions also make me ask my question the other way round:
Would I have to implement something in order to make my bundle send progress events to an embedding "outer" bundle (if any)?
Best regards
Matthias Reuss
Von: Hoover, Jacob <Jacob.Hoover at greenheck.com>
Gesendet: Freitag, 3. März 2023 18:21
An: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Matthias Reuss <matthias.mr.reuss at wsa.com>
Betreff: RE: Progress messages from a Burn bundle?
CAUTION: This email originated from outside the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
________________________________
What version of Burn is the 3rd party bundle using? What packages is the 3rd party bundle installing? When you manually run the 3rd party bundle, what progress indicators does it show?
From: wix-users <wix-users-bounces at lists.wixtoolset.org<mailto:wix-users-bounces at lists.wixtoolset.org>> On Behalf Of Matthias Reuss via wix-users
Sent: Thursday, March 2, 2023 12:50 PM
To: wix-users at lists.wixtoolset.org<mailto:wix-users at lists.wixtoolset.org>
Cc: Matthias Reuss <matthias.mr.reuss at wsa.com<mailto:matthias.mr.reuss at wsa.com>>
Subject: [wix-users] Progress messages from a Burn bundle?
Hello,
My installation bundle contains a 3rd-party EXE, which is itself a Burn bundle.
Can I get progress messages from that "embedded" bundle?
The ExePackage definition looks like
<ExePackage Id="ThirdPartyBundle"
Compressed="no"
PerMachine="yes"
Vital="yes"
Name="Path\ThirdParty.exe"
DisplayName="Third Party Bundle"
[...]
Protocol="burn">
<ExitCode Value="0" Behavior="success" /> <ExitCode Value="1" Behavior="error"/> </ExePackage>
And the ExecuteProgress event handler of my CustomBA:
private void ExecuteProgress(object sender, ExecuteProgressEventArgs e) { [...] _executeProgress = e.ProgressPercentage; _model.LogMessage($"ExecuteProgress for package {e.PackageId}: Percentage {_executeProgress}"); [...] }
My log file tells me that ExecuteProgress was called for this package only 2 times: once at 0 % and once at 100 %.
This 3rd-party bundle is the longest-running part of my bundle, so my progress bar would look much better if I could get more progress messages.
Best regards
Matthias Reuss
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.firegiant.com%2F&data=05%7C01%7Cmatthias.mr.reuss%40wsa.com%7Cb49585af46094ea1bb4408db1c0bb1d2%7C1a41b96d457d41ac94ef22d1901a7556%7C0%7C0%7C638134608771513158%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=UkhYbOFtnYmjJxvr7XnoBaJxrfSYaO6IhzmrA%2FssQ7w%3D&reserved=0>
NOTE: This email was received from an external source. Please use caution when opening links or attachments in the message.
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users
mailing list