C# Class ZeroInstall.Commands.Utils.MaintenanceManager

Afficher le fichier Open project: 0install/0install-win Class Usage Examples

Méthodes publiques

Свойство Type Description
PerformedWindowMessageID int

Private Properties

Свойство Type Description
DeleteIfExists void
DeleteServiceLogFiles void
DesktopIntegrationApply void
DesktopIntegrationRemove void
LoadManifest Manifest
NgenApply void
NgenRemove void
RegistryApply void
RegistryRemove void
RemoveOneGetBootstrap void
RemoveOneGetBootstrap void
ServiceInstall void
ServiceStart void
ServiceStop bool
ServiceUninstall void
TargetMutexAquire void
TargetMutexRelease void

Méthodes publiques

Méthode Description
Deploy ( ) : void

Runs the deployment process.

MaintenanceManager ( [ targetDir, [ handler, bool machineWide, bool portable ) : System

Creates a new maintenance manager.

Remove ( ) : void

Runs the removal process.

Private Methods

Méthode Description
DeleteIfExists ( string path ) : void
DeleteServiceLogFiles ( ) : void
DesktopIntegrationApply ( ) : void
DesktopIntegrationRemove ( ) : void
LoadManifest ( [ dirPath ) : Manifest
NgenApply ( ) : void

Runs ngen in the background to pre-compile new/updated .NET assemblies.

NgenRemove ( ) : void

Runs ngen to remove pre-compiled .NET assemblies.

RegistryApply ( ) : void

Update the registry entries.

RegistryRemove ( ) : void
RemoveOneGetBootstrap ( ) : void

Try to remove OneGet Bootstrap module to prevent future PowerShell sessions from loading it again.

RemoveOneGetBootstrap ( string dirPath ) : void
ServiceInstall ( ) : void

Installs the Zero Install Store Service.

ServiceStart ( ) : void

Starts the Zero Install Store Service.

Must call this after TargetMutexRelease.

ServiceStop ( ) : bool

Stops the Zero Install Store Service if it is running.

ServiceUninstall ( ) : void

Uninstalls the Zero Install Store Service.

TargetMutexAquire ( ) : void

Waits for any Zero Install instances running in TargetDir to terminate and then prevents new ones from starting.

The TargetDir is encoded into an AppMutex name using object.GetHashCode.

TargetMutexRelease ( ) : void

Counterpart to TargetMutexAquire.

Method Details

Deploy() public méthode

Runs the deployment process.
Access to a resource was denied. An IO operation failed.
public Deploy ( ) : void
Résultat void

MaintenanceManager() public méthode

Creates a new maintenance manager.
public MaintenanceManager ( [ targetDir, [ handler, bool machineWide, bool portable ) : System
targetDir [ The full path to the directory containing the Zero Install instance.
handler [ A callback object used when the the user needs to be asked questions or informed about download and IO tasks.
machineWide bool Apply operations machine-wide instead of just for the current user.
portable bool Controls whether the Zero Install instance at should be a portable instance.
Résultat System

Remove() public méthode

Runs the removal process.
Access to a resource was denied. An IO operation failed.
public Remove ( ) : void
Résultat void

Property Details

PerformedWindowMessageID public_oe static_oe property

The window message ID (for use with WindowsUtils.BroadcastMessage) that signals that a maintenance operation has been performed.
public static int PerformedWindowMessageID
Résultat int