Skip to content
Discussion options

You must be logged in to vote

I'll post my own answer. I found a way to just create the feature without re-writing the whole bootstrapper application.

There is undocumented "BAFunction" aka bootstrapper application function. But a new C++ project is involved. There is even an example about how to do it in the repo:
https://github.com/wixtoolset/wix/blob/main/src/ext/Bal/Samples/bafunctions/WixSampleBAFunctions.cpp

Create C++ dynamic library project, implement it according to the project, and then add dll payload like this in the bundle:

 <Payload Name="MyBAFunction.dll"
          SourceFile="..\path\to\MyBAFunction.dll"
          bal:BAFunctions="true" />

The C++ project should reference this nuget package: WixToolse…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@dongyi-cai-mctlg
Comment options

Comment options

You must be logged in to vote
1 reply
@dongyi-cai-mctlg
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by dongyi-cai-mctlg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants