473,414 Members | 1,947 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Need an alternative location to write application data in Windows Vista

2
With Windows Vista, we can no longer write application settings to the HKEY_LOCAL_MACHINE Registry key in the same way. If we don't have Admin permission, our entry will be "virtualized" to our own private key, which makes it the equivalent to HKEY_CURRENT_USER, thus defeating the purpose of writing application to a location available to all users.

I need a place to be able to write application data that will be available to all users. I know about the "Documents and Settings/All Users/Application Data" folder, but found that when I created a .ini file with my application, other non-admin users did not have permission to write to it. So now what do I do?
Sep 25 '07 #1
1 1381
brettg
2
Great news. After searching around the Web, I found a cool product that seems to solve the problem perfectly. The name is RegDb (www.eztools-software.com/regdb.htm). Its a COM DLL that works sort of like the Windows Registry. In fact, its advertised as an alternative to the Windows Registry specifically to get around this new Windows Vista Registry issue. The COM DLL creates a file at the location you specify and automatically changes the Access Privileges to be writable by ALL USERS. This solves the Admin-created file issue (see original post for details). Then you can call easy-to-use methods like RegDb.OpenKey, RegDb.SetValue and RegDb.GetValue. It supports Text, DWORD, Float and Binary data types, and even supports encryption. It also has a method that retrieves the location of the “Documents and Settings/All Users/Application Data” folder, making it easy for you to build a path to your program’s application data file.
Sep 25 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Mike Button | last post by:
Hello all, I am really really desperate on what I should do, and I am asking for help from anyone in this newsgroup, here's the situation: I am creating a form that is being run on a server...
3
by: Julia | last post by:
I need help with architecture design,please: I have a server which constantly downloading messages from the internet and store them inside a data base. the server have two administrators...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
8
by: David Thielen | last post by:
Hi; In our setup program how do I determine if I need to run "aspnet_regiis –i" and if so, is there an API I can calll rather than finding that program on the user's disk and calling it? --...
14
by: Keith | last post by:
I have an MDE application used by several hundred people in different parts of the world. The majority of users are of lesser experience computer experience. The app consists of a frontend (MDE)...
3
by: Dave | last post by:
Hello, I have a pop-up form that is used to enter data on a form that is already open. My difficulty is that any of several forms might call this same pop-up, meaning that I need to store the...
1
by: vikjohn | last post by:
I have a new perl script sent to me which is a revision of the one I am currently running. The permissions are the same on each, the paths are correct but I am getting the infamous : The specified...
9
by: Joergen Bech | last post by:
I have an app that needs to run with elevated privileges on Windows Vista (Registry operations - don't ask). I have added a manifest file that looks like this: ---snip--- <?xml version="1.0"...
65
by: Hongyu | last post by:
Dear all: I am trying to write to a file with full directory name and file name specified (./outdir/mytestout.txt where . is the current directory) in C programming language and under Unix, but...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.