Is it possible to use it to harvest files?

Jan 15, 2016 at 10:54 PM
I just started using this 1/15/16. We have large web sites that need to be harvested. I've looked through the docs, but can't find anything about that.
Jan 16, 2016 at 12:30 PM
I am not sure what exactly you are trying to ask but if you want to deploy a Web site on IIS then you should have a look at the Wix# code samples. There is an IIS sample as well.
Jan 29, 2016 at 8:21 PM
What I mean by harvesting is hiding the use of Heat to create a fragment that lists all files in the folder.

So, instead of
var project new MangedProject("MyP", new Dir("Some dir", new File("file1.txt"), new File("File2.txt")));

We could do this:
var project new MangedProject("MyP", new Dir("Some dir", new FileInclude(".")));

The first method will be ugly after just a few files.

When I say Harvest, I mean using Heat.

Thanks
Jan 30, 2016 at 7:02 AM
Edited Jan 30, 2016 at 7:07 AM
OK. It's already implemented. See "WildCard Files" and "ReleasFolder"samples.

Top-level file discovery
var project =
    new Project("MyProduct",
        new Dir(@"%ProgramFiles%\MyCompany\MyProduct",
            new DirFiles(@"Release\Bin\*.*"),
            new Dir("GlobalResources", 
                new DirFiles(@"Release\Bin\GlobalResources\*.*")),
            new Dir("Images", 
                new DirFiles(@"Release\Bin\Images\*.*")),
            new ExeFileShortcut("Uninstall MyProduct", 
                                "[System64Folder]msiexec.exe", 
                                "/x [ProductCode]")));
Deep file discovery
var project =
    new Project("MyProduct",
        new Dir(@"%ProgramFiles%\My Company\My Product",
            new Dir("Documentation", 
                    new Files(@"\\BUILDSERVER\Documentation\*.*")), 
            new Files(@"..\Release Folder\Release\*.*",
                      f => !f.EndsWith(".obj") && !f.EndsWith(".pdb")),