summaryrefslogtreecommitdiffstats
path: root/Source/CPack/WiX/cmWIXFilesSourceWriter.cxx
diff options
context:
space:
mode:
authorKeith Holman <keith.holman@windriver.com>2017-04-21 14:42:35 (GMT)
committerBrad King <brad.king@kitware.com>2017-04-24 14:06:45 (GMT)
commit58cf9d417e8b3d4d76597b9950a5af4860d3512c (patch)
tree08aeb2a3bdf95f4d1af0c27efcbee4f0f9d49637 /Source/CPack/WiX/cmWIXFilesSourceWriter.cxx
parent03628bb699956d92676c610e9a24d159aa591900 (diff)
downloadCMake-58cf9d417e8b3d4d76597b9950a5af4860d3512c.zip
CMake-58cf9d417e8b3d4d76597b9950a5af4860d3512c.tar.gz
CMake-58cf9d417e8b3d4d76597b9950a5af4860d3512c.tar.bz2
wix: adds ability to modify attributes with patch
Adds the ability to attributes to generated XML files for features with the WiX patch system. To modify attributes additional attributes may be added within the 'CPackWixFragment' xml tag. Fixes: #16813 Signed-off-by: Keith Holman <keith.holman@windriver.com>
Diffstat (limited to 'Source/CPack/WiX/cmWIXFilesSourceWriter.cxx')
-rw-r--r--Source/CPack/WiX/cmWIXFilesSourceWriter.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CPack/WiX/cmWIXFilesSourceWriter.cxx b/Source/CPack/WiX/cmWIXFilesSourceWriter.cxx
index 7aa1212..b4cd1a3 100644
--- a/Source/CPack/WiX/cmWIXFilesSourceWriter.cxx
+++ b/Source/CPack/WiX/cmWIXFilesSourceWriter.cxx
@@ -136,6 +136,7 @@ std::string cmWIXFilesSourceWriter::EmitComponentFile(
}
}
+ patch.ApplyFragment(componentId, *this);
BeginElement("File");
AddAttribute("Id", fileId);
AddAttribute("Source", filePath);
@@ -147,16 +148,15 @@ std::string cmWIXFilesSourceWriter::EmitComponentFile(
if (!(fileMode & S_IWRITE)) {
AddAttribute("ReadOnly", "yes");
}
+ patch.ApplyFragment(fileId, *this);
if (installedFile) {
cmWIXAccessControlList acl(Logger, *installedFile, *this);
acl.Apply();
}
- patch.ApplyFragment(fileId, *this);
EndElement("File");
- patch.ApplyFragment(componentId, *this);
EndElement("Component");
EndElement("DirectoryRef");