Skip to main content

Shortcuts.CreateShortcut Method

Declaring Type: Shortcuts
Namespace: Velopack.Windows
Assembly: Velopack
Assembly Version: 0.0.942+a011233

Creates new shortcuts to the specified executable at the specified locations.

public void CreateShortcut(string relativeExeName, ShortcutLocation locations, bool updateOnly, string programArguments, string icon = null);

Parameters

relativeExeName string

The relative path or filename of the executable (from the current app dir).

locations ShortcutLocation

The locations to create shortcuts.

updateOnly bool

If true, shortcuts will be updated instead of created.

programArguments string

The arguments the application should be launched with

icon string

Path to a specific icon to use instead of the exe icon.


Documentation generated by MdDocs