| 107 | } |
| 108 | |
| 109 | std::string cmWIXFilesSourceWriter::EmitComponentCreateFolder( |
| 110 | std::string const& directoryId, std::string const& guid, |
| 111 | cmInstalledFile const* installedFile) |
| 112 | { |
| 113 | std::string componentId = std::string("CM_C_EMPTY_") + directoryId; |
| 114 | |
| 115 | BeginElement("DirectoryRef"); |
| 116 | AddAttribute("Id", directoryId); |
| 117 | |
| 118 | BeginElement("Component"); |
| 119 | AddAttribute("Id", componentId); |
| 120 | AddAttribute("Guid", guid); |
| 121 | |
| 122 | BeginElement("CreateFolder"); |
| 123 | |
| 124 | if (installedFile) { |
| 125 | cmWIXAccessControlList acl(Logger, *installedFile, *this); |
| 126 | acl.Apply(); |
| 127 | } |
| 128 | |
| 129 | EndElement("CreateFolder"); |
| 130 | EndElement("Component"); |
| 131 | EndElement("DirectoryRef"); |
| 132 | |
| 133 | return componentId; |
| 134 | } |
| 135 | |
| 136 | std::string cmWIXFilesSourceWriter::EmitComponentFile( |
| 137 | std::string const& directoryId, std::string const& id, |
no test coverage detected