Results 1 to 2 of 2

Thread: silently install the external installer(vcredist_x64) with CPACK

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2013
    Location
    India
    Posts
    44
    Thanks
    3
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default silently install the external installer(vcredist_x64) with CPACK

    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.

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,246
    Thanks
    304
    Thanked 866 Times in 853 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: silently install the external installer(vcredist_x64) with CPACK

    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.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Qt Installer Framework - Forcibly install new component?
    By zaphod.b in forum Installation and Deployment
    Replies: 1
    Last Post: 3rd September 2019, 12:52
  2. Replies: 0
    Last Post: 7th July 2015, 19:59
  3. Replies: 0
    Last Post: 4th June 2010, 11:26
  4. Replies: 1
    Last Post: 30th April 2010, 14:25
  5. How to run a console program "silently"?
    By fullmetalcoder in forum Qt Programming
    Replies: 9
    Last Post: 23rd July 2006, 11:03

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.