WiseScript Package Editor Reference
107
WiseScript Actions
Start Block
The Post to HTTP Server action begins a conditional block. The statements
between this action and the next End statement are executed only in the event
of an error.
Prompt for Filename
This action prompts the end user to select a file using a standard Open or Save dialog
box. The complete path of the file or directory is returned in a variable. (Example: Use
the returned directory to set the installation directory for a subset of files.) No file is
actually opened or saved by this action. This action is included to provide backward
compatibility for older WiseScripts. In new scripts, use custom dialog boxes or dialog
box controls to perform the same function. This action requires an End Statement,
because it begins a block of statements, similar to an If Statement.
To complete the dialog box
z
Dialog Type
Select Open File or Save As.
z
Dialog Title
Enter the title for the dialog box.
z
Dest. Variable
Select or enter a variable to store the path of the file or directory the end user
selects.
z
Default Extension
Enter the extension to append to the file name if the end user does not enter one.
z
Filter List
Enter the file types to appear in the Files of Type drop-down list in the Open or
Save dialog box. Use Shift+Enter to enter a carriage return in this field. Example: to
show text, .JPGs and bitmaps, enter:
Text Files (*.txt);*.txt;
Pictures (*.jpg);*.jpg;
Bitmaps (*.bmp);*.bmp
z
Allow selection of multiple files
Mark this to let end users select multiple files with Ctrl or Shift.
z
Prompt if file does not exist
Mark this to display a confirmation dialog box if the specified file does not exist.
z
File must exist
Mark this to halt the installation until an existing file has been specified.
z
Pathname must exist
Mark this to halt the installation until an existing path has been specified.
z
Skip write permissions test
If you selected Save As for Dialog Type, and you clear this check box, the
installation tries to create the file that the end user specified in the Save As dialog
box to verify write permissions. If you mark this check box, the installation does not
try to create the file.
z
Do not validate the pathname
Mark this to accept any path without any validation.