Detailed instructions for use are in the User's Guide.
[. . . ] WiseScript Package Editor Reference
WiseScript Package Editor
The software described in this book is furnished under a license agreement and may be used only in accordance with the terms of the agreement. Documentation version 8. 0
Legal Notice
Copyright © 2009 Symantec Corporation. Symantec, the Symantec Logo, and Altiris are trademarks or registered trademarks of Symantec Corporation or its affiliates in the U. S. The product described in this document is distributed under licenses restricting its use, copying, distribution, and decompilation/reverse engineering. [. . . ] For details on sample scripts, see ScriptHelp. htm in the Samples subdirectory of this product's installation directory.
Check In-use File
This action determines whether a particular file is "in use", indicating a file is being accessed by a process. Typically, in-use files cannot be moved, deleted, or opened by other processes.
To complete the dialog box
Variable Select or enter a variable to store the result of this test. After this action runs, the variable contains one of the following values: In-Use, Not In-Use, or Non-Existent (which means the file could not be found). You can use variables to build the path.
Check Service
This action checks if a particular service is running.
To complete the dialog box
Variable Select or enter a variable in which to put the status of the service. Possible return results are: Unknown, Running, Stopped, Paused, StartPending, StopPending, ContinuePending, or PausePending. Unknown means the service was not found or the current user does not have privileges to query the service. If the status ends with the word Pending, the service has received a request, but is still processing the request. This is not necessarily the same name you see in the Services control panel. If you are unsure of the service name, consult its documentation or manufacturer.
Compiler Variable Actions
Compiler Variable If, Else, and End actions are used in an If block to let you compile different versions of an installation. You set the value of a compiler variable at compile time, and the actions inside a compiler variable If block are added to the script according to the value of the compiler variable You create compiler variables on the Compiler Variables page. You also specify when you should be prompted for a compiler variable value. See Compiler Variables on page 44.
WiseScript Package Editor Reference
135
WiseScript Actions
Example: On the Compiler Variable page, create a compiler variable named _DEBUG_ with a default value of "N". In the installation script, add a Compiler Variable If action that checks if _DEBUG_ equals "Y". Below the Compiler Variable If action, add an Add Text to INSTALL. LOG action that contains useful debug information. When you compile, you are prompted for the value of this compiler variable. The Add Text to INSTALL. LOG action within the Compiler Variable If block is added to the final script. The debug information you requested then appears in the installation log.
To create a compiler variable If block
1. Add a Compiler Variable If action and complete the dialog box: If Variable Build an If statement by selecting a compiler variable and a comparison. The first list shows compiler variables on the Compiler Variables page. Do not enter variables in this field, because it checks your computer in real time, not run time. If you selected File Exists above, the If statement checks to see if the file that you enter in The Value exists. If you selected File Version Equal or Greater, enter the file in The Value. [. . . ] Do not include the $ character because this operator does not return a string. Deletes all trailing spaces.
After$(str1, str2)
Len(str) Lcase$(str) Ucase$(str) Ltrim$(str) Rtrim$(str)
Logical Operators
Logical Operator
And Or Not > < >= <= = <>
Example
A And B A Or B A Not B X>Y X<Y X>=Y X<=Y X=Y X<>Y
Description
True only if expression A and B are both true True if either expression, A or B, is true, or if both A and B are true True only if one expression is true. Example: A but not B True if expression X is numerically greater than Y True if expression X is numerically less than Y True if expression X is numerically greater than or equal to Y True if expression X is numerically less than or equal to Y True if expression X is numerically equal to Y True if expression X is not numerically equal to Y
Windows Language Codes
WiseScript Package Editor only
For additional language codes, search for "Language Code and Scripts" in the MSDN Library (msdn. microsoft. com/library).
Language
Belgian (Flemish) Czech Danish
Code
NLB CSY DAN
Script
Latin 1 Latin 2 Latin 1
WiseScript Package Editor Reference
254
Quick Reference
Language
Dutch (Standard) English (American) English (Australian) English (British) English (Canadian) English (Ireland) English (New Zealand) Finnish French (Belgian) French (Canadian) French (Standard) French (Swiss) German (Austrian) German (Standard) German (Swiss) Greek Hungarian Icelandic Italian (Standard) Italian (Swiss) Japanese Norwegian (Bokmal) Norwegian (Nynorsk) Polish Portuguese (Brazilian) Portuguese (Standard) Russian Slovak Spanish (Mexican) Spanish (Modern) Spanish (Standard/Traditional) Swedish Turkish
Code
NLD ENU ENA ENG ENC ENI ENZ FIN FRB FRC FRA FRS DEA DEU DES ELL HUN ISL ITA ITS JPN NOR NON PLK PTB PTG RUS SKY ESM ESN ESP SVE TRK
Script
Latin 1 Latin 1 Latin 1 Latin 1 Latin 1 Latin 1 Latin 1 Latin 1 Latin 1 Latin 1 Latin 1 Latin 1 Latin 1 Latin 1 Latin 1 Other Latin 2 Latin 1 Latin 1 Latin 1 Hira;Kana;Hani Latin 1 Latin 1 Latin 2 Latin 1 Latin 1 Cyrillic Latin 2 Latin 1 Latin 1 Latin 1 Latin 1 Latin 2
WiseScript Package Editor Reference
255
Quick Reference
Command-Line Options
You can set command-line options when you run WiseScript Package Editor, the installation executable, and the uninstaller executable. These are especially useful for running an installation as part of a batch file or other automated installation system. [. . . ]