'Declaration Public NotInheritable Class Variables
'Usage Dim instance As Variables
public sealed class Variables
'Declaration Public NotInheritable Class Variables
'Usage Dim instance As Variables
public sealed class Variables
A variable is a string that has the format <variable>. The variable is a string representing one of the available variables (see below). The strings representing the macros are replaced by a path only when the actual self-extracting zip file is executed. Thus, the value of a variable usually depends on the particular settings of the operating system the self-extracting zip file is being run on.
All variables except for the <RandomFolder> macro include the drive as part of the path. The <SystemDrive> variable only contains the drive letter followed by the colon (:) character. None of the variables contain a trailing System.IO.Path.DirectorySeparatorChar.
System.Object
Xceed.Zip.Sfx.Variables
Name | Description | |
---|---|---|
![]() | Variables Constructor |
Name | Description | |
---|---|---|
![]() | DestinationFile | The path and filename of the file to overwrite. Used only by the DialogMessages.Overwrite dialog. |
![]() | DestinationFolder | The unzipping folder or the user-selected folder where files were unzipped to. |
![]() | DiskNumber | The number of the requested disk. Used only by the DialogMessages.InsertDisk dialog. |
![]() | ErrorDescription | An English description of an error code that caused the failure. Used only by the DialogMessages.Error dialog for both the extraction error and the ExecuteAfter error. |
![]() | ErrorNumber | The error code that caused the failure. Used only by the DialogMessages.Error dialog. |
![]() | ProgramFilesFolder | The location of the Program Files folder. |
![]() | RandomFolder | Random folder name that doesn't already exist. (the format of the random name is: _SFXxxx, where xxx is a random number) |
![]() | SfxFolder | The folder where the self-extracting zip file is being run from. |
![]() | SystemDrive | The main system hard disk. |
![]() | SystemFolder | The location of the Windows System folder. |
![]() | TempFolder | The location of the system's temporary folder. |
![]() | WindowsFolder | The location of the Windows folder. |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2