[wix-users] IBootstrapperBAFunction and abort

michael tissington michael at oaklodge.com
Thu Dec 3 12:32:31 PST 2020


Now I’ve got it thanks - inside the CreateBootstrapperBAFunction


> On Dec 3, 2020, at 11:55, Sean Hall via wix-users <wix-users at lists.wixtoolset.org> wrote:
> 
> The WindowsBuildNumber built-in variable was added in v3.14 (
> https://github.com/wixtoolset/wix3/pull/489). Otherwise, your BA functions
> can set your own variable to 0 or 1 in OnDetect and use that variable as
> the condition in the bal:Condition.
> 
> On Thu, Dec 3, 2020 at 1:50 PM michael tissington via wix-users <
> wix-users at lists.wixtoolset.org> wrote:
> 
>> Hmm, thanks - then I’m struggling how I might check for the following
>> 
>> Only install if
>> 
>> Windows 7 SP1 or
>> Windows 8.1 or
>> Windows 10 and build >= 1607
>> 
>>> On Dec 3, 2020, at 11:44, Sean Hall via wix-users <
>> wix-users at lists.wixtoolset.org> wrote:
>>> 
>>> You can have any number of bal:Condition elements. wixstdba will check
>> all
>>> of them.
>>> 
>> https://github.com/wixtoolset/wix3/blob/2ed6d7906c87bb65b75cfa0020e38a1b1dffa49b/src/ext/BalExtension/wixstdba/WixStandardBootstrapperApplication.cpp#L3271
>>> 
>>> On Thu, Dec 3, 2020 at 1:41 PM michael tissington via wix-users <
>>> wix-users at lists.wixtoolset.org> wrote:
>>> 
>>>> But this only allows for a single condition doesn’t it?
>>>> 
>>>>> On Dec 3, 2020, at 11:39, Sean Hall via wix-users <
>>>> wix-users at lists.wixtoolset.org> wrote:
>>>>> 
>>>>> You should use bal:Condition for launch conditions. (
>>>>> https://wixtoolset.org/documentation/manual/v3/xsd/bal/condition.html)
>>>>> 
>>>>> On Thu, Dec 3, 2020 at 1:30 PM michael tissington via wix-users <
>>>>> wix-users at lists.wixtoolset.org> wrote:
>>>>> 
>>>>>> I have implemented IBootstrapperBAFunction which currently just adds a
>>>>>> Sleep in the OnDetect() to keep a splash screen visible for a second.
>>>>>> 
>>>>>> In OnDetect can I also do check of specific launch conditions, like
>>>>>> checking registry etc.?
>>>>>> 
>>>>>> If so, what do I need to set or return from OnDetect to trigger a
>>>> shutdown
>>>>>> of the bootstrapped?
>>>>>> 
>>>>>> thanks
>>>>>> 
>>>>>> ____________________________________________________________________
>>>>>> WiX Toolset Users Mailing List provided by FireGiant
>>>>>> http://www.firegiant.com/
>>>>>> 
>>>>> 
>>>>> ____________________________________________________________________
>>>>> WiX Toolset Users Mailing List provided by FireGiant
>>>> http://www.firegiant.com/
>>>> 
>>>> 
>>>> ____________________________________________________________________
>>>> WiX Toolset Users Mailing List provided by FireGiant
>>>> http://www.firegiant.com/
>>> 
>>> ____________________________________________________________________
>>> WiX Toolset Users Mailing List provided by FireGiant
>> http://www.firegiant.com/
>> 
>> 
>> ____________________________________________________________________
>> WiX Toolset Users Mailing List provided by FireGiant
>> http://www.firegiant.com/
> 
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/




More information about the wix-users mailing list