'DeclarationPublic NotInheritable Class Variables
'UsageDim instance As Variables
public sealed class Variables
'DeclarationPublic NotInheritable Class Variables
'UsageDim 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 | Contains variables which are used by various properties of the Self-Extractor binary to dynamically provide paths and filenames. |
| 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. |
.NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.
.NET Standard: netstandard2.0, netstandard2.1
.NET Framework: net20, net35, net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.