Failed to start program. Path or permissions wrong?



  • 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



  • 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.


  • Lifetime Qt Champion

    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)



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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.