CMP0172.rst 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. CMP0172
  2. -------
  3. .. versionadded:: 3.31
  4. The :module:`CPack` module enables per-machine installation by default
  5. in the :cpack_gen:`CPack WIX Generator`.
  6. The :cpack_gen:`CPack WIX Generator`'s :variable:`CPACK_WIX_INSTALL_SCOPE`
  7. option controls the scope of the generated Windows Installer package.
  8. When :variable:`CPACK_WIX_VERSION` is set to 4 or higher, the default scope
  9. is ``perMachine``. However, when using WIX 3 the default scope is ``NONE``,
  10. and CPack does not set any ``InstallScope`` in the package specification.
  11. The resulting installer requires administrative privileges and installs
  12. into the system-wide ``ProgramFiles`` directory, but the start menu entry
  13. and uninstaller registration are created only for the current user.
  14. The :module:`CPack` module in CMake 3.30 and older does not specify any
  15. :variable:`CPACK_WIX_INSTALL_SCOPE` value by default, so CPack uses no
  16. installation scope by default with WIX 3. CMake 3.31 and newer instead
  17. prefer to set :variable:`CPACK_WIX_INSTALL_SCOPE` to ``perMachine`` by
  18. default to make the behavior consistent across all WIX versions. This
  19. policy provides compatibility for projects that have not been updated
  20. to expect ``perMachine`` behavior.
  21. The ``OLD`` behavior for this policy is to not set
  22. :variable:`CPACK_WIX_INSTALL_SCOPE` by default. The ``NEW`` behavior for
  23. this policy is to set :variable:`CPACK_WIX_INSTALL_SCOPE` to ``perMachine``
  24. by default.
  25. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.31
  26. .. |WARNS_OR_DOES_NOT_WARN| replace:: does *not* warn by default
  27. .. include:: include/STANDARD_ADVICE.rst
  28. See documentation of the
  29. :variable:`CMAKE_POLICY_WARNING_CMP0172 <CMAKE_POLICY_WARNING_CMP<NNNN>>`
  30. variable to control the warning.
  31. .. include:: include/DEPRECATED.rst