public void Load(string catalogueFile) { // Load the catalogue. Catalogue catalogue = new Catalogue(); catalogue.Load(catalogueFile); // Load the module. WixModuleLoader moduleLoader = new WixModuleLoader(); moduleLoader.Name = Path.GetFileNameWithoutExtension(catalogueFile); moduleLoader.Version = m_version; moduleLoader.Guid = m_guid; moduleLoader.Manufacturer = m_manufacturer; moduleLoader.Load(m_isWin64, catalogue); // Save the .wxs file. Directory.CreateDirectory(m_wixBuilder.BuildFolder); string wxsPath = Path.Combine(m_wixBuilder.BuildFolder, Path.ChangeExtension(Path.GetFileName(catalogueFile), File.Wxs.Extension)); moduleLoader.Save(wxsPath); // Add it to the list. m_wixBuilder.Add(moduleLoader); }
public void Add(WixModuleLoader moduleLoader) { m_wixDocuments.Add(moduleLoader.Name, moduleLoader.Wix); }