Skip to main content

Shortcuts Class

⚠️ Warning: Desktop and StartMenuRoot shortcuts are now created and removed automatically when your app is installed / uninstalled.

Namespace: Velopack.Windows
Assembly: Velopack
Assembly Version: 0.0.942+a011233

A helper class to create or delete windows shortcuts.

[Obsolete("Desktop and StartMenuRoot shortcuts are now created and removed automatically when your app is installed / uninstalled.")]
public class Shortcuts

Inheritance: object → Shortcuts

Attributes: ObsoleteAttribute

Constructors

NameDescription
Shortcuts(ILogger, IVelopackLocator)

Methods

NameDescription
CreateShortcut(string, ShortcutLocation, bool, string, string)Creates new shortcuts to the specified executable at the specified locations.
CreateShortcutForThisExe(ShortcutLocation)Create a shortcut to the currently running executable at the specified locations. See CreateShortcut(string, ShortcutLocation, bool, string, string) to create a shortcut to a different program
DeleteShortcuts(string, ShortcutLocation)Delete all the shortcuts for the specified executable in the specified locations.
FindShortcuts(string, ShortcutLocation)Searches for existing shortcuts to an executable inside the current package.
RemoveShortcutForThisExe(ShortcutLocation)Removes a shortcut for the currently running executable at the specified locations

Documentation generated by MdDocs