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. QT IFW addOperation reporting error

QT IFW addOperation reporting error

Scheduled Pinned Locked Moved Installation and Deployment
ifwinstallerframeworkreturn codeexit codeaddoperation
1 Posts 1 Posters 1.3k 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
    JohnvdB
    wrote on 28 Jul 2015, 16:07 last edited by
    #1

    Hi,

    I'm trying to use the Qt installation framework, and so far so good.
    Now at the end of my installation I want to launch an executable of the visual studio redistributables that my application needs.
    I do this using the addOperation call in the script. It launches the setup fine, so that works all fine.

    However, the issue now is that addOperation seems to look if the return code of the application launched equals 0 or not.
    If it is not 0, it will report it as failed afterwards in a special window.
    The problem is that many executables return a non-zero error code, even if its successfully executed.
    For example the visual studio redist installer returns some code identifying that a reboot is needed, even when specifying a /norestart argument to it.

    What I tried as workaround is to launch a cmd /C command, which executes the application on windows.
    That however gives a return code of 1, which indicates partial success, for the same reason. Another attempt I did was to create a .bat file that executes the executable and return code 0 at the end, but that has the same issue, giving code 1 as result.

    Is there a way to force Qt IFW to ignore whether the return code is 0 or not? Or is there some other workaround for this?

    Thanks,

    • John
    1 Reply Last reply
    0

    1/1

    28 Jul 2015, 16:07

    • Login

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