Link to home
Start Free TrialLog in
Avatar of vj_mi
vj_mi

asked on

Cannot write values to my .ini files in Vista

Hello,

When my vb.net 2008 desktop app gets installed, I also copy MyApp.ini file in windows folder. Then the user runs my exe and first time it asks for SQL Server name. The user enters this name and I write to Myapp.ini. But I find that I can write this values from my vb.net for XP but on Vista, this file cannot get modified. Even I open this file outside my app using Notepad, even then I cannot save the changes. Please Help.

Regards,
MI
ASKER CERTIFIED SOLUTION
Avatar of Francisco Igor
Francisco Igor
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vj_mi
vj_mi

ASKER

But I am already logged in as administrator....

Regards,
MI
You may be logged in as Administrator but with Windows Vista and new operating systems came with UAC( User Account Control) a security feature. In your case even though you logged in under Administrator account the applications that you launch run under standard users. You want to create a folder in Public Documents or Application Data and add your files into that location since they have both read and write permissions for standard users.