Top ten variables in wisescript

Article:HOWTO5862  |  Created: 2005-10-12  |  Updated: 2005-10-12  |  Article URL http://www.symantec.com/docs/HOWTO5862
Article Type
How To



Question

What are the top 10 automatic runtime variables?

Answer
* WIN - Holds the location for the Windows directory given by the environment variable for WIN. This is usually set to C:\Windows or C:\WINNT. It is not recommended that you modify this variable.

* SYS - Holds the location for the System directory given by the environment variable for SYS. It is not recommended that you modify this variable.

* SYS32 - Holds the location for the System32 directory given by the environment variable for SYS32. If there is not a System32 directory (Win95/98 machines) this holds the System directory location instead. It is not recommended that you modify this variable.

* TEMP - Holds the location for the Temporary directory given by the environment variable for TEMP. It is not recommended that you modify this variable.

* INST - Holds the location of the executable that is running the current installation. For example, if the installation is running from a CD then this variable is set to the location of the CD drive. It is not recommended that you modify this variable.

* CMDLINE - Holds any information that is passed to the installation executable.

* LANG - Holds the language of the current installation. It is not recommended that you modify this variable.

* INSTALL_RESULT (read-only) - Holds a letter that indicates the status of the last Install File(s), Copy Local File(s), Edit INI File, or Execute Program script action.
For Install File(s) and Copy Local File(s) actions, these are the possible values:

V - Version. The file's Replacement option was set to check version, and the version being installed was not newer.

D - Date. The file's Replacement option was set to check Date/Time and the condition was not met.

E - Exists. The file's Replacement option was set to Never, and the file exists.

I - Install on reboot. Because the file was in use, it is set for replacement upon reboot of the machine. (The RESTART variable is also set to "S" automatically when a file needs to be replaced on reboot).

NULL - Success. The file was copied successfully.

In addition this variable can hold the returned error code value form an Execute Program call.

Note: If the Install File(s) or Copy Local File(s) action copied files based on a wildcard, the value of INSTALL_RESULT is based on the last file copied or installed.

For Edit INI File actions, these are the possible values:
E - The INI file could not be written.
NULL - The edit was successful.

For Execute Program actions, INSTALL_RESULT holds the exit code of the executable that is executed. If you run a Wise executable, it returns a value of 0 if the executable executed successfully or a 1 if the executable was unsuccessful or cancelled.

* RESTART - You can use this variable either to prompt the user to reboot or to suppress reboots caused by the Wise installation. This variable is sometimes set automatically by the installation executable. For instance, if the installation needs to replace in-use files, RESTART is set to "S".

S - On all operating systems, prompts the user to reboot. On Windows NT, it logs the user out if the user is not a local administrator.

W - On Windows95/98, prompts the user for to reboot. On Windows NT, it logs the user out.

NULL -If you set this variable to blank then reboots are suppressed.

* CRLF - Lets you parse at a paragraph mark (return character) or put a paragraph mark into a variable.

Note: In Script Editor, pre-defined variables do not appear in the drop-down list for a Set Variable action unless they have already been used in the script.


Legacy ID



3035


Article URL http://www.symantec.com/docs/HOWTO5862


Terms of use for this information are found in Legal Notices