Wix Toolset: How to store file in a table in custom wix extension

119 Views Asked by At

I am trying to create a custom Wix Extension which copies a file with come preparations.

How can I achieve the similar procedure to File Element when all you need is specify file source and the file gets stored in the MSI tables?

<File Id="Some.dll"
      Source="files\Some.dll"
      KeyPath="yes" />

As a workaround I can use Binary Element, but I want to have the same elegant style as Wix Toolset.

1

There are 1 best solutions below

0
Doc On

You'll want to add your file to the Binary table of the MSI. This page here shows how to do this and then utilize it while installing.