Jump to content

Adding Program To Control Panel


Denney

Recommended Posts

I need some help adding a program to the contol panel. I've created a Startup Manager program and have added it to the control panel with the following registry entries:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\CLSID\{373419B5-F3F9-4D20-9A45-6D4898CE9E04}]
@="Startup Manager"
"InfoTip"="Manages all programs that startup with a computer."

[HKEY_CLASSES_ROOT\CLSID\{373419B5-F3F9-4D20-9A45-6D4898CE9E04}\DefaultIcon]
@="%programfiles%\\Mantra Software Australia\\StartupManager\\StartupManager.exe,0"

[HKEY_CLASSES_ROOT\CLSID\{373419B5-F3F9-4D20-9A45-6D4898CE9E04}\Shell\Open\command]
@="%programfiles%\\Mantra Software Australia\\StartupManager\\StartupManager.exe"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{373419B5-F3F9-4D20-9A45-6D4898CE9E04}]
@="Startup Manager"

It appears, but the problem is when I try and run it from the control panel, I get an "Access is Denied" error.

Does anyone have any information on this or any way to fix it?

Link to comment
Share on other sites


Nevermind. I fixed it.

I placed the StartupManager.exe file in the system32 directory and now it works.

Obviously the "Program Files" folder doesn't have the required permission to run programs via the control panel.

Link to comment
Share on other sites

Yeah. No matter what account you use, you'll get an "Access is denied" error.

system32 is the only folder so far that works properly. Ahwell, I don't mind... I only have one exe file so just placing it in the system32 directory doesn't matter.

Link to comment
Share on other sites

Maybe you can modify this to your purpose.

Examples of a similar sort of add to CPL:

;Show TweakUI at Control Panel
[HKEY_CLASSES_ROOT\CLSID\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C17}]
@="TweakUI XP"
"InfoTip"="Starts the TweakUI program which, allows you to customize advanced options and Settings in Windows to your liking"
[HKEY_CLASSES_ROOT\CLSID\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C17}\DefaultIcon]
@="%SystemRoot%\\\\System32\\\\tweakui.exe,0"
[HKEY_CLASSES_ROOT\CLSID\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C17}\Shell\Open\command]
@="tweakui.exe"
[HKEY_CLASSES_ROOT\CLSID\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C17}\ShellFolder]
"Attributes"=dword:00000030
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{D14ED2E1-C75B-443c-BD7C-FC03B2F08C17}]
@="Tweak UI

;Clipboard (becomes clipbook) Control Panel Icon
[HKEY_CLASSES_ROOT\CLSID\{4de05bc9-69f6-4bfc-8094-5e1069f2f51f}]
@="Clipboard"
"InfoTip"="Starts the Clipboard"
[HKEY_CLASSES_ROOT\CLSID\{4de05bc9-69f6-4bfc-8094-5e1069f2f51f}\DefaultIcon]
@="%SystemRoot%\\\\System32\\\\clipbrd.exe,0"
[HKEY_CLASSES_ROOT\CLSID\{4de05bc9-69f6-4bfc-8094-5e1069f2f51f}\Shell\Open\command]
@="clipbrd.exe"
[HKEY_CLASSES_ROOT\CLSID\{4de05bc9-69f6-4bfc-8094-5e1069f2f51f}\ShellFolder]
"Attributes"=dword:00000030
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{4de05bc9-69f6-4bfc-8094-5e1069f2f51f}]
@="Add Clipboard to the Control Panel"

Hoping this helps....

Link to comment
Share on other sites

  • 5 months later...

The only way I've found to add programs to the Control Panel is to use CMD or BAT files with "REG ADD" commands in it. It ensures that the correct path to the program is expanded before it is put in the registry. For example, this is how I add the "Volume Control" applet to the Control Panel:

echo Adding "Volume Control" application to Control Panel....
set CLSID={A27BAB2C-1EF5-4009-B6DA-53F58DEAEAA3}
reg add hkcr\clsid\%CLSID% /v "" /t REG_SZ /d "Volume Control" /f > nul
reg add hkcr\clsid\%CLSID% /v InfoTip /t REG_SZ /d "Allows user to adjust the volume of the sound card" /f > nul
reg add hkcr\clsid\%CLSID%\DefaultIcon /v "" /t REG_SZ /d "\"%systemroot%\system32\sndvol32.exe\"" /f  > nul
reg add hkcr\clsid\%CLSID%\Shell\Open\Command /v "" /t REG_SZ /d "\"%systemroot%\system32\sndvol32.exe\"" /f  > nul
reg add %NameSpace%\%CLSID% /v "" /t REG_SZ /d "Volume Control" /f > nul

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...