public PackageWriterBase(PackageInfo package) { _Package = package; _Package.AttachInstallerInfo(new InstallerInfo()); }
/// ----------------------------------------------------------------------------- /// <summary> /// This Constructor creates a new InstallerInfo instance from a PackageInfo object /// </summary> /// <param name="package">The PackageInfo instance</param> /// <param name="sitePath">The physical path to the root of the site</param> /// ----------------------------------------------------------------------------- public InstallerInfo(PackageInfo package, string sitePath) { Initialize(); _PhysicalSitePath = sitePath; TempInstallFolder = Globals.InstallMapPath + "Temp\\" + Path.GetFileNameWithoutExtension(Path.GetRandomFileName()); InstallMode = InstallMode.UnInstall; ManifestFile = new InstallFile(Path.Combine(TempInstallFolder, package.Name + ".dnn")); package.AttachInstallerInfo(this); }