[wix-users] Disallowing bootstrapper UI install

Phill Hogland phill.hogland at rimage.com
Fri Aug 28 12:28:24 PDT 2015


Here are a couple of links in the old wix-users archive, and I know there are more links that are even more detailed.
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Conditional-variables-in-burn-td7598132.html#a7598136
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Conditional-variables-in-burn-td7598132.html#a7598136

It has been a while since I last worked with a functions project but it was pretty straight forward.  You might try searching:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/

 The sample bafunctions project in the wix source also has commented out sample code to provide guidance.  Get the wix source code from either the wixXXX-debug.zip package where you downloaded wix or at this link:
https://github.com/wixtoolset/wix3

There is more info on bafunctions, as it relates to using Wix 3.7 (but it is dated with respect to the current wix 3.10 release).
https://wixextba.codeplex.com/

Look at:
...\wix3\src\burn\Samples\bafunctions\WixBiitstrapperBAFunctions.cpp


-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Griesshammer, Christoph (GE Healthcare)
Sent: Friday, August 28, 2015 2:01 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] Disallowing bootstrapper UI install

Thank you for your informative answer.

I'm sorry for my beginners' knowledge of bootstrappers, but I was wondering if you or anyone else have any good tutorials of how to achieve this type of work? I'm wondering how I exactly extend the existing WixStdBa to implement OnDetectBegin.

Christoph

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Phill Hogland
Sent: Friday, August 28, 2015 1:14 PM
To: WiX Toolset Users Mailing List
Subject: Re: [wix-users] Disallowing bootstrapper UI install

You can use your BA's reference to the Wix Command.Display object to determine whether it was launched in silent or with a display.  And you can use Command.GetCommandLineArgs to get the (none burn) parameters which were passed in and provide logic if required command line switches are missing (with or without a display).  And if you want to see the command line as it was before Burn parsed it, you call system APIs.  If using the WixStdBa add a c++ bafunctions.dll and implement you logic in OnDetectBegin,  or certainly by OnDetectComplete, which could present a message box or set an engine variable which is then acted on by a bal;Condition statement.  (I did something similar a few years back before converting to a custom BA, which provides even more flexibility for these scenarios.)

Phill

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Griesshammer, Christoph (GE Healthcare)
Sent: Friday, August 28, 2015 11:44 AM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] Disallowing bootstrapper UI install

I am trying to set a condition on a bootstrapper to disallow a UI install.

The reason for this, is that the .exe should only be used for a push installation called silently.

However, we do not want anyone getting their hands on the .exe and trying to install it by just double-clicking, as they are ignoring some command-line options.

We are near the end of a release, so I don't have time to make a robust UI and properly test it, hence I am trying to just remove the UI install completely.

Ideally, it'd be as simple as:

<bal:Condition Message="This installer can only be run in silent mode.">UILevel = 2</bal:Condition>

But I see that this is an MSI property and we can't utilize it here.

Looking at the log file, I can't see any property that would let me achieve this.

Any help?

Christoph Griesshammer


____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant https://urldefense.proofpoint.com/v2/url?u=http-3A__www.firegiant.com_&d=BQICAg&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r=-l6_npd-dx-ekbVSbypvaw-IcErQ11UE3f78jQgrCDw&m=aOMFT39-gBP5qbzQRGCpfa7wZCLT78W4ghz-McJZKzI&s=ZEDeZZ-EfsKNZsnfCXgGhVTX8yX6AP2gmkAReduSjro&e= 

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant https://urldefense.proofpoint.com/v2/url?u=http-3A__www.firegiant.com_&d=BQICAg&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r=-l6_npd-dx-ekbVSbypvaw-IcErQ11UE3f78jQgrCDw&m=aOMFT39-gBP5qbzQRGCpfa7wZCLT78W4ghz-McJZKzI&s=ZEDeZZ-EfsKNZsnfCXgGhVTX8yX6AP2gmkAReduSjro&e= 

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-users mailing list