HeatDirectory Multiple Dirctories #7860
Unanswered
L3Prichaun13
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I will start by saying... I am doing it wrong!
I have a wix toolset V4 package and bundle package as well (created as WIX4 and not converted from WIX3)...
PROBLEM: 2nd heatdirectory fails to find files but creates outputfile and populates it
Below is the info I have in the Directory.wxs file.
The first heatdirectory properly harvests files and installs them into INSTALLFOLDER
second heatdirectory harvests files and creates the wxs file BUT does not install ANY of the files ANYWHERE nor the right location of SCHEDULEFOLDER
<StandardDirectory Id="ProgramFilesFolder"> <Directory Id="CompanyNameFolder" Name="COMPANYNAME" > <Directory Id="INSTALLFOLDER" Name="!(loc.ProductFolderName)"> <Directory Id="SCHEDULEFOLDER" Name="Scheduling"/> </Directory> <Directory Id="SecurityFolder" Name="Security"/> </Directory> </StandardDirectory>
In my Project File for the MSI package, there are the 2 heatdirectory lines
both ComponentsGenerated.wxs & ComponentsGenerated_Scheduler.wxs get created upon msbuild (right click on msi package and build)
<HeatDirectory OutputFile="ComponentsGenerated.wxs" DirectoryRefId="INSTALLFOLDER" ComponentGroupName="**PublishedComponents**" SuppressCom="true" Directory="..\UserInterface\bin" SuppressFragments="true" SuppressRegistry="true" SuppressRootDirectory="true" AutoGenerateGuids="false" GenerateGuidsNow="true" ToolPath="$(WixToolPath)" />
In the below heatdirectory, I am pointing to files I manually added into a folder of the project, not sure if this is the issue but I also tried referencing these files from my local C drive as well and got the same error.
<HeatDirectory OutputFile="ComponentsGenerated_Scheduler.wxs" DirectoryRefId="SCHEDULEFOLDER" ComponentGroupName="**PublishedSchedulerComponents**" SuppressCom="true" Directory=".\Resources\SchedulerFiles\" SuppressFragments="true" SuppressRegistry="true" SuppressRootDirectory="true" AutoGenerateGuids="false" GenerateGuidsNow="true" ToolPath="$(WixToolPath)" />
In my Product.wxs file I have these components referenced within the package.
<Feature Id="ProductFeature" Title="COMPANYNAME" Level="1"> <ComponentGroupRef Id="ProductComponents" /> <ComponentGroupRef Id="**PublishedComponents**" /> <ComponentGroupRef Id="**PublishedSchedulerComponents**"/> </Feature>
When I build, I get errors: for all the items and below is just one of them but they are all the same minus the file names
WIX0103 Cannot find the File file 'SourceDir\Infragistics2.Shared.v8.1.dll'. The following paths were checked: SourceDir\Infragistics2.Shared.v8.1.dll, C:\Git\COMPANYNAME\COMPANYNAME_cs\UserInterface\bin\Infragistics2.Shared.v8.1.dll, C:\Git\COMPANYNAME\COMPANYNAME_cs\UserInterface\bin\SourceDir\Infragistics2.Shared.v8.1.dll COMPANYNAME.Installer C:\Git\COMPANYNAME\COMPANYNAME_cs\COMPANYNAME.Installer\ComponentsGenerated_Scheduler.wxs 5
I am not calling out the SourceDir anywhere in the msi package so I am not sure
If there is anything else you would like me to provide please let me know....
Beta Was this translation helpful? Give feedback.
All reactions