Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Failed to start program. Path or permissions wrong?

    Installation and Deployment
    3
    4
    1305
    Loading More Posts
    • 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.
    • N
      Nayar last edited by

      I was working on Linux and then cloned my software on windows. You may clone it too: https://github.com/Nayar/Qt-Installer

      1. When compiling, it would give the error below. Can anyone also reproduce it?
        !http://s21.postimg.org/w30afxak7/qt1.jpg()!

      2. I changed to target to tony and installer. Still error
        !http://s21.postimg.org/fqq8q6w8n/qt2.jpg()!
        !http://s21.postimg.org/tum3yl3g7/qt3.jpg()!

      3. When i change it to something else (lol,rofl, hahaha), it works
        !http://s21.postimg.org/verfwzbuf/qt4.jpg()!

      I repeated it quite a few times. This is driving me crazy.

      NOTE: I am having this issue only on windows 8

      1 Reply Last reply Reply Quote 0
      • hskoglund
        hskoglund last edited by

        In Windows 8 (and I think also in Windows 10) Microsoft checks if your .exe filename contains the letters "install", if yes, Microsoft requires admin privileges (UAC control) to run your program.

        So to avoid this error, either rename your project to something like "TonyDeployer", or start Qt Creator as admin.

        1 Reply Last reply Reply Quote 0
        • SGaist
          SGaist Lifetime Qt Champion last edited by

          Hi,
          @
          DISTFILES +=
          tonyinstaller.pro.autosave
          tonyinstaller.pro.user
          @
          First thing I'd do: close Qt Creator, delete these two and re-open the project.

          These two should not be in your git tree. .autosave is from an "in edition" file and .pro.user is generated when you configure your project the first time. It contains project specific values that in this case are also OS specific (e.g. paths)

          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 Reply Quote 0
          • N
            Nayar last edited by

            [quote author="hskoglund" date="1421097538"]In Windows 8 (and I think also in Windows 10) Microsoft checks if your .exe filename contains the letters "install", if yes, Microsoft requires admin privileges (UAC control) to run your program.
            [/quote]

            You are right. I looked at the executable in FIle Explorer and saw a little secure icon on it. Renamed it to something else and the secure icon disapeared.

            Windows indeed checks the file name to set permissions. Kinda stupid tho. Virus creators won't name there virus as "screwupyourpcinstaller.exe" :P

            Thanks guys

            1 Reply Last reply Reply Quote 0
            • First post
              Last post