ImDaFrEaK
Well-known member
I have a program that writes a settings file to the Application.StartUp path so that all users access the same settings when the program is running. This works fine in all windows except Vista. What's the deal here? I placed a message box inside the routine to write the file, just before it executes, to give me that exact file path of the writing process and it's exactly where it's supposed to be. It displays "C:\ProgramFile\MyApp\the file." However; the file does not get written here.
Here's the odd thing. If I goto the .exe, right click, and choose Run as Administrator the files are written to the location they should be. So I guess my situation is completely retarded but maybe simple to overcome.
I have two questions, what's the freaking deal with this crap?
How can I tell my application to ALWAYS run as Administrator even on non-admin accounts?
By the way, even if the account I run the program on is an admin account the files are not written. I have to right click and specify run as administrator. Further more. I know the settings file is being written SOMEWHERE!? because the setttings are saved and loaded again. Just not in the correct path and independant for each user. The stupid thing is Vista won't let me find where they are written and like I mentioned, the message box tells me it's being written to the Application.StartPath like I reqeusted. I hate this.
I'm really in a jam here and need any help I can get with this. Thank you so much.
Here's the odd thing. If I goto the .exe, right click, and choose Run as Administrator the files are written to the location they should be. So I guess my situation is completely retarded but maybe simple to overcome.
I have two questions, what's the freaking deal with this crap?
How can I tell my application to ALWAYS run as Administrator even on non-admin accounts?
By the way, even if the account I run the program on is an admin account the files are not written. I have to right click and specify run as administrator. Further more. I know the settings file is being written SOMEWHERE!? because the setttings are saved and loaded again. Just not in the correct path and independant for each user. The stupid thing is Vista won't let me find where they are written and like I mentioned, the message box tells me it's being written to the Application.StartPath like I reqeusted. I hate this.
I'm really in a jam here and need any help I can get with this. Thank you so much.