Allowing non-administrators to write to HKLM\software\myapp on XP with VB6
Posted on 2007-04-10
I see that this exact question has been asked before but if there was a solution, it was not evident to me. And even though it appears from looking at similar questions that there is not solution to my problem, I shall ask it again anyway:
I have a VB6 application running on XP which stores user selectable options in the HKLM\software\myApp registry key. These options are really application specific rather than user specific which is why I really need to store the information there (I need to avoid using the HKCU key). My problem is that in order to write to my registry key, the user has to have administrative privileges which most users do not. My current work around is to go to each PC and using REGEDT32 with the administrator account, give the everyone group full control of the HKLM\Software\MyApp registry key. This is not a practical workaround. Is there a way using VB that I can grant the everyone group full control of the myapp registry key when I create it? I’m a hardware guy not a software guy, so don’t get too complex with responses.
Thanks for your help,