Lele
6th July 2007, 16:38
Hi all,
I'm trying to replace a file into the Program Files folder using
QFile::remove("test.ini")
QFile::copy("test.new", "test.ini")
The thing is that on Vista it's possible to do that only running as Administrator (even if I'm already logged as Administrator).
I know it's something related to the UAC, so what I'd like is to trigger (if no other workaround if possible) the password request only when I really execute the two lines of code.
What do you suggest me ?
Thanks for any help
Bye
I'm trying to replace a file into the Program Files folder using
QFile::remove("test.ini")
QFile::copy("test.new", "test.ini")
The thing is that on Vista it's possible to do that only running as Administrator (even if I'm already logged as Administrator).
I know it's something related to the UAC, so what I'd like is to trigger (if no other workaround if possible) the password request only when I really execute the two lines of code.
What do you suggest me ?
Thanks for any help
Bye