Results 1 to 5 of 5

Thread: Developping a setup for Vista/Seven

  1. #1
    Join Date
    May 2012
    Posts
    5
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Question Developping a setup for Vista/Seven

    Hi all,

    I'm currently trying to make a fully operationnal setup program in order to deploy my application on Vista and Seven systems (both 32 and 64bit, but the executable is the same).
    My issue concerns the setup program itself, which is not detected by UAC as a setup program (It is actually executed after an Winrar-created SFX extraction, I don't know if thats relevent). So the UAC doesn't ask the user for administrator rights, and the setup runs in user mode. As the default path is in program files, the setup doesn't have rights to write its files. Strange thing though, QFile::copy() doesn't produce any error.
    What I would like is the setup to ask for administrator rights elevation as soon as it starts. I tried to embed a Installer.exe.manifest file in the executable resources and adding embed_manifest_exe option in the *.pro file.
    What is the proper way to perform this ?

    Furthermore, when running the application, some files inside the installation directory may be written. Again it is mandatory to run explicitely the application as administrator to avoid unpleasant behaviours, but this time I guess it is more of an application design error.

  2. #2
    Join Date
    May 2012
    Posts
    5
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Developping a setup for Vista/Seven

    Am I in the wrong section or something ? This section of the forum seems to be really dead right now...

  3. #3
    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: Developping a setup for Vista/Seven

    Nothing you do to the archived Qt program or its resources will affect the executable wrapper that Winrar puts on the bundle. If the Winrar executable wrapper contains no manifest specifying privileges (it may, I don't know) then Windows Vista/7 will trigger elevation if the name of the program being run contains the magic word "setup" or "install" IIRC. To make this foolproof you should replace/install a manifest on the Winrar wrapped archive or use a scripted installer tool (NSIS, Windows installer etc.) to build your deployment bundle.

  4. #4
    Join Date
    May 2012
    Posts
    5
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Developping a setup for Vista/Seven

    What you're implying here is interessant. My Winrar self extractible executable is named with Setup in it's name, indeed...
    So I would have a win7 specific issue, in no way related to Qt ? Wouldn't the system be capable of detecting when the Qt installer executable (inside the selfextract one) is executed ?
    As these issues seem to be on the OS side I guess I should try on some windows forum...

  5. #5
    Join Date
    Jun 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Developping a setup for Vista/Seven

    Hello everyone,

    Simple question, has your binary been compiled with a manifest which would enable it at least prompt the UAC's ?

Similar Threads

  1. Qt Setup Help
    By arpspatel in forum Installation and Deployment
    Replies: 6
    Last Post: 26th January 2011, 19:45
  2. Qwt setup with VS2008
    By er453r in forum Qwt
    Replies: 1
    Last Post: 26th April 2010, 15:44
  3. How to make a setup
    By TomASS in forum Qt Tools
    Replies: 7
    Last Post: 7th December 2009, 13:31
  4. Problems with QT Setup on Vista
    By Riv in forum Installation and Deployment
    Replies: 2
    Last Post: 21st March 2009, 23:15
  5. How to create setup in Mac
    By santhoshv84 in forum Qt Programming
    Replies: 0
    Last Post: 18th September 2008, 07:26

Tags for this Thread

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.