C# Class ZeroInstall.DesktopIntegration.Windows.AppAlias

Contains control logic for applying AccessPoints.AppAlias on Windows systems.
ファイルを表示 Open project: 0install/0install-win

Public Methods

Method Description
Create ( FeedTarget target, [ command, [ aliasName, bool machineWide, [ handler ) : void

Creates an application alias in the current system.

Remove ( string aliasName, bool machineWide ) : void

Removes an application alias from the current system.

Private Methods

Method Description
AddToAppPaths ( string exeName, string exePath, bool machineWide ) : void

Adds an EXE to the AppPath registry key.

GetStubDir ( bool machineWide ) : string
RemoveFromAppPaths ( string exeName, bool machineWide ) : void

Removes an EXE from the AppPath registry key.

Method Details

Create() public static method

Creates an application alias in the current system.
The user canceled the task. A problem occurs while writing to the filesystem or registry. A problem occured while downloading additional data (such as icons). Write access to the filesystem or registry is not permitted.
public static Create ( FeedTarget target, [ command, [ aliasName, bool machineWide, [ handler ) : void
target ZeroInstall.Store.FeedTarget The application being integrated.
command [ The command within the alias shall point to; can be null.
aliasName [ The name of the alias to be created.
machineWide bool Create the alias machine-wide instead of just for the current user.
handler [ A callback object used when the the user is to be informed about the progress of long-running operations such as downloads.
return void

Remove() public static method

Removes an application alias from the current system.
A problem occurs while writing to the filesystem or registry. Write access to the filesystem or registry is not permitted.
public static Remove ( string aliasName, bool machineWide ) : void
aliasName string The name of the alias to be removed.
machineWide bool The alias was created machine-wide instead of just for the current user.
return void