Click here to Skip to main content
15,311,014 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I install program and register it under

As I understand to add program to this menu I have to add it to

But my installer doesn't allow me to do it both HKCU and HKCR.

What I have tried:

So i add it via file association
<pre>   <RegistryValue Root="HKCU" Key="HKEY_CLASSES_ROOT\Directory\Background\shell\edit.NAME.exe" Value="Some text" Type="string" />
            <RegistryValue Root="HKCU" Key="HKEY_CLASSES_ROOT\Directory\Background\shell\edit.Name.exe\command" Value=""[INSTALLDIR]NAME.exe" "%1"" Type="string" />

But in this case when i select more then one file i have to select my program from the list each time. Is there any way to avoid it?
Maciej Los 10-Mar-21 16:09pm
Have you tried to run installer with admin rights?
agealex 11-Mar-21 2:51am
It's running with admin rights. The question is where to write in registry for HKCU .

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900