[wix-users] Custom BA DisableModify
phill.hogland at rimage.com
Thu Sep 29 13:50:31 PDT 2016
I believe that DisableModify or DisableRepair are used by Burn to configure your ARP entry, and while I don't know of any way to detect your authoring of those valuesat runtime, I think what you are really looking for is:
In OnDetectBegin take note of e.Installed and use it to initialize your model.
In OnDetectComplete (or later) take note of the Bootstrapper.Command.Action object and process what the user indicated that they wanted (based on how Burn parsed the command line).
In your UI decide what to do, and set that PlannedAction in your Model and then pass it as a parameter to the Engine.Plan(myPlannedAction) method.
Take a look at how these issues are addressed in the WixToolset source by reviewing the WixBA project.
From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of Vanniekerk, Tyrel (GE Healthcare) <tyrel.vanniekerk at ge.com>
Sent: Thursday, September 29, 2016 12:14:32 PM
To: WiX Toolset Users Mailing List
Subject: [wix-users] Custom BA DisableModify
Yes, I have a managed bootstrapper and want to know if the DisableModify or DisableRepair options have been set to yes. As in:
<Bundle Name="Bundle Name" Version="126.96.36.199" Manufacturer="A.C.M.E" UpgradeCode="Some Guid" DisableModify="yes">
A workaround would be to set a variable as well and check that, but I can't imagine why I would not get that value from the bootstrapper or .Engine or somewhere. If you are creating a custom bootstrapper having a launch window that allows you to Modify/Repair/Uninstall seems like one of the basic dialogs you have to handle.
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Farrukh Waheed
Sent: Thursday, September 29, 2016 11:56 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: EXT: Re: [wix-users] Custom BA DetectModify
from Custom BA, did you mean a Managed Bootstrapper?.. Sorry I got confused cuz of terminologies sometimes..
On 27 September 2016 at 13:15, Vanniekerk, Tyrel (GE Healthcare) < tyrel.vanniekerk at ge.com> wrote:
> Correction, the option in the bootstrapper is DisableModify, not sure
> what on earth I was typing before.
> From: Vanniekerk, Tyrel (GE Healthcare)
> Sent: Tuesday, September 27, 2016 10:24 AM
> To: 'wix-users at lists.wixtoolset.org' <wix-users at lists.wixtoolset.org>
> Subject: Custom BA DetectModify
> Is there a way to see what the DetectModify value is set to in a
> custom BA? I have a launcher window and want to hide the Modify
> option if it's been disabled.
> WiX Toolset Users Mailing List provided by FireGiant
WiX Toolset Users Mailing List provided by FireGiant https://urldefense.proofpoint.com/v2/url?u=http-3A__www.firegiant.com_&d=DQICAg&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r=oAJIeMTNC3Z6LlnozAjna4bWEZCGLInzcwB6EkZAFeU&m=jgCHwXdeEN0K-47QqtEhHKuSQdOkdK0-n0PEY2XVbIQ&s=1HeXpu0UUuruV3aiCymem840xMWDX9Tx2G2sNk5GnTU&e=
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users