Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista General

Vista - Avoid "System32": Where to place an INI file?

Reply
 
Old 02-12-2007   #1 (permalink)
James Hunter Ross


 
 

Avoid "System32": Where to place an INI file?

Friends,

Our application uses a few INI entries in our own ZZZ.INI file located in
"System32". (We use database records most all configuration, but some
entries must be handled before a DB connection is established.) The INI
file use is part legacy, and partly for ease of editing; we hesitate to have
customers make registry entries.

Anyway, Vista "UAC virtualization" ensures that writes to the INI file do
not actually alter the "System32" INI file, but this results in per-user
entries. We plan to add an "AsInvoker manifest" to our next build to
prohibit "virtualization". But, we want to change the location for the INI
file to someplace acceptable to Vista. Such a location must be referenced
by something in the environment, similar to %SYSTEMROOT%.

The best I've found so far is %ALLUSERSPROFILE% Is this an acceptable
location for our INI file? IS there a more standard place for such things?
Should I bite the bullet and use the registry? (Accompanied by a little
user app to read/write registry entries, so as to isolate our users from
regedit.) There are some other common read/write files that we plan to
place in this new location too, so I want to get things right.

Any words of advice will be greatly appreciated. Thanks in advance!

James




My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
"Extensible Authentication Protocol" service gives "The system cannot find the file specified" error Vista networking & sharing
Windows mail shuts down when "Insert" - "File Attachments" is sele Vista mail
Avoid "carriage return" in text file PowerShell
how to create file under "system32"? Vista General
How to avoid "The requested operation requires elevation" Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46