Help!

Configuration Files (ini)


Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Security RSS
Next:  run a legacy CPL elevated message  
Author Message
Paul Smith
External


Since: Jan 22, 2007
Posts: 5



PostPosted: Tue Jul 31, 2007 12:47 pm    Post subject: Configuration Files (ini)
Archived from groups: microsoft>public>windows>vista>security (more info?)

Anyone know how Vista handles .ini files? I have software that uses an ini
file but unless I run the software as administrator, it seems to use a
cached version. The user I log in as is in the Domain Admins group too!!
Back to top
dean-dean
External


Since: Oct 19, 2006
Posts: 1090



PostPosted: Tue Jul 31, 2007 12:47 pm    Post subject: Re: Configuration Files (ini) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Go to C:\Program Files, and click on Compatibility Files in the Toolbar of
Windows Explorer. This will take you to C:\Users\(Your
Name)\AppData\Local\VirtualStore\Program Files. This is where Vista puts
the files of programs that write certain types of user files to the
C:\Program Files subdirectories. When you're in C:\Program Files\Your
Program (or possibly a subfolder of that path), you should also see a button
in the taskbar of Windows Explorer called "Compatibility Files", which will
you take you directly to your program's config files.

In your program's Options dialog, can you change the default location (path)
of the .ini file (or editing the .ini file itself) to a path that is under
your account name.

For example, C:\Users\(Your Name)\Documents\ProgramName Data (you may have
to create the folder there first). Then Vista won't redirect your files.
It doesn't really cotton to user files being written to the C:\Program Files
subdirectories, after the initial installation, and has put the Program
Files folder on a security level as that of the Windows folders themselves,
making TrustedInstaller the owner.

Too, if your program writes a temporary .ini file (such as program.ini.bak
or program.ini.$$$) in the course of writing to the .ini file,
Virtualization might get confused and virtualize the wrong file, causing
your program, possibly, to recreate the default, because it can't find its
"finalized" program.ini file.

"Paul Smith" <pauls DeleteThis @innate.co.uk> wrote in message
news:%23PE9Og20HHA.3768@TK2MSFTNGP06.phx.gbl...
> Anyone know how Vista handles .ini files? I have software that uses an ini
> file but unless I run the software as administrator, it seems to use a
> cached version. The user I log in as is in the Domain Admins group too!!
>
>
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Security All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum