Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QTIFW 2.0.1 "Execute" & error-code

QTIFW 2.0.1 "Execute" & error-code

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 960 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.
  • geistig_abwesendG Offline
    geistig_abwesendG Offline
    geistig_abwesend
    wrote on last edited by
    #1

    How I get the error-code or how I know that the following command fails?

    component.addOperation("Execute", "{0,-1}", "cmd /C "@TargetDir@/xyz.exe"");
    0 = success
    -1 = fail
    The function returns in both cases "true".

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

      Hi
      I think it returns true as to "can you run cmd.exe"
      It's doubtful that the return of xyz.exe will be used but
      I have not checked the source so I might be wrong.

      What I wonder is if you really need cmd /C as its an exe file ?
      so Im imagine that it can run without the cmd "shell" ?

      1 Reply Last reply
      0
      • geistig_abwesendG Offline
        geistig_abwesendG Offline
        geistig_abwesend
        wrote on last edited by
        #3

        If the EXE fails (return -1) than I get my Errormessage in that Error-Message widget (with Buttons Retry, Ignore, Cancel).

        With pressing on Ignore the function returns "true". That's maybe "correct", but I have to know if it was successfully or "ignore".

        I want that my installer not switch the component to installed/uninstalled when the EXE fails.

        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