WiseScript Package Editor Reference
109
WiseScript Actions
z
Description
Enter explanatory text to be displayed above the radio buttons. Press Shift+Enter
for a carriage return.
z
Component List
Enter the choices, one on each line, pressing Enter after each.
Read INI Value
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
z
INI Pathname
Specify a complete path to the .INI file (example: %WIN%\Sample.ini).
z
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).
z
INI Item
Enter the name of the entry to read from the .INI file.
z
Default Value
Enter the value to store in the variable below if the specified entry is not found.
z
Variable Name
Enter a variable to store the value of the INI item.
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.
Read/Update Text File
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
z
Pathname
Specify the full path to the text file to be edited on the destination computer
(example: %WIN%\Sample.txt).