void AddNewChildElementsToDirectory()
        {
            WixDirectoryRefElement dirRef          = document.GetRootDirectoryRef();
            WixDirectoryElement    programFilesDir = dirRef.FirstChild as WixDirectoryElement;

            WixDirectoryElement sharpDevelopDir = programFilesDir.AddDirectory("SharpDevelop");

            sharpDevelopDir.Id = "SharpDevelopFolder";

            WixComponentElement component = sharpDevelopDir.AddComponent("SharpDevelopExe");

            component.Guid = "guid";
            WixFileElement file = component.AddFile("SharpDevelop.exe");

            file.Source = @"..\..\bin\SharpDevelop.exe";
        }
예제 #2
0
        protected override void AddNewChildElementsToDirectory()
        {
            WixDirectoryElement dir             = document.GetRootDirectory();
            WixDirectoryElement programFilesDir = dir.AddDirectory("ProgramFilesFolder");

            programFilesDir.SourceName = "PFiles";
            programFilesDir.RemoveAttribute("Name");

            WixDirectoryElement sharpDevelopDir = programFilesDir.AddDirectory("SharpDevelop");

            sharpDevelopDir.Id = "SharpDevelopFolder";

            WixComponentElement component = sharpDevelopDir.AddComponent("SharpDevelopExe");

            component.Guid = "guid";
            WixFileElement file = component.AddFile("SharpDevelop.exe");

            file.Source = @"..\..\bin\SharpDevelop.exe";
        }