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?
QtWS25 Last Chance

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 last edited by Yash001
    #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
    0
    • Y Yash001

      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 last edited by koahnig
      #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
      5
      • K koahnig

        @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 last edited by Yash001
        #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
        0
        • Y Yash001

          @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 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

          • Login

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