summaryrefslogtreecommitdiffstats
path: root/Source/CPack/WiX/cmWIXFilesSourceWriter.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-08-11 13:54:19 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-08-11 13:54:19 (GMT)
commit401d82b3db7253d29e51ecc7c7cdbaee70a38166 (patch)
tree42eb35223cc7d810523b8c5882c78b846e6c194f /Source/CPack/WiX/cmWIXFilesSourceWriter.cxx
parent8b61070748ce7de7c7ad3a21b9fa6b3bc5281e4f (diff)
parent975dc87174294d59f60ffa0e52608f8fbf429737 (diff)
downloadCMake-401d82b3db7253d29e51ecc7c7cdbaee70a38166.zip
CMake-401d82b3db7253d29e51ecc7c7cdbaee70a38166.tar.gz
CMake-401d82b3db7253d29e51ecc7c7cdbaee70a38166.tar.bz2
Merge topic 'wix-acl'
975dc871 Help: Add notes for topic 'wix-acl' 12418f5c CPackWIX: Implement CPACK_WIX_ACL (Access Control List) property
Diffstat (limited to 'Source/CPack/WiX/cmWIXFilesSourceWriter.cxx')
-rw-r--r--Source/CPack/WiX/cmWIXFilesSourceWriter.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/CPack/WiX/cmWIXFilesSourceWriter.cxx b/Source/CPack/WiX/cmWIXFilesSourceWriter.cxx
index 451188e..0ad5d0c 100644
--- a/Source/CPack/WiX/cmWIXFilesSourceWriter.cxx
+++ b/Source/CPack/WiX/cmWIXFilesSourceWriter.cxx
@@ -11,6 +11,7 @@
============================================================================*/
#include "cmWIXFilesSourceWriter.h"
+#include "cmWIXAccessControlList.h"
#include <cmInstalledFile.h>
@@ -175,6 +176,12 @@ std::string cmWIXFilesSourceWriter::EmitComponentFile(
AddAttribute("ReadOnly", "yes");
}
+ if(installedFile)
+ {
+ cmWIXAccessControlList acl(Logger, *installedFile, *this);
+ acl.Apply();
+ }
+
patch.ApplyFragment(fileId, *this);
EndElement("File");