Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Deployment tools



  • I have found the windeployqt tool and would like to use it to deploy and executable I'm working on, I've done the following:

    \Qt\Qt5.9.2\5.9.2\msvc2015\bin\windeployqt --dir .\install .\build-training-server-application-Desktop_Qt_5_9_2_MSVC2015_32bit-Release\release\trngServer.exe
    

    Whilst there is a lot of activity and at the end of it the install folder contains a lot of folders and dll's there is no executable in this folder, I was expecting to see either a setup or install file.

    Have I missed something?

    Looking at the output:

    Warning: Cannot find Visual Studio installation directory, VCINSTALLDIR is not set.
    

    What folder should this point to?


  • Lifetime Qt Champion

    @SPlatten said in Deployment tools:

    I was expecting to see either a setup or install file.

    Windeployqt does not create any installer. It simply creates a folder containing your app and everything needed to run it.
    This is also mentioned in the documentation:
    "The Windows deployment tool windeployqt is designed to automate the process of creating a deployable folder containing the Qt-related dependencies (libraries, QML imports, plugins, and translations) required to run the application from that folder."
    https://doc.qt.io/qt-5/windows-deployment.html



  • @jsulm , thank you, I've progressed a little, having set-up the VCINSTALLDIR environment variable the folder now contains the vcredist_x86.exe, it doesn't appear to have the actual application exe tho.


Log in to reply