Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Windeployqt won't run, “Access is denied.”

Windeployqt won't run, “Access is denied.”

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
c++windeployqtmsvcqt 5.13.1
2 Posts 2 Posters 834 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jkofskie
    wrote on last edited by jkofskie
    #1

    I'm trying to deploy a Qt application, but every time I try to run windeployqt.exe I get the "This app can't run on your PC, to find a version for your PC contact the publisher" windows popup and it says "Access is denied." in the console. Here's my deployment script, running in the VS 2017 Developer CMD. I don't get errors for anything else so I'm pretty sure qmake and nmake are working correctly.

    call "C:\Program Files (x86)\Microsoft Visual Studio\...\vcvars64.bat"
    call C:\Qt\5.13.1\msvc2017_64\bin\qtenv2.bat
    C:\Qt\5.13.1\msvc2017_64\bin\qmake.exe CONFIG+=release [path to .pro]
    "C:\...\Microsoft Visual Studio\...\nmake.exe" [path to Makefile.Release]
    copy [path to my qt app executable] [output folder]
    cd [output folder]
    windeployqt.exe
    

    Windeployqt is in my PATH but it still won't run. This is my first time deploying a Qt app and I can't find any documentation that specifies that I need to do anything else before trying to run windeployqt. I have also checked relevant folder permissions and tried different output locations as well as a different drive. If any additional information is required please let me know.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      What version of Windows are you using ?
      Can you run your application from the same command prompt ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved