Manages the creation of WiX-based Windows installer projects from NDEVR module definitions.
More...
|
|
void | createInstallerProject () |
| | Creates the complete installer project from the module list.
|
|
|
File | in_dir |
| | The input directory containing module resources.
|
|
bool | is_64_bit = true |
| | Whether to build a 64-bit installer.
|
|
LogPtr | log |
| | Log pipe for progress and error reporting.
|
|
File | module_list |
| | The file listing modules to include in the installer.
|
|
File | msi_folder |
| | The folder for MSI output files.
|
|
File | out_dir |
| | The output directory for the installer project.
|
|
| void | addDirectory (const WixDirectory &directory, WixInstallerFile &wix) const |
| | Writes directory structure entries to the WiX file.
|
| void | addDirectoryFiles (const String &directory, const Buffer< File > &files, WixInstallerFile &wix) const |
| | Adds directory file entries to the WiX file.
|
| void | addFile (const File &file, WixInstallerFile &wix) const |
| | Adds a file entry to the WiX file.
|
| void | addFragment (WixFragment &fragment, WixInstallerFile &wix) |
| | Writes a complete fragment to the WiX file.
|
|
void | buildBatchFiles () |
| | Builds the batch files for compiling the installer.
|
| void | calculateFeature (WixInstallerFeature &feature, WixFragment &fragment, Set< String > &global_features) const |
| | Calculates the full set of files and components for a feature.
|
| void | createLanguage (const String &language, WixInstallerFile &wix) |
| | Creates the language-specific WiX source files.
|
|
void | createModuleWXS () |
| | Creates the main module WXS source files.
|
| String | fileID (const File &file) const |
| | Generates a unique WiX file ID from a file path.
|
| String | fileIDName (const File &file) const |
| | Generates a WiX-safe file ID name from a file path.
|
| Buffer< String > | fileIDs (const Buffer< File > &files) const |
| | Generates file IDs for a buffer of files.
|
| WixInstallerFeature | prepareModule (const Module &module, WixDirectory &directory) |
| | Prepares a module's files and features for the installer.
|
|
void | writeHeaderFile () |
| | Writes the WiX header include file.
|
|
void | writePlatformSetup () |
| | Writes platform-specific setup configuration.
|
| void | writeProjectFile (const String &language, WixInstallerFile &file) |
| | Writes the WiX project file for a specific language.
|
Manages the creation of WiX-based Windows installer projects from NDEVR module definitions.
Definition at line 104 of file InstallerManager.h.
◆ addDirectory()
Writes directory structure entries to the WiX file.
- Parameters
-
| [in] | directory | The directory tree to write. |
| [in] | wix | The WiX file being written. |
◆ addDirectoryFiles()
Adds directory file entries to the WiX file.
- Parameters
-
| [in] | directory | The directory identifier. |
| [in] | files | The files in the directory. |
| [in] | wix | The WiX file being written. |
◆ AddFeature()
Writes a complete feature element including all its components.
- Parameters
-
| [in] | feature | The feature to write. |
| [in] | wix | The WiX file being written. |
◆ AddFeatureHeading()
Writes the opening XML for a feature in the WiX file.
- Parameters
-
| [in] | feature | The feature to write. |
| [in] | wix | The WiX file being written. |
◆ addFile()
Adds a file entry to the WiX file.
- Parameters
-
| [in] | file | The file to add. |
| [in] | wix | The WiX file being written. |
◆ AddFirewallException()
Adds a firewall exception entry to the WiX file.
- Parameters
-
| [in] | exception | The firewall exception to add. |
| [in] | file | The WiX file being written. |
◆ addFragment()
Writes a complete fragment to the WiX file.
- Parameters
-
| [in] | fragment | The fragment to write. |
| [in] | wix | The WiX file being written. |
◆ AddRegistryAction()
Adds a registry action entry to the WiX file.
- Parameters
-
| [in] | exception | The registry action to add. |
| [in] | file | The WiX file being written. |
◆ AddString()
Adds a translated string entry to the WiX file.
- Parameters
-
| [in] | string | The translated string to add. |
| [in] | wix | The WiX file being written. |
| [in] | language | The target language identifier. |
◆ calculateFeature()
Calculates the full set of files and components for a feature.
- Parameters
-
| [in] | feature | The feature to calculate. |
| [in] | fragment | The fragment containing all file data. |
| [in] | global_features | Set of globally shared feature IDs. |
◆ CodePage()
| uint04 WixInstallerManager::CodePage |
( |
String | translation_id | ) |
|
|
staticprotected |
Gets the code page number for a given translation ID.
- Parameters
-
| [in] | translation_id | The translation identifier. |
- Returns
- The code page number.
◆ createLanguage()
Creates the language-specific WiX source files.
- Parameters
-
| [in] | language | The language identifier. |
| [in] | wix | The WiX file being written. |
◆ CreateWixGUID()
| String WixInstallerManager::CreateWixGUID |
( |
const String & | input | ) |
|
|
staticprotected |
Creates a deterministic GUID from a string input.
- Parameters
-
| [in] | input | The input string to generate the GUID from. |
- Returns
- The generated GUID string.
◆ EndFeature()
Closes a feature element in the WiX file.
- Parameters
-
| [in] | wix | The WiX file being written. |
◆ fileID()
| String WixInstallerManager::fileID |
( |
const File & | file | ) |
const |
|
protected |
Generates a unique WiX file ID from a file path.
- Parameters
-
| [in] | file | The file to generate an ID for. |
- Returns
- The generated file ID string.
◆ fileIDName()
| String WixInstallerManager::fileIDName |
( |
const File & | file | ) |
const |
|
protected |
Generates a WiX-safe file ID name from a file path.
- Parameters
-
| [in] | file | The file to generate an ID name for. |
- Returns
- The generated ID name string.
◆ fileIDs()
Generates file IDs for a buffer of files.
- Parameters
-
| [in] | files | The files to generate IDs for. |
- Returns
- A buffer of file ID strings.
◆ FolderID()
Generates a WiX folder ID from a resource path.
- Parameters
-
| [in] | resource | The resource path. |
- Returns
- The folder ID string.
◆ OutputName()
| String WixInstallerManager::OutputName |
( |
const String & | language | ) |
|
|
staticprotected |
Gets the output MSI file name for a language.
- Parameters
-
| [in] | language | The language identifier. |
- Returns
- The output file name string.
◆ prepareModule()
Prepares a module's files and features for the installer.
- Parameters
-
| [in] | module | The module to prepare. |
| [in] | directory | The directory tree to populate. |
- Returns
- The installer feature for the module.
◆ WixTranslationID()
| String WixInstallerManager::WixTranslationID |
( |
String | translation_id | ) |
|
|
staticprotected |
Converts a translation ID to a WiX-compatible translation identifier.
- Parameters
-
| [in] | translation_id | The translation identifier to convert. |
- Returns
- The WiX translation ID string.
◆ WriteImage()
| void WixInstallerManager::WriteImage |
( |
const StringView & | image, |
|
|
File | folder_location ) |
|
staticprotected |
Writes an image resource to a folder.
- Parameters
-
| [in] | image | The image resource identifier. |
| [in] | folder_location | The destination folder. |
◆ writeProjectFile()
Writes the WiX project file for a specific language.
- Parameters
-
| [in] | language | The language identifier. |
| [in] | file | The WiX file being written. |
The documentation for this class was generated from the following file: