Create a Shortcut
This action creates a new Windows shortcut (or link), as the ones you find on your desktop. If you would like Paquet Builder to make your shortcuts automatically, you can use the Shortcut Creation page, although this action offers more options.
Properties
Section titled “Properties”| Property Name | Data Type | Description |
|---|---|---|
| Description | String | A description for your new shortcut. It will appear in the Tip window when you move the mouse’s cursor on the shortcut’s icon. Optional. |
| IconFilename | String | The path to the file which should contain the icon resource for your shortcut. Optional. |
| IconIndex | Integer | If the icon resource file specified by IconFilename contains several icons, you can indicate which icon should be used (0, 1, 2,…, n-1). Optional (0 by default). |
| LinkFilename | String | Defines the name of your shortcut (the text which will appear near the icon) and where it will be located. Be sure to give the .lnk extension. See below for examples. |
| LinkTarget | String | This is the file that will be executed by Windows when you double-click the shortcut (document or executable file). Example: %DESTPATH%\MyDoc.hlp You can select a reference to a file in the package by pressing the ”…” button. |
| Parameters | String | Any command line options that should be passed to the target program file. Optional. |
| ShowWindow | dwWindowState | Defines the state of the target program’s window. Optional. |
| WorkingDir | String | Sets the default working directory of the shortcut. When the shortcut’s associated target file is run, Windows will set the current directory to this folder. Optional. |
Examples for LinkFilename
Section titled “Examples for LinkFilename”-
To create a shortcut on the desktop, enter: %DESKTOPDIR%\My Document.lnk. This will create an icon with the text “My Document” on the Windows desktop.
-
To create a shortcut in a new program menu group, enter this: %PROGMENUDIR%\Hello World\My Document.lnk. This will create a new icon named My Document in the folder Hello World.
Action Catalog Browse all available custom actions.