Writing to the registry and VirtualStore


  1. Posts : 3
    Windows 7 Ultimate 64
       #1

    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 Computer


  2. Posts : 5,642
    Windows 10 Pro (x64)
       #2

    What is the purpose of this counter? Is it really necessary the users share this counter?
      My Computer


  3. Posts : 3
    Windows 7 Ultimate 64
    Thread Starter
       #3

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


  4. Posts : 5,642
    Windows 10 Pro (x64)
       #4

    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 Computer


  5. Posts : 3
    Windows 7 Ultimate 64
    Thread Starter
       #5

    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 Computer


  6. Posts : 5,642
    Windows 10 Pro (x64)
       #6

    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 Computer


 

  Related Discussions
Our Sites
Site Links
About 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 07:49.
Find Us