WiseScript Package Editor Reference
69
WiseScript Actions
Delete File from SVS Layer
This SVS script action deletes a file from a virtual software layer. This adds the file to the
delete entries list so that it doesn’t appear when the layer is activated. If you reset the
layer, the file is restored because the deletion entry is in the writeable sublayer of the
delete entries.
See Delete Entries Page in the Virtual Package Editor Help.
Note
Use this action on a deactivated SVS layer only.
To complete the dialog box
z
Layer GUID
Enter the layer’s GUID (globally unique identifier) or a variable that represents the
layer’s GUID. If you enter the layer’s GUID, do not include the { } brackets.
For information on creating a variable for a layer’s GUID, see
Create SVS Layer
on
page 66 and
Find SVS Layer GUID
on page 85.
z
File path
Enter the path and file name of the file to delete. You can use SVS variables or
WiseScript variables that resolve to a valid SVS path.
See
SVS Variables
on page 162.
z
Return variable
(Optional.) Enter a name for the return variable. When this script action runs
successfully, either 0 or 1 is placed in this variable.
See also:
About SVS Script Actions
on page 40
Delete File(s)
This action removes files from the destination computer.
You do not need to delete temp files if you use the Get Temporary Filename action to
create them because they are deleted automatically.
To complete the dialog box
z
Pathname
Specify the directories or files to delete. For example, %TEMP%\Application.dll or
%MAINDIR%\*.htm. You cannot perform wildcard deletions in the Windows,
System, or root directories.
Click Browse to display and select files in the current WiseScript that are installed
into the %MAINDIR%, %SYS32%, %SYS%, OR %FONTS% directories. When you
select a path in the Browse for File dialog box, you must select a file.
z
Include Sub-Directories
If you entered the path to a directory or used a wildcard, mark this to delete
matching files in all subdirectories as well.