public ModulePackageWriter(XPathNavigator manifestNav, InstallerInfo installer)
 {
     _DesktopModule = new DesktopModuleInfo();
     Package        = new PackageInfo(installer);
     ReadLegacyManifest(manifestNav, true);
     Package.Name         = DesktopModule.ModuleName;
     Package.FriendlyName = DesktopModule.FriendlyName;
     Package.Description  = DesktopModule.Description;
     if (!string.IsNullOrEmpty(DesktopModule.Version))
     {
         Package.Version = new Version(DesktopModule.Version);
     }
     Package.PackageType = "Module";
     LegacyUtil.ParsePackageName(Package);
     Initialize(DesktopModule.FolderName);
 }
        public ModulePackageWriter(XPathNavigator manifestNav, InstallerInfo installer)
        {
            this.DesktopModule = new DesktopModuleInfo();

            // Create a Package
            this.Package = new PackageInfo(installer);

            this.ReadLegacyManifest(manifestNav, true);

            this.Package.Name         = this.DesktopModule.ModuleName;
            this.Package.FriendlyName = this.DesktopModule.FriendlyName;
            this.Package.Description  = this.DesktopModule.Description;
            if (!string.IsNullOrEmpty(this.DesktopModule.Version))
            {
                this.Package.Version = new Version(this.DesktopModule.Version);
            }

            this.Package.PackageType = "Module";

            LegacyUtil.ParsePackageName(this.Package);

            this.Initialize(this.DesktopModule.FolderName);
        }