Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How to create an installer???
Qt 6.11 is out! See what's new in the release blog

How to create an installer???

Scheduled Pinned Locked Moved Qt Creator and other tools
15 Posts 11 Posters 14.3k Views 1 Watching
  • 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #5

    Thanks guys, Well i already have all my files DDL's and everything i need to run the program on it's own.

    What i should have said i just want a way to install my files and folders from a single installer.exe file =]

    But the links your provided seems will do the job, i'll try them out bit later and will let you know how it all went.

    Big thanks!

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MuldeR
      wrote on last edited by
      #6

      Then NSIS is perfectly suitable for you (maybe Inno too, can't say much about Inno).

      Of course much more "sophisticated" installers can be created with NSIS, but creating something that basically is a "self-extracting EXE" can be done too. Should be straight forward. It can look like:
      @; The name of the installer
      Name "My Superduper Application"

      ; The file to write
      OutFile "Installer.exe"

      ; The default installation directory
      InstallDir "$PROGRAMFILES\My Company\My Application"

      ; Request "Admin" privileges for Windows Vista/Win7 (required!)
      RequestExecutionLevel user

      ;--------------------------------

      ; Pages

      Page directory ; 1st page: Let user choose target directory
      Page instfiles ; 2nd page: Install the files

      ; COULD ADD SOMETHING LIKE A LICENSE PAGE HERE

      ;--------------------------------

      ; The stuff to install
      Section "The Application"

      ; Set output path to the installation directory.
      SetOutPath "$INSTDIR"

      ; Files to be extracted to the installation directory.
      File "MainApp.exe"
      File "SomeRequiredDLL.dll"
      File "AnotherDLL.dll"

      ; ADD MORE FILES HERE ...

      SectionEnd ; end the section

      ;--------------------------------

      ; Optional section, create Startmenu entries
      Section "Start Menu Shortcuts"

      ; Create directory in Startmenu
      CreateDirectory "$SMPROGRAMS\My Application"

      ; Create the Shortcuts:
      CreateShortCut "$SMPROGRAMS\My Application\Launch Application.lnk" "$INSTDIR\MainApp.exe"

      SectionEnd ; end the section@

      Just save the above code to "installer.nsi" and compile it with:

      @makensis.exe "C:\Path to my stuff\installer.nsi"@

      My OpenSource software at: http://muldersoft.com/

      Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

      Go visit the coop: http://youtu.be/Jay...

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #7

        Another vote for NSIS!

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #8

          I like InnoSetup - to give that a vote! :)

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #9

            Don't waste a time on scripting - use "Actual Installer":http://actualinstaller.com

            1 Reply Last reply
            0
            • D Offline
              D Offline
              DerManu
              wrote on last edited by
              #10

              Installer? No problem.
              @tar -czf installer.tar.gz *@
              There you go.

              // EDIT: vote for innosetup, but only if your application really needs an installer. There are too many Microsoft® Windows® applications that just use an installer to look professional. That's unprofessional.

              1 Reply Last reply
              0
              • ? Offline
                ? Offline
                A Former User
                wrote on last edited by
                #11

                If you need to provide support for multiple platforms you may want to check out "InstallBuilder For Qt":http://installbuilder.bitrock.com

                It allows you to configure complex installation logic so you can have the same wizard-like UI across different target platforms. It also provides unattended and text modes as well as the ability to generate .deb and .rpm packages. We offer free licenses to open source projects.

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  DerManu
                  wrote on last edited by
                  #12

                  [quote author="ridruejo" date="1345639746"]If you need to provide support for multiple platforms you may want to check out "InstallBuilder For Qt":http://installbuilder.bitrock.com[/quote]
                  Wow, 2000$ for a cross-platform install builder? I should start in that market, too ;D

                  [quote]We offer free licenses to open source projects.[/quote]
                  Now that is really great!

                  1 Reply Last reply
                  0
                  • Q Offline
                    Q Offline
                    qxoz
                    wrote on last edited by
                    #13

                    Did somebody try "Qt Installer Framework":https://qt.gitorious.org/qt-labs/installer-framework ?

                    1 Reply Last reply
                    0
                    • ? Offline
                      ? Offline
                      A Former User
                      wrote on last edited by
                      #14

                      [quote author="DerManu" date="1345660060"]
                      Wow, 2000$ for a cross-platform install builder? I should start in that market, too ;D
                      [/quote]

                      Selling development tools is certainly a tough market, that's for sure. Sometimes I wonder if we should have started a social-commerce mobile app or something along those lines :) Most of our customers are in the Enterprise and our main competitor is InstallAnywhere, which typically goes between $6.000 and $10.000, so we are actually much cheaper compare to them. We also provide top-notch support directly from the developers, instead of outsourcing it. Having said that, we have customers outside the enterprise and offer significant small business and academic discounts, so please contact us if that is your case.

                      1 Reply Last reply
                      0
                      • W Offline
                        W Offline
                        walteste
                        wrote on last edited by
                        #15

                        Very powerful and also a free license available: "Advanced Installer":http://www.advancedinstaller.com

                        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
                        • Unsolved