How explicitly generate guids for componets when using HarvestDirectory to harvest files from a directory? #7764
-
Hello, community, have faced with problem, when harvesting files from a directory using HarvestDirectory all elements generated with Guid="*", but it is not usable for my case, if I use RemoveFolder with KeyPath="yes" for this Components, is there any way to explicitly generate guids or generate it through xslt? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Assuming you have Heat set up in your project file, you could set the HarvestDirectoryGenerateGuidsNow property to true and HarvestDirectoryAutogenerateGuids to false in your property group:
May be worth checking out https://wixtoolset.org/docs/tools/heat/, which has a complete listing of properties you can set for Heat. |
Beta Was this translation helpful? Give feedback.
-
@kerrywicks thank you |
Beta Was this translation helpful? Give feedback.
Assuming you have Heat set up in your project file, you could set the HarvestDirectoryGenerateGuidsNow property to true and HarvestDirectoryAutogenerateGuids to false in your property group:
May be worth checking out https://wixtoolset.org/docs/tools/heat/, which has a complete listing of properties you can set for Heat.