Read Ini Value; Read/Update Text File - Symantec WISESCRIPT PACKAGE EDITOR 8.0 - REFERENCE FOR WISE PACKAGE STUDIO V1.0 Reference

Table of Contents

Advertisement

Read INI Value

Read/Update Text File

WiseScript Package Editor Reference
Description
Enter explanatory text to be displayed above the radio buttons. Press Shift+Enter
for a carriage return.
Component List
Enter the choices, one on each line, pressing Enter after each.
This action reads an entry from an existing .INI file into a variable. Example: Obtain a
path to a file.
To complete the dialog box
INI Pathname
Specify a complete path to the .INI file (example: %WIN%\Sample.ini).
INI Section
INI files have sections that are delineated by bracketed section names (example:
[DIRECTORIES]). Enter the name of the section that contains the entry to be read,
without brackets (example: DIRECTORIES).
INI Item
Enter the name of the entry to read from the .INI file.
Default Value
Enter the value to store in the variable below if the specified entry is not found.
Variable Name
Enter a variable to store the value of the INI item.
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.
This action begins a loop that reads and, optionally, updates text in a text file. Each loop
puts the next line of text into a variable. You can put actions in the loop that change the
contents of the variable (example: Parse String). Optionally, the changed variable can
be written back to the file. The loop repeats for each line of the file. This action requires
an End Statement.
Note
When a WiseScript is called by a Windows Installer installation, the Windows Installer
installation does not recognize changes that the WiseScript makes to the destination
computer and will not uninstall them. Therefore, you must provide a way to uninstall or
repair such changes. See Uninstalling Changes Made by a WiseScript in the Windows
Installer Editor Help.
To complete the dialog box
Pathname
Specify the full path to the text file to be edited on the destination computer
(example: %WIN%\Sample.txt).
WiseScript Actions
186

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Wisescript package editor 8.0

Table of Contents