Results 1 to 20 of 24

Thread: Small task for Windows programmers

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Small task for Windows programmers

    Quote Originally Posted by wysota View Post
    But I don't have the links. I don't have a binary release installed, just the source. So the steps needed are:
    1. create links
    2. create a folder in the start menu
    3. move links to the above mentioned folder
    4. create a script that will setup all the vars
    5. create a link that will run the script
    6. move the link (or the script directly) to the folder
    7. say "voilla"
    Voilla!
    Since what you asked for is not possible with a batch script, I turned my head towards WSH. So you guys can find enclosed a small vb script, which you can test. If your Windows installation is somehow missing wscript, then you're out of luck, but normally, it should be there.
    The script will prompt you to enter the Qt instalation root, such as C:\Qt\4.3.2 and it will do the work from there.

    Currently it creates shortcuts for all the 4 tools and command prompt, and also creates a qtvars.bat which sets the environment. The makespec is hardcoded to win32-g++.

    To run the script, just double-click it.
    Attached Files Attached Files

  2. The following user says thank you to marcel for this useful post:

    wysota (27th October 2007)

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
  •  
Qt is a trademark of The Qt Company.