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. Failed to start program. Path or permissions wrong?
Forum Updated to NodeBB v4.3 + New Features

Failed to start program. Path or permissions wrong?

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 3 Posters 1.6k Views 1 Watching
  • 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 Offline
    N Offline
    Nayar
    wrote on last edited by
    #1

    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
    0
    • hskoglundH Online
      hskoglundH Online
      hskoglund
      wrote on last edited by
      #2

      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
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        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
        0
        • N Offline
          N Offline
          Nayar
          wrote on last edited by
          #4

          [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
          0

          • Login

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