Hi Nils,
> Been a while since I looked at this but it still seems to work for me in
> 3.14.0.
> Corresponding <Permission> elements are generated in files.wxs:
Can you please tell me the commands you used to run cpack? I did the following,
which didn’t give the Permission elements.
cd cmake-wix-testsuite-master\properties
cmake -DCPACK_GENERATOR=WIX .
cpack -DCPACK_GENERATOR=WIX .
Full output is below.
Thanks,
Steve
Steven.Cook@AUPERWL01583 C:\dev\GI
> cd cmake-wix-testsuite-master\properties
Steven.Cook@AUPERWL01583 C:\dev\GI\cmake-wix-testsuite-master\properties
> cmake -DCPACK_GENERATOR=WIX .
-- Building for: Visual Studio 15 2017
-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.15063.
-- The C compiler identification is MSVC 19.16.27030.1
-- The CXX compiler identification is MSVC 19.16.27030.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual
Studio/2017/Professional/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual
Studio/2017/Professional/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe --
works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual
Studio/2017/Professional/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual
Studio/2017/Professional/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe --
works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.14)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done
-- Generating done
-- Build files have been written to:
C:/dev/GI/cmake-wix-testsuite-master/properties
Steven.Cook@AUPERWL01583 C:\dev\GI\cmake-wix-testsuite-master\properties
> cpack -DCPACK_GENERATOR=WIX .
CPack: Create package using WIX
CPack: Install projects
CPack: - Install project: Project
CPack: Create package
CPack Warning: CPACK_WIX_UPGRADE_GUID implicitly set to
26D57C14-30E5-4837-95E3-5C5E9317CE0F . Please refer to the documentation on how
and why you might want to set this explicitly.
CPack: - package:
C:/dev/GI/cmake-wix-testsuite-master/properties/Project-0.1.1-win32.msi
generated.
files.wxs contains the following, but no Permission elements:
<DirectoryRef Id="CM_DP_empty_directory_with_property">
<Component Id="CM_C_EMPTY_CM_DP_empty_directory_with_property"
Guid="C8726921-C4BC-4796-9369-7745BD2FAE12">
<CreateFolder/>
</Component>
</DirectoryRef>
> cmake --version
cmake version 3.14.0
CMake suite maintained and supported by Kitware (kitware.com/cmake).
> candle --version
Windows Installer XML Toolset Compiler version 3.11.1.2318
Copyright (c) .NET Foundation and contributors. All rights reserved.
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake