diff options
author | Nils Gladitz <nilsgladitz@gmail.com> | 2014-03-01 23:51:42 (GMT) |
---|---|---|
committer | Nils Gladitz <nilsgladitz@gmail.com> | 2014-03-01 23:51:42 (GMT) |
commit | 642fa25da095b346d559ad39624eda79b0bd2ff8 (patch) | |
tree | 9d0dcaa3090d92ec1478d6ca03f7967628cd262e /Source/CPack/WiX/cmWIXFilesSourceWriter.cxx | |
parent | 378eb5b712bb8f131e62aa343e3ec27d446dc098 (diff) | |
download | CMake-642fa25da095b346d559ad39624eda79b0bd2ff8.zip CMake-642fa25da095b346d559ad39624eda79b0bd2ff8.tar.gz CMake-642fa25da095b346d559ad39624eda79b0bd2ff8.tar.bz2 |
CPackWIX: support installation of empty directories
Diffstat (limited to 'Source/CPack/WiX/cmWIXFilesSourceWriter.cxx')
-rw-r--r-- | Source/CPack/WiX/cmWIXFilesSourceWriter.cxx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Source/CPack/WiX/cmWIXFilesSourceWriter.cxx b/Source/CPack/WiX/cmWIXFilesSourceWriter.cxx index 0835f3a..3fd959e 100644 --- a/Source/CPack/WiX/cmWIXFilesSourceWriter.cxx +++ b/Source/CPack/WiX/cmWIXFilesSourceWriter.cxx @@ -109,6 +109,28 @@ void cmWIXFilesSourceWriter::EmitUninstallShortcut( EndElement("Shortcut"); } +std::string cmWIXFilesSourceWriter::EmitComponentCreateFolder( + std::string const& directoryId, std::string const& guid) +{ + std::string componentId = + std::string("CM_C_EMPTY_") + directoryId; + + BeginElement("DirectoryRef"); + AddAttribute("Id", directoryId); + + BeginElement("Component"); + AddAttribute("Id", componentId); + AddAttribute("Guid", guid); + + BeginElement("CreateFolder"); + + EndElement("CreateFolder"); + EndElement("Component"); + EndElement("DirectoryRef"); + + return componentId; +} + std::string cmWIXFilesSourceWriter::EmitComponentFile( std::string const& directoryId, std::string const& id, |