Results 1 to 8 of 8

Thread: To create installer for Qt

  1. #1
    Join Date
    May 2013
    Posts
    28
    Thanks
    8
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Symbian S60 Android

    Angry To create installer for Qt

    Dear Guys,
    I want to create a installer for Qt...That is for eg:I can say Internet Explorer,Mozilla firefox.If we clicked these tools means,well accessing it..Like wise i have created a code in Qt and it works nicely....But now my task is to create a installer(Executable file) for that code...That is If i clicked that exe.file means,My required output should come...Like wise if i copied that Exe.file alone into another system,it should work perfectly......That means the code should not be dispalyed anywhere...Only Exe.file should be there...Please kindly help me....Thanks in advance...
    With regards,
    kanna.

  2. #2
    Join Date
    Feb 2012
    Location
    Armenia/Yerevan
    Posts
    400
    Thanks
    15
    Thanked 16 Times in 15 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: To create installer for Qt

    Quote Originally Posted by mohanakannan View Post
    Dear Guys,
    But now my task is to create a installer(Executable file) for that code...
    When you compile your code, if it succeeds, the executable will be generated inside your project folder.

    Like wise if i copied that Exe.file alone into another system,it should work perfectly
    O'rite, run your executable in the new system, if it fails, check what caused the error. In Linux and Android OS you need to pay attention to file or device permission or set them manually at every boot up or you add the required bash.

    kanna.[/QUOTE]

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: To create installer for Qt

    Quote Originally Posted by mohanakannan View Post
    Dear Guys,
    I want to create a installer for Qt...That is for eg:I can say Internet Explorer,Mozilla firefox.If we clicked these tools means,well accessing it..Like wise i have created a code in Qt and it works nicely....But now my task is to create a installer(Executable file) for that code...That is If i clicked that exe.file means,My required output should come...Like wise if i copied that Exe.file alone into another system,it should work perfectly......That means the code should not be dispalyed anywhere...Only Exe.file should be there...Please kindly help me....Thanks in advance...
    You can use any of the standard installer generators (like NSIS) to create installers to your programs.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #4
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: To create installer for Qt

    NSIS is a good option, but i just want to mention that there is also the QtInstallerFramework, i didn't used it so i can't tell you if i like it or not, i just heard of it recently and i think that it might be an interesting project to know about and maybe use when it solves our problems (has anybody used it yet?)

    You can read the documentation for deploying Qt applications: link and i'm not sure that i understand correctly when you said "Only Exe.file should be there" but maybe you need a static build of Qt framework, if you use LGPL version of Qt make sure you are allowed to use static build (and also note that if you decide you need a static build you will need to build the static Qt framework yourself).

  5. #5
    Join Date
    May 2013
    Posts
    28
    Thanks
    8
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Symbian S60 Android

    Unhappy Re: To create installer for Qt

    Thank you,...But Exe.file alone should be run and coding folders should not be displayed..suppose for eg:take this scenario..in QtSDK i have created project named "Button".Afetr running it ,there ll be executanle file within that folder..If i copies that executable file alone into some other location means,it should run perfectly...This is my problem..And I don't know how to proceed..

    Quote Originally Posted by wysota View Post
    You can use any of the standard installer generators (like NSIS) to create installers to your programs.
    Thank you...
    But i don't have any idea about that...please explain it in a precise and understandle way..


    Added after 10 minutes:


    Plaese any body help...I dont know how to proceed further...
    with regards,
    kanna
    Last edited by mohanakannan; 19th May 2013 at 11:41.

  6. #6
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: To create installer for Qt

    As Zlatomir says, you should read the documentation about deploying Qt applications. Your requirement for a single, self-contained executable means:
    • You want a static build of your application. You need to stay within the confines of your license to use Qt.
    • To build that executable you will first need to build a statically linked Qt library.
    • You do not need an installer. In fact the usual reason for wanting a self-contained executable is precisely to avoid needing a separate installer.

    Your program will still need some components on the machine that cannot be statically easily/legally linked (MSVC runtime libs for example).

    Your program can be a self-contained, portable folder without going to all that trouble.

  7. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: To create installer for Qt

    Quote Originally Posted by mohanakannan View Post
    But i don't have any idea about that...please explain it in a precise and understandle way..

    http://nsis.sourceforge.net/
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  8. #8
    Join Date
    May 2013
    Posts
    28
    Thanks
    8
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Symbian S60 Android

    Default Re: To create installer for Qt

    Quote Originally Posted by wysota View Post
    Thanks I will try my best..

    Quote Originally Posted by ChrisW67 View Post
    As Zlatomir says, you should read the documentation about deploying Qt applications. Your requirement for a single, self-contained executable means:
    • You want a static build of your application. You need to stay within the confines of your license to use Qt.
    • To build that executable you will first need to build a statically linked Qt library.
    • You do not need an installer. In fact the usual reason for wanting a self-contained executable is precisely to avoid needing a separate installer.

    Your program will still need some components on the machine that cannot be statically easily/legally linked (MSVC runtime libs for example).

    Your program can be a self-contained, portable folder without going to all that trouble.
    Thank you Very much....I will read it and will try my best

Similar Threads

  1. how to make an installer??
    By jackajack01 in forum Qt Programming
    Replies: 3
    Last Post: 16th August 2012, 13:58
  2. Create an Installer
    By pl01 in forum Newbie
    Replies: 3
    Last Post: 7th March 2011, 13:29
  3. Installer UI
    By addu in forum Qt Programming
    Replies: 1
    Last Post: 25th August 2009, 11:53
  4. installer
    By koyot in forum Newbie
    Replies: 1
    Last Post: 26th February 2007, 13:34

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.