I successfully installed the installation package for my C ++ application using the WiX generator provided by CMake.
Ideally, I would like to install my dependencies (DirectX, MSVC ++, etc.) using a similar WiX auto-generator.
Does anyone know how to do this?
I tried using
INSTALL(CODE "exec_process(COMMAND <path to vcredist_x64.exe>)" COMPONENT vcppredist)
SET(CPACK_COMPONENTS_ALL application vcppredist)
This does not work
If not WiX, is there a way to do this using the NSIS generator?
source
share