PDA

View Full Version : Create and Detete a file under system32 on WIndows Vista



rmagro
4th September 2007, 12:30
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

marcel
4th September 2007, 12:37
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-programming-2/t-qprocess-and-vista-uac-6580.html/?highlight=vista

regards

rmagro
4th September 2007, 14:34
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

marcel
4th September 2007, 14:40
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