Results 1 to 4 of 4

Thread: Create and Detete a file under system32 on WIndows Vista

  1. #1
    Join Date
    Jun 2007
    Location
    italy
    Posts
    126
    Thanks
    15
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Create and Detete a file under system32 on WIndows Vista

    Hi folks,

    I am developing a windows vista application using Qt 4.2.3.

    Each time I try to create (or delele if the file was already there) a file which has to be placed under the system32 folder, windows vista doesn't show me anything (no problem at all)
    but on the other hand the file was not created (or it was not deleted if it was already there)

    Is there someone who knows the correct way to do this operation under vista
    with Qt codes?

    Many thanks in advance,

    rmagro

  2. #2
    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: Create and Detete a file under system32 on WIndows Vista

    Probably because you don't have permissions.
    You need administrator permissions to write in system32, especially with UAC enabled.

    See the attachments in this thread:http://www.qtcentre.org/forum/f-qt-p...ighlight=vista

    regards

  3. #3
    Join Date
    Jun 2007
    Location
    italy
    Posts
    126
    Thanks
    15
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Create and Detete a file under system32 on WIndows Vista

    Thanks Marcel,

    I don't really know in deep Windows vista.
    What I can tell is that I run the application as Administrator but it does not change the
    fact the I am not able to withe in that folder..

    I will try to hve a look at the link you kindly suggested..

    All the best,
    rmagro

  4. #4
    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: Create and Detete a file under system32 on WIndows Vista

    Well, first try to disable UAC and run it as admin. It should work.
    With UAC enabled, even if administrator, you will be prompted with and elevation dialog.

    Regards

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.