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. How can I detect the addOperation error in installer Script?

How can I detect the addOperation error in installer Script?

Scheduled Pinned Locked Moved Unsolved General and Desktop
componentinstallerinstaller erroraddoperationqt5.6
1 Posts 1 Posters 574 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.
  • Y Offline
    Y Offline
    Yash001
    wrote on 4 Apr 2019, 17:06 last edited by
    #1

    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
    0

    1/1

    4 Apr 2019, 17:06

    • 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