• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class CleanupInstaller

The CleanupInstaller cleans up (removes) files from previous versions.

Inheritance
System.Object
ComponentInstallerBase
FileInstaller
CleanupInstaller
Inherited Members
FileInstaller.SupportsManifestOnlyInstall
FileInstaller.DeleteFiles
FileInstaller.CollectionNodeName
FileInstaller.Files
FileInstaller.DefaultPath
FileInstaller.ItemNodeName
FileInstaller.PhysicalBasePath
FileInstaller.BasePath
FileInstaller.Rollback()
FileInstaller.CommitFile(InstallFile)
FileInstaller.DeleteFile(InstallFile)
FileInstaller.InstallFile(InstallFile)
FileInstaller.IsCorrectType(InstallFileType)
FileInstaller.ReadCustomManifest(XPathNavigator)
FileInstaller.UnInstallFile(InstallFile)
ComponentInstallerBase.InstallMode
ComponentInstallerBase.Log
ComponentInstallerBase.PackageFiles
ComponentInstallerBase.PhysicalSitePath
ComponentInstallerBase.Completed
ComponentInstallerBase.Package
ComponentInstallerBase.Skipped
ComponentInstallerBase.Type
ComponentInstallerBase.Version
ComponentInstallerBase.ReadEventMessageNode(XPathNavigator)
Namespace: DotNetNuke.Services.Installer.Installers
Assembly: DotNetNuke.dll
Syntax
public class CleanupInstaller : FileInstaller

Constructors

| Improve this Doc View Source

CleanupInstaller()

Initializes a new instance of the CleanupInstaller class.

Declaration
public CleanupInstaller()

Properties

| Improve this Doc View Source

AllowableFiles

Gets a list of allowable file extensions (in addition to the Host's List).

Declaration
public override string AllowableFiles { get; }
Property Value
Type Description
System.String
Overrides
ComponentInstallerBase.AllowableFiles
| Improve this Doc View Source

Folders

Gets the list of folders to clean up.

Declaration
protected IList<string> Folders { get; }
Property Value
Type Description
IList<System.String>

Methods

| Improve this Doc View Source

CleanupFile(InstallFile)

The CleanupFile method cleans up a single file.

Declaration
protected bool CleanupFile(InstallFile insFile)
Parameters
Type Name Description
InstallFile insFile

The InstallFile to clean up.

Returns
Type Description
System.Boolean

true if the file was deleted, otherwise false.

| Improve this Doc View Source

CleanupFolder(String)

Deletes all empty folders beneath a given root folder and the root folder itself as well if empty.

Declaration
protected virtual void CleanupFolder(string path)
Parameters
Type Name Description
System.String path

The root folder path.

| Improve this Doc View Source

Commit()

The Commit method finalizes the Install and commits any pending changes.

Declaration
public override void Commit()
Overrides
FileInstaller.Commit()
Remarks

In the case of Clenup this is not neccessary.

| Improve this Doc View Source

Install()

The Install method installs the file component.

Declaration
public override void Install()
Overrides
FileInstaller.Install()
Remarks

The Install method cleans up the files.

| Improve this Doc View Source

ProcessFile(InstallFile, XPathNavigator)

The ProcessFile method determines what to do with parsed "file" node.

Declaration
protected override void ProcessFile(InstallFile file, XPathNavigator nav)
Parameters
Type Name Description
InstallFile file

The file represented by the node.

XPathNavigator nav

The XPathNavigator representing the node.

Overrides
FileInstaller.ProcessFile(InstallFile, XPathNavigator)
| Improve this Doc View Source

ProcessFolder(XPathNavigator)

Determines what to do with the parsed "folder" node.

Declaration
protected virtual void ProcessFolder(XPathNavigator nav)
Parameters
Type Name Description
XPathNavigator nav

The XPathNavigator representing the node.

| Improve this Doc View Source

ReadManifest(XPathNavigator)

The ReadManifest method reads the manifest file for the file component.

Declaration
public override void ReadManifest(XPathNavigator manifestNav)
Parameters
Type Name Description
XPathNavigator manifestNav
Overrides
FileInstaller.ReadManifest(XPathNavigator)
| Improve this Doc View Source

ReadManifestItem(XPathNavigator, Boolean)

The ReadManifestItem method reads a single node.

Declaration
protected override InstallFile ReadManifestItem(XPathNavigator nav, bool checkFileExists)
Parameters
Type Name Description
XPathNavigator nav

The XPathNavigator representing the node.

System.Boolean checkFileExists

Flag that determines whether a check should be made.

Returns
Type Description
InstallFile

A new InstallFile instance.

Overrides
FileInstaller.ReadManifestItem(XPathNavigator, Boolean)
| Improve this Doc View Source

RollbackFile(InstallFile)

The RollbackFile method rolls back the install of a single file.

Declaration
protected override void RollbackFile(InstallFile installFile)
Parameters
Type Name Description
InstallFile installFile

The InstallFile to commit.

Overrides
FileInstaller.RollbackFile(InstallFile)
Remarks

For new installs this removes the added file. For upgrades it restores the backup file created during install.

| Improve this Doc View Source

UnInstall()

The UnInstall method uninstalls the file component.

Declaration
public override void UnInstall()
Overrides
FileInstaller.UnInstall()
Remarks

There is no uninstall for this component.

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS