Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Writing to the registry and VirtualStore

02 May 2011   #1
Xaphann

Windows 7 Ultimate 64
 
 
Writing to the registry and VirtualStore

Hi

I have an application that needs to move to Windows 7. The issue is that it writes to the registry (HKLM > Software => <Application Name>). The issue is with VirtualStore it redirects the registry write to the VirtualStore for each user. This would be fine but different users log into the same machine. This is a massive problem because one of the things the application uses the registry for is a counter. So ever users that logs in throws off the counter. Now I have only found three work around and don't like any;

1. Give all users owner rights to the registry keys in questions.
2. Run the application as administrator.
3. Run the application in Windows XP mode

Problem for option 1 is to get this approved through my IT security will be near impossible, at best a month long battle. Knowing the problem with option 1 option 2 seems like a pipe dream. The issue with option 3 the user base of this application could not handle it.

Is there any other way of doing this? Even if they are worse at least I can make a case for the "best of the worse".

Thanks.


My System SpecsSystem Spec
.
02 May 2011   #2
logicearth

Windows 10 Pro (x64)
 
 

What is the purpose of this counter? Is it really necessary the users share this counter?
My System SpecsSystem Spec
02 May 2011   #3
Xaphann

Windows 7 Ultimate 64
 
 

It is very important. It generates an unique ID that if not unique generates lots of errors.
My System SpecsSystem Spec
.

02 May 2011   #4
logicearth

Windows 10 Pro (x64)
 
 

I see. Maybe you should generate a unique ID some other way? Use a time based system or something like GUIDs Windows uses internally for creating unique IDs. Otherwise the only alternative I can see is breaking the application up and having a Helper Service running with high privileges. Similar to how Steam operates.
My System SpecsSystem Spec
02 May 2011   #5
Xaphann

Windows 7 Ultimate 64
 
 

The ID are displayed and have to typed in therefore a GUID is not an option, also there are 5 years of ID. Lastly (and most importantly) I can not change the code.

Not not familiar with Helper Service. Doing some google searches I am assuming you mean Application Host Help Service. Although it seems most results are how to disable. Any chance you point me in the right direction on how to configure and run?
My System SpecsSystem Spec
02 May 2011   #6
logicearth

Windows 10 Pro (x64)
 
 

I referring to using a Windows Service: Windows service - Wikipedia, the free encyclopedia
The application would talk to the Helper Service for all administrative tasks, so the application itself would not need any.
My System SpecsSystem Spec
Reply

 Writing to the registry and VirtualStore




Thread Tools






Similar help and support threads
Thread Forum
Downloaded stuff to Appdata Virtualstore --> internet apps don't work!
Yeah writing this with a mobile phone. I have been downloading some music and movies and by default they are saved to Appdata Virtualstore folder instead of program files. Suddenly internet apps (firefox, chrome, msn messenger, yahoo messenger, steam) stop working due to a connection error even...
General Discussion
Registry problem after windows update and registry optimization tool
Hello sevenforum, I've already spend some time on this forum today but I can't find the solution to a particular registry problem I'm having. While windows was uploading some updates yesterday, I cleaned my registry using Iolo's system mechanic tool and that's where the problems started. (I...
Backup and Restore
VirtualStore missing/does not work
Moved From: http://www.sevenforums.com/system-security/212587-uac-virtualstore-doesnt-work.html I was playing Worms 4 Mayhem, when my saves disappear, then i saw the virtualstore folder is missing My thread in MS Answers, basically the same things, but since i don't play portal 2 again, and...
Software
UAC VirtualStore doesn't work
yes, the title says, especially the file virtualization. I was playing Worms 4 Mayhem, when my saves disappear, then i saw the virtualstore folder is missing My thread in MS Answers, basically the same things, but since i don't play portal 2 again, and guys at MS doesn't give me good answer, so...
System Security
Problem with ini files and VirtualStore
Hey, I have a problem with this magical tool. My program is supposed to save and read data from ini file from c:/windows. But, Windows created the same file in VirtualStore and now sometimes it reads from that directory. Could you explain my why? And in what cases? Thx in advance, Regards,
Software


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 10:32.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App