Include all files in a specific directory into msi package

前端 未结 2 1747
再見小時候
再見小時候 2021-02-05 22:02

I\'ve got a directory containing multiple files that I want to include in my msi package build by a Wix project.

/database
/database/migration11.txt         


        
相关标签:
2条回答
  • 2021-02-05 22:54

    If anyone still needs this, here is a sample of HarvestDirector with wixproj. Thanks to DavidEGrayson.

    0 讨论(0)
  • 2021-02-05 23:01

    You can use task in your wixproj file:

    <ItemGroup> 
    ... Your wxs files ...
    <HarvestDirectory Include="$(variable)\YourDirectory\">
      <ComponentGroupName>CG_YOUR_GROUP</ComponentGroupName>
      <DirectoryRefId>DIR_REFERENCE</DirectoryRefId>
      <AutogenerateGuids>false</AutogenerateGuids>
      <GenerateGuidsNow>false</GenerateGuidsNow>
      <SuppressUniqueIds>true</SuppressUniqueIds>
      <SuppressCom>true</SuppressCom>
      <SuppressRegistry>true</SuppressRegistry>
      <SuppressRootDirectory>true</SuppressRootDirectory>
      <PreprocessorVariable>var.Property_Preprocessor</PreprocessorVariable>
    </HarvestDirectory>
    </ItemGroup>
    

    This task calls Heat during the build. Hope this helps you.

    0 讨论(0)
提交回复
热议问题