From 6b5912b9169b3cb5f1e893c06571c570ac4bc8da Mon Sep 17 00:00:00 2001 From: anders_k Date: Wed, 16 Jan 2019 00:14:31 +0000 Subject: [PATCH] Docs: Clarify that $outdir is used as a shortcut property and that the path to the .lnk cannot be relative. git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7073 212acab6-be3b-0410-9dea-997c60f758d6 --- Docs/src/generalpurpose.but | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Docs/src/generalpurpose.but b/Docs/src/generalpurpose.but index bbe73d40..e0ddb143 100644 --- a/Docs/src/generalpurpose.but +++ b/Docs/src/generalpurpose.but @@ -38,9 +38,10 @@ You should always specify an absolute path. \c [/NoWorkingDir] link.lnk target.file [parameters [icon.file [icon_index_number [start_options [keyboard_shortcut [description]]]]]] Creates a shortcut 'link.lnk' that links to 'target.file', with optional parameters 'parameters'. +You must specify an absolute path to the .lnk file. The icon used for the shortcut is 'icon.file,icon_index_number'; for default icon settings use empty strings for both icon.file and icon_index_number. start_options should be one of: \e{SW_SHOWNORMAL}, \e{SW_SHOWMAXIMIZED}, \e{SW_SHOWMINIMIZED}, or an empty string. -keyboard_shortcut should be in the form of 'flag|c' where flag can be a combination (using |) of: \e{ALT}, \e{CONTROL}, \e{EXT}, or \e{SHIFT}. c is the character to use (a-z, A-Z, 0-9, F1-F24, etc). Note that no spaces are allowed in this string. A good example is "ALT|CONTROL|F8". $OUTDIR is used as the working directory. You can change it by using \R{setoutpath}{SetOutPath} before creating the Shortcut or use /NoWorkingDir if you don't need to set the working directory. +keyboard_shortcut should be in the form of 'flag|c' where flag can be a combination (using |) of: \e{ALT}, \e{CONTROL}, \e{EXT}, or \e{SHIFT}. c is the character to use (a-z, A-Z, 0-9, F1-F24, etc). Note that no spaces are allowed in this string. A good example is "ALT|CONTROL|F8". $OUTDIR is stored as the shortcut's working directory property. You can change it by using \R{setoutpath}{SetOutPath} before creating the shortcut or use /NoWorkingDir if you don't need to set the working directory property. description should be the description of the shortcut, or comment as it is called under XP. The error flag is set if the shortcut cannot be created (i.e. either of the paths (link or target) does not exist, or some other error).