Install multiple files to multiple locations

Jun 19, 2015 at 6:12 PM
Any example of this?

For instance I would like to install:
  • all my files in "C:\Visual Studio 2013\Projects\MyProject\bin\Release" to "%ProgramFiles%\MyCompany\MyProduct", and
  • one configuration file from "C:\Visual Studio 2013\Projects\MyProject\MyIniFile.ini" to "C:\Program Files (x86)\Microsoft Office\Office14"
        Files files = new Files(wixProject.SourceBaseDir + @"\*.*");
        Dir rootDir = new Dir(targetPath, files);
        //These 2 lines cause problem:            
        files = new Files(@"C:\Visual Studio 2013\Projects\MyProject\MyIniFile.ini");
        Dir msOfficeDir1 = new Dir(@"C:\Program Files (x86)\Microsoft Office\Office14", files);
        wixProject.Dirs = new[] { rootDir, msOfficeDir1 };
error CNDL0027 : The Directory/@Name attribute's value, 'C:\Program Files (x86)\Microsoft Office\Office14', is not a valid long name because it contains illegal characters. Legal long names contain no more than 260 characters and must contain at least one non-period character. Any character except for the follow may be used: \ ? | > < : / * ".
Jun 20, 2015 at 1:42 PM
Most likely you will succeed if your replace "new Files(" with "new File("