WiseScript Package Editor Reference
89
WiseScript Actions
Get Registry Key Value
This action puts the value of a registry key into a variable. Multi-line (MULTI_SZ)
registry values are read into a list format.
To complete the dialog box
z
Variable Name
Select or enter a variable to store the value.
z
Default Value
(Optional) Enter the value to put into the variable if the value is not found.
z
Registry Key
Enter the key that contains the value to be retrieved.
z
Value Name
Enter the value name. (If you are reading the Win16 registry, leave this field blank.)
z
Root
Select the root that contains the registry key. (If you are reading the Win16
registry, leave HKEY_CLASSES_ROOT selected.)
z
Remove File Name
Mark this to remove a file name from the end of a returned path, leaving only the
directory name. This operation is not performed on the Default Value.
z
Expand Environment Variables
If you read a REG_EXPAND_SZ value, mark this to have all environment variables in
the registry value replaced with their actual values.
The sample script URL.wse uses this action. For details on sample scripts, see
ScriptHelp.htm in the Samples subdirectory of this product’s installation directory.
Get SVS Layer Info
This action retrieves information about an SVS layer on the destination computer and
puts that information into different variables.
To complete the dialog box
Specify the layer’s GUID and select or enter a variable name in each field whose
information you want to gather. Leave the other fields empty.
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 66 and
Find SVS Layer GUID
on page 85.
z
Return variable
(Optional.) Enter a name for the return variable. When this script action runs
successfully, either 0 or 1 is placed in this variable.
z
Active Variable
If the layer is deactivated, 1 is placed in this variable. If the layer is activated, 2 is
placed in this variable.