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 .msi installer for a Qt project

How to create .msi installer for a Qt project

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 5 Posters 2.1k 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.
  • dporobicD Offline
    dporobicD Offline
    dporobic
    wrote on last edited by
    #1

    Does anyone know hot to create an msi installer for a Qt project?

    https://github.com/ksnip/ksnip

    JonBJ K 2 Replies Last reply
    0
    • dporobicD dporobic

      Does anyone know hot to create an msi installer for a Qt project?

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @dporobic
      I think you will find this is not possible/advisable. https://stackoverflow.com/questions/48989794/create-msi-installer-with-qt-installer-framework

      If you are not aware, Qt stuff is usually installed/deployed with linuxdeployqt or windeployqt.

      1 Reply Last reply
      0
      • dporobicD Offline
        dporobicD Offline
        dporobic
        wrote on last edited by
        #3

        Not sure what you say it's not possible/advisable? The link you have posted mentions Wix for that use case.

        I use linuxdeployqt and macdeployqt for my Project but I haven't used it for Windows yet.

        https://github.com/ksnip/ksnip

        JonBJ 1 Reply Last reply
        0
        • dporobicD dporobic

          Not sure what you say it's not possible/advisable? The link you have posted mentions Wix for that use case.

          I use linuxdeployqt and macdeployqt for my Project but I haven't used it for Windows yet.

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @dporobic

          Not sure what you say it's not possible/advisable?

          I say that because I did some Googling for qt project msi installer. And because that accepted solution states

          Qt installer framework doesn't provide creating of MSI installer. For MSIs you should use WiX for example.

          And because I have seen quite a number of questions here about Qt deployment, and not one of them mentioned MSI. And because when I used MSI installer it was from Visual Studio and was tied very much to Visual Studio, its languages and frameworks.

          So those are my reasons.

          The link you have posted mentions Wix for that use case.

          So use WiX if you wish.

          I use linuxdeployqt and macdeployqt for my Project but I haven't used it for Windows yet.

          But you ask to create an MSI installer for Windows? I'm sorry, perhaps I don't understand.

          W 1 Reply Last reply
          0
          • JonBJ JonB

            @dporobic

            Not sure what you say it's not possible/advisable?

            I say that because I did some Googling for qt project msi installer. And because that accepted solution states

            Qt installer framework doesn't provide creating of MSI installer. For MSIs you should use WiX for example.

            And because I have seen quite a number of questions here about Qt deployment, and not one of them mentioned MSI. And because when I used MSI installer it was from Visual Studio and was tied very much to Visual Studio, its languages and frameworks.

            So those are my reasons.

            The link you have posted mentions Wix for that use case.

            So use WiX if you wish.

            I use linuxdeployqt and macdeployqt for my Project but I haven't used it for Windows yet.

            But you ask to create an MSI installer for Windows? I'm sorry, perhaps I don't understand.

            W Offline
            W Offline
            wrosecrans
            wrote on last edited by
            #5

            @JonB The fact that Qt Installer Framework doesn't spit out MSI's doesn't say much about it being unadvisable to make MSI's. If anything, it just says a lot about using QIF being unadvisable. There's no reason you need to use QIF to make an installer for a Qt project, and MSI's are the native package format on Windows that are super useful for automated deployments through stuff like Active Directory. Doing an automated install with a QIF installer is a massive pain in the neck, and there is no reason to subject your users to it.

            JonBJ 1 Reply Last reply
            1
            • W wrosecrans

              @JonB The fact that Qt Installer Framework doesn't spit out MSI's doesn't say much about it being unadvisable to make MSI's. If anything, it just says a lot about using QIF being unadvisable. There's no reason you need to use QIF to make an installer for a Qt project, and MSI's are the native package format on Windows that are super useful for automated deployments through stuff like Active Directory. Doing an automated install with a QIF installer is a massive pain in the neck, and there is no reason to subject your users to it.

              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on last edited by JonB
              #6

              @wrosecrans
              As I said, clearly I did not understand. Perhaps @dporobic can understand from your post what he needs to do, my apologies.

              1 Reply Last reply
              0
              • dporobicD Offline
                dporobicD Offline
                dporobic
                wrote on last edited by
                #7

                I'm new to this topic too but as @wrosecrans says, having an MSI package seems to help automate deployment and in that the context it was brought up by my users. I'm looking for guides or tutorials on how to do it with Qt. If there is no one with experience on that field here, well, then I need to look elsewhere.

                https://github.com/ksnip/ksnip

                1 Reply Last reply
                1
                • dporobicD dporobic

                  Does anyone know hot to create an msi installer for a Qt project?

                  K Offline
                  K Offline
                  kuzulis
                  Qt Champions 2020
                  wrote on last edited by
                  #8

                  @dporobic , I used the Qbs to create the msi installers by Wix utility. The Qbs has the wix module for that.

                  dporobicD 1 Reply Last reply
                  1
                  • K kuzulis

                    @dporobic , I used the Qbs to create the msi installers by Wix utility. The Qbs has the wix module for that.

                    dporobicD Offline
                    dporobicD Offline
                    dporobic
                    wrote on last edited by
                    #9

                    @kuzulis Any guides or tutorials on that one? First time I hear about Qbs actually.

                    https://github.com/ksnip/ksnip

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      Hi,

                      A quick search turns the Qbs wix module documentation.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      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