WiseScript Editor Reference 64
WiseScript Actions
Create Shortcut in SVS Layer
This SVS script action creates a shortcut in the virtual software layer. The shortcut can
reference a program outside the layer. Common locations for shortcuts include the Start
menu, the Startup directory, the installation directory, and the desktop.
Note
Use this action on a deactivated SVS layer only.
To complete the dialog box
z Layer GUID
Enter the layer’s GUID (globally unique identifier) or a variable that represents the
layer’s GUID. If you enter the layer’s GUID, do not include the { } brackets.
For information on creating a variable for a layer’s GUID, see Create SVS Layer on
page 65 and Find SVS Layer GUID on page 84.
z Shortcut Name
Enter the name to appear on the shortcut.
z Source Path
Specify the path of a file that will be installed on the destination computer. You can
only use an SVS variable to reference a program inside the layer. If you use a
variable, start the path with a variable (example:
[PROGRAMFILES]\Application.EXE) and do not enclose it in quotation marks.
z SVS Destination Path
Enter the path to the shortcut to be created (example: [DESKTOP]\). For the
current user’s desktop, Start menu, or Startup directory, use [DESKTOP],
[STARTMENU], or [STARTUP]. For the All Users equivalents, use
[COMMONDESKTOP], [COMMONSTARTMENU], or [COMMONSTARTUP].
z Arguments
(Optional) If the shortcut is for an .EXE, enter command-line options.
z Default Directory
Specify the default directory that should be set when running the target file, if
different from the target file’s location. In Windows Explorer, this field is referred to
as the Start in directory. You an SVS path unless the shortcut references a program
outside the layer.
z Description
Enter text to appear in the Comment field of the shortcut’s properties dialog box.
z Icon Path
(Optional) Specify the file that contains the icon to be used for the shortcut.
Otherwise, the target file’s icon is used.
z Icon Number
Enter the number of the icon to use from the file specified in Icon Pathname
above. You an SVS path unless the shortcut references a program outside the layer.
z Window Style
Select an option to determine the appearance of the .EXE file’s window.
z Hot key shift state and Hot key letter
These fields together populate the Shortcut Key field in the shortcut’s Properties
dialog box in Windows Explorer. See Windows help.