PDA

View Full Version : silently install the external installer(vcredist_x64) with CPACK



prabhatjha
6th July 2020, 07:08
I am using VS 2015. I will have to create a installer that can install (vc_redist.x64.exe) through my installer. I am using CPACK & NSIS for installer creation.

i did copy redistributable package ((vc_redist.x64.exe)) on the client machine during installation but i do not know how to install it using our installer.

vc_redist.x64.exe copy on client machine at given folder. C:/Program Files/Installer/vc_redist.x64.exe.

in my cMakeList.txt file i am using below command to install the package but its not getting install.

INSTALL(FILES "C:/Program Files/Installer/vc_redist.x64.exe" DESTINATION ./)

Please assist me how i can solve this.

d_stranz
6th July 2020, 17:25
This is off-topic - it has nothing to do with Qt. You should be asking this on Kitware's CMake forum, not here.

All the INSTALL() command does is copy files. It doesn't execute them. If you want to execute a file after you have copied it, then you probably need some kind of "execute" command.