예제 #1
0
 public InstallerInfo(PackageInfo package, string sitePath)
 {
     _PhysicalSitePath  = sitePath;
     _TempInstallFolder = CommonLibrary.Common.Globals.InstallMapPath + "Temp\\" + Path.GetFileNameWithoutExtension(Path.GetRandomFileName());
     _InstallMode       = InstallMode.UnInstall;
     package.AttachInstallerInfo(this);
 }
예제 #2
0
 /// -----------------------------------------------------------------------------
 /// <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);
 }
예제 #3
0
 public PackageWriterBase(PackageInfo package)
 {
     _Package = package;
     _Package.AttachInstallerInfo(new InstallerInfo());
 }