C# Класс WixSharp.Dir

Defines directory to be installed on target system.

Use this class to define file/directory structure of the deployment solution.

You can use predefined Wix# environment constants for well-known installation locations. They are directly mapped to the corresponding WiX constants:

Wix# - WiX

%WindowsFolder% - [WindowsFolder]

%ProgramFiles% - [ProgramFilesFolder]

%ProgramMenu% - [ProgramMenuFolder]

%AppDataFolder% - [AppDataFolder]

%CommonFilesFolder% - [CommonFilesFolder]

%LocalAppDataFolder% - [LocalAppDataFolder]

%ProgramFiles64Folder% - [ProgramFiles64Folder]

%System64Folder% - [System64Folder]

%SystemFolder% - [SystemFolder]

%TempFolder% - [TempFolder]

%Desktop% - [DesktopFolder]

Наследование: WixEntity
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
DirFileCollections WixSharp.DirFiles[]
Dirs WixSharp.Dir[]
Feature Feature
FileCollections Files[]
Files File[]
MergeModules WixSharp.Merge[]
ODBCDataSources ODBCDataSource[]
Permissions DirPermission[]
Shortcuts WixSharp.ExeFileShortcut[]

Открытые методы

Метод Описание
AddItems ( WixEntity items ) : void
Dir ( ) : System

Initializes a new instance of the Dir class.

Dir ( Feature feature, string targetPath ) : System

Initializes a new instance of the Dir class with properties/fields initialized with specified parameters

Dir ( Id id, Feature feature, string targetPath ) : System

Initializes a new instance of the Dir class with properties/fields initialized with specified parameters.

Dir ( Id id, string targetPath ) : System

Initializes a new instance of the Dir class with properties/fields initialized with specified parameters

Dir ( string targetPath ) : System

Initializes a new instance of the Dir class with properties/fields initialized with specified parameters

ToString ( ) : string

Defines the launch Condition, which is to be checked during the installation to determine if the directory should be installed.

Returns the WiX Directory as a string.

Приватные методы

Метод Описание
Dir ( Feature feature, string targetPath, Project project ) : System
GetRootAutoParent ( ) : Dir
HastemsToInstall ( ) : bool
IsAutoParent ( ) : bool
ProcessTargetPath ( string targetPath ) : Dir
ToFlatPathTree ( string path ) : string[]

Описание методов

AddItems() публичный Метод

public AddItems ( WixEntity items ) : void
items WixEntity
Результат void

Dir() публичный Метод

Initializes a new instance of the Dir class.
public Dir ( ) : System
Результат System

Dir() публичный Метод

Initializes a new instance of the Dir class with properties/fields initialized with specified parameters
public Dir ( Feature feature, string targetPath ) : System
feature Feature the directory should be included in.
targetPath string The name of the directory. Note if the directory is a root installation directory targetPath must /// be specified as a full path. However if the directory is a nested installation directory the name must be a directory name only.
Результат System

Dir() публичный Метод

Initializes a new instance of the Dir class with properties/fields initialized with specified parameters.
public Dir ( Id id, Feature feature, string targetPath ) : System
id Id The explicit to be associated with instance.
feature Feature the directory should be included in.
targetPath string The name of the directory. Note if the directory is a root installation directory targetPath must /// be specified as a full path. However if the directory is a nested installation directory the name must be a directory name only.
Результат System

Dir() публичный Метод

Initializes a new instance of the Dir class with properties/fields initialized with specified parameters
public Dir ( Id id, string targetPath ) : System
id Id The explicit to be associated with instance.
targetPath string The name of the directory. Note if the directory is a root installation directory targetPath must /// be specified as a full path. However if the directory is a nested installation directory the name must be a directory name only.
Результат System

Dir() публичный Метод

Initializes a new instance of the Dir class with properties/fields initialized with specified parameters
public Dir ( string targetPath ) : System
targetPath string The name of the directory. Note if the directory is a root installation directory targetPath must /// be specified as a full path. However if the directory is a nested installation directory the name must be a directory name only.
Результат System

ToString() публичный Метод

Defines the launch Condition, which is to be checked during the installation to determine if the directory should be installed. Returns the WiX Directory as a string.
public ToString ( ) : string
Результат string

Описание свойств

DirFileCollections публичное свойство

Collection of the DirFiles objects. DirFiles type is used to specify files contained by a specific directory with wildcard character pattern. Files in subdirectories are not included.

DirFiles type is related to but not identical to Files, which defines files of not only a single level directory but all subdirectories as well.

public DirFiles[],WixSharp DirFileCollections
Результат WixSharp.DirFiles[]

Dirs публичное свойство

Collection of the contained nested Dirs (subdirectories).
public Dir[],WixSharp Dirs
Результат WixSharp.Dir[]

Feature публичное свойство

the directory belongs to.
public Feature,WixSharp Feature
Результат Feature

FileCollections публичное свойство

Collection of the Files objects. Files type is used to specify files contained by a specific directory and all subdirectories with wildcard character pattern.

Files type is related to but not identical to DirFiles, which defines only files of a single level directory.

public Files[] FileCollections
Результат Files[]

Files публичное свойство

Collection of the contained Files.
public File[] Files
Результат File[]

MergeModules публичное свойство

Collection of the contained Merge modules.
public Merge[],WixSharp MergeModules
Результат WixSharp.Merge[]

ODBCDataSources публичное свойство

Collection of WiX/MSI ODBCDataSource objects to be created during the installed.
public ODBCDataSource[] ODBCDataSources
Результат ODBCDataSource[]

Permissions публичное свойство

Collection of directory permissions to be applied to this directory.
public DirPermission[] Permissions
Результат DirPermission[]

Shortcuts публичное свойство

Collection of the contained ExeFileShortcuts.
public ExeFileShortcut[],WixSharp Shortcuts
Результат WixSharp.ExeFileShortcut[]