[wix-users] Custom BA DisableModify
Vanniekerk, Tyrel (GE Healthcare)
tyrel.vanniekerk at ge.com
Fri Sep 30 06:49:13 PDT 2016
Yea, I am already doing all you said bellow. If you run the installer when it's already installed (actually run the exe again, not run it from the Programs and Features), you don't seem to get any of that information. e.Installed will be true and not sure what the command action is, but of course it would not show if the installer has modify or repair disabled. I will just have to set a burn variable to disable the action in my bootstrapper. Thanks.
-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Phill Hogland
Sent: Thursday, September 29, 2016 3:51 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: EXT: Re: [wix-users] Custom BA DisableModify
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="1.0.0.0" 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.
-----Original Message-----
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
>
> Hi,
>
> 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.
>
> Thanks.
>
> ____________________________________________________________________
> 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=oAJIeMTNC3Z6
> LlnozAjna4bWEZCGLInzcwB6EkZAFeU&m=jgCHwXdeEN0K-47QqtEhHKuSQdOkdK0-n0PE
> Y2XVbIQ&s=1HeXpu0UUuruV3aiCymem840xMWDX9Tx2G2sNk5GnTU&e=
>
____________________________________________________________________
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 https://urldefense.proofpoint.com/v2/url?u=http-3A__www.firegiant.com_&d=DQICAg&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r=oAJIeMTNC3Z6LlnozAjna4bWEZCGLInzcwB6EkZAFeU&m=ZF12pJgmjDTv5h-yQ96MzLgGgOPBcmeucGUSFmPpSR4&s=-xjFHZPEh5G2nJLHPTSKdV4SqqKsteSfIu1b4t-vsUE&e=
____________________________________________________________________
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=ZF12pJgmjDTv5h-yQ96MzLgGgOPBcmeucGUSFmPpSR4&s=-xjFHZPEh5G2nJLHPTSKdV4SqqKsteSfIu1b4t-vsUE&e=
More information about the wix-users
mailing list