Initialize Svs; Insert Line Into Text File - Symantec WISESCRIPT EDITOR 7.0 SP2 - FOR WISE INSTALLATION EXPRESS V1.0 Installation Manual

Hide thumbs Also See for WISESCRIPT EDITOR 7.0 SP2 - FOR WISE INSTALLATION EXPRESS V1.0:
Table of Contents

Advertisement

Initialize SVS

Insert Line Into Text File

WiseScript Editor Reference
Include Script C:\Scripts\OpensWord.wse
Example of what a short include script might look like:
Execute %PROGRAM_FILES%\winword.exe
This action initializes the SVS Driver (Software Virtualization Agent) so that you can
communicate with it. It takes no parameters, and selecting it from the Action list inserts
it directly into the script with no further dialog boxes or prompts. It is included in all of
the SVS-specific actions. If you create a user-defined SVS-specific action, begin the
action with this action.
See also:
About SVS Script Actions
This action edits a text file on the destination computer. Use it to edit configuration files
that cannot be edited by Edit INI File, Add Device to System.ini, Add Command to
Config.sys, or Add Command to Autoexec.bat.
You can insert a new line at a particular line number, or you can search for text and
insert a new line before, after, or in place of the line where the text was found. Either
complete the Line Number field or the Search for Existing Text section. Do not
complete both because you can only do one or the other.
To complete the dialog box
File to Edit
Specify the path of the text file to edit (example: %SYS32%\File.txt).
Text to Insert
Enter the text to add to the file. If the line refers to a directory or file, start the path
with a variable (example: %MAINDIR%\Application.exe).
Line Number
Enter the line number at which to insert the new text. Enter 0 to append to the end
of the file. Information in the Search for Existing Text area overrides any line
number that is specified here unless the text is not found.
Search for Text
Enter the text to search for. If more than one line in the file matches, only the first is
edited.
Comment Text
Enter comment to insert at the beginning of the found line. When replacing an
existing line, use this to leave the existing line in place but inactive. Set Insert
Action to insert before the existing line so that subsequent installations find and
edit the active command, not the commented line.
Insert Action
Select the action to be taken when a line is found.
Match Criteria
Select how the line is matched with the text in Search for Text.
on page 40
WiseScript Actions
93

Advertisement

Table of Contents
loading

Table of Contents