简体   繁体   中英

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

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM