Search code examples
filewixhiddenheat

Wix: Heat hidden files


I building an installer with visual studio. To include my files I use Heatdirectory in the wixproj-file.

Heat is including all the files (including the hidden files). That's what I want.

But: When files get copied to the target-system all of them are marked as visible. Is there any option to keep their state? I could not find anything.

greez


Solution

  • Because I could not find a direct way to archive my goal I created an Custom Action and a (Pre-Build-)C#-Program.

    Before building the Installer I search for hidden files and folders and create lists for them with a C#-Program.

    After the files have been installed a custom actions marks these files and folders as hidden.