Qt Forum

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

    Unsolved How can I detect the addOperation error in installer Script?

    General and Desktop
    component installer installer error addoperation qt5.6
    1
    1
    355
    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.
    • Y
      Yash001 last edited by

      Here I mention my Installer script of component.

      function Component() {
      }
      Component.prototype.createOperations = function() {
          component.createOperations();
      	if (systemInfo.productType === "windows") {
                     component.addOperation("Execute", "{0,1638}", "@TargetDir@\\AnayasisTool.exe", "/install", "/passive", "/norestart");
                     component.addOperation("Delete", "@TargetDir@\\AnayasisTool.exe");     
              }
      }
      

      I would like to detect error if it is generated by component.addOperation("Execute", "{0,1638}", "@TargetDir@\\AnayasisTool.exe", "/install", "/passive", "/norestart");. is it any way to detect the error ?

      AnayasisTool.exe is another installer(name: b) which is added in my application bundle.

      In general, I would like to install the two application with single installer(name: a). if user click on installer(name: a) by default one application will install, but if User select the another application in component selection area then it will install both application.

      Error is generate:- User select the second application in first installer(name: a), second application is start to install using installer(name: b). Meanwhile, If user click on cancel button while installing then I am getting error on first Installer(name: a).

      what is good detect the error which is generated by component execution operation?

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