protected override IWixMainEntity CreateMainEntity() { WixProduct product = new WixProduct(); // Создаем предопределенные элементы. Это общие элементы для // всех инсталляторов (для серверной и клиентской частей). // При построении msi данные секции уже должны быть в файлах wxs с // заполненными атрибутами. // Корневой элемент с типом WixFeatureElement создаст сам WixProduct. // Заполняем свойствами корневую Feature. product.RootElement.Id = "RootFeature"; WixFeatureElement commonFeature = new WixFeatureElement(); commonFeature.Id = "CommonFeature"; commonFeature.Predefinition(); product.RootElement.Items.Add(commonFeature); WixComponentElement component; component = new WixComponentElement(); component.Id = "ProgramMenuFamilyDirComponent"; component.Predefinition(); commonFeature.Items.Add(component); component = new WixComponentElement(); component.Id = "ProgramMenuProductDirComponent"; component.Predefinition(); commonFeature.Items.Add(component); component = new WixComponentElement(); component.Id = "ReinstallComponent"; component.Predefinition(); commonFeature.Items.Add(component); return product; }