Registry problem

  • Thread starter Thread starter kbnumesh
  • Start date Start date
K

kbnumesh

Hi all,

Can any one help in writing to registry?

I am unable to write data to HKLM\Software\Microsoft\windows
\currentversion\Run registry entry.

If this is not allowed then is there any alternative way i can write
my application path so that my application starts when vista starts.

thanks for the help in advance.


Regards,
Umesh P
 
You are trying to write to a restricted area of the registry. If you write
to the same location in HKCU, you will not have the problem. Also, you
should include a Manifest with the application define the execution level
that it needs to run.

More information here:



The Windows Vista Developer Story: Windows Vista Application Development
Requirements for User Account Control (UAC):
http://msdn2.microsoft.com/en-us/library/aa905330.aspx

Download details: Windows Vista Application Development Requirements for
User Account Control Compatibility:
http://www.microsoft.com/downloads/...69-A648-49AF-BC5E-A2EEBB74C16B&displaylang=en

Secure It:
http://msdn2.microsoft.com/en-us/windowsvista/aa904985.aspx

User Account Control Overview:
http://technet.microsoft.com/en-us/windowsvista/aa906021.aspx#E2G
 
Hi Ronnie Vernon ,

Thanks for your valuable information.
I am having one more query.

How can i ensure that all the users present in that system,
when logged in to the system using their account should get my
application
running.

In windows XP if i write to HKLM i can acheive but in Vista if I write
to HKCU
i may not able to get the above result.

please help me in this regard.

Regards,
Umesh P
 
Umesh

I'm not a developer. I do know that it's possible to write to HKLM as part
of an elevated installation process for your application. But this involves
creating a manifest that sets the appropriate permissions for all users.

Your best bet to resolve this problem and get detailed step-by-step
instructions is to ask your question on the MSDN Forums. The Microsoft
developers who are responsible for designing Vista answer questions there
and they should be able to help.

Here is a link to the Software Development for Windows Vista forums. Pick
the appropriate forum and post your questions there.

MSDN Forums: Software Development for Windows Vista
http://forums.microsoft.com/MSDN/default.aspx?ForumGroupID=24&SiteID=1
 
Back
Top