コード例 #1
0
 public PackageWriterBase(PackageInfo package)
 {
     _Package = package;
     _Package.AttachInstallerInfo(new InstallerInfo());
 }
コード例 #2
0
ファイル: InstallerInfo.cs プロジェクト: rut5949/Dnn.Platform
 /// -----------------------------------------------------------------------------
 /// <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);
 }