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 to create installer for installing two application?

how to create installer for installing two application?

Scheduled Pinned Locked Moved Solved General and Desktop
installerbinarycreatorwindows10qt 5.6
4 Posts 2 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.
  • Y Offline
    Y Offline
    Yash001
    wrote on 3 Apr 2019, 00:56 last edited by Yash001 4 Mar 2019, 00:56
    #1

    we create one application by our self. and another application is created by another party. I would like to add two application two a.exe and b.exe in one installer file. What is good way to create single installer for two Qt application.

    Note: In control panel, both application should show.

    K 1 Reply Last reply 3 Apr 2019, 07:54
    0
    • Y Yash001
      3 Apr 2019, 00:56

      we create one application by our self. and another application is created by another party. I would like to add two application two a.exe and b.exe in one installer file. What is good way to create single installer for two Qt application.

      Note: In control panel, both application should show.

      K Offline
      K Offline
      koahnig
      wrote on 3 Apr 2019, 07:54 last edited by koahnig 4 Mar 2019, 14:08
      #2

      @Yash001

      Basically you create a folder structure you like under the folder central package folder. Each of those folders hold a "data" and a "meta" folder with appropriate content. The installer does not really care what is in there. I have simply added data folders and handle them as my separate dll and exe folders. Within the package.xml in each meta folder you define the rest of how to show and where to store and possibly more things.

      Vote the answer(s) that helped you to solve your issue(s)

      Y 1 Reply Last reply 3 Apr 2019, 21:04
      5
      • K koahnig
        3 Apr 2019, 07:54

        @Yash001

        Basically you create a folder structure you like under the folder central package folder. Each of those folders hold a "data" and a "meta" folder with appropriate content. The installer does not really care what is in there. I have simply added data folders and handle them as my separate dll and exe folders. Within the package.xml in each meta folder you define the rest of how to show and where to store and possibly more things.

        Y Offline
        Y Offline
        Yash001
        wrote on 3 Apr 2019, 21:04 last edited by Yash001 4 Apr 2019, 00:45
        #3

        @koahnig Thank you for guidance. By adding new component (package.xml , and installscript.qs) in package. I am able to add another application (.exe) file in to same Installer.

        Here the script which I added in installscript.qs.

        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");
                        
                }
        
        }
        

        How can I identify component.addOperation("Execute", "{0,1638}", "@TargetDir@\\AnayasisTool.exe", "/install", "/passive", "/norestart"); is generated error or not?

        If it is generated error then I don't want to stop my installation process. I want to just notify to user like AnayasisTool.exe is not install.

        K 1 Reply Last reply 4 Apr 2019, 08:51
        0
        • Y Yash001
          3 Apr 2019, 21:04

          @koahnig Thank you for guidance. By adding new component (package.xml , and installscript.qs) in package. I am able to add another application (.exe) file in to same Installer.

          Here the script which I added in installscript.qs.

          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");
                          
                  }
          
          }
          

          How can I identify component.addOperation("Execute", "{0,1638}", "@TargetDir@\\AnayasisTool.exe", "/install", "/passive", "/norestart"); is generated error or not?

          If it is generated error then I don't want to stop my installation process. I want to just notify to user like AnayasisTool.exe is not install.

          K Offline
          K Offline
          koahnig
          wrote on 4 Apr 2019, 08:51 last edited by
          #4

          @Yash001

          That is beyond my experience level. No help possible from my side.

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          0

          2/4

          3 Apr 2019, 07:54

          • Login

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