Jump to content

Recommended Posts

Posted

During my unattended Windows XP Professional setup, LightScribe Direct Disc Labeling is installed silently. My custom silent installer deletes all created shortcuts in the Start Menu and imports the following REG-file to configure the software and to add an icon for the "LightScribe Control Panel" to the Control Panel. Everything works fine, except adding the icon to the Control Panel... well, actually, that works fine too, but when clicking the newly created icon I get an error message: "Access denied". How do I properly add a new icon to the Control Panel; what is wrong with the following:

Windows Registry Editor Version 5.00

; DISABLE NOTIFICATION MESSAGES
[HKEY_CURRENT_USER\Software\LightScribe\LightScribe Control Panel]
"DisplayBalloons"=dword:00000000

; DISABLE LIGHTSCRIBE CONTROL PANEL TO START AUTOMATICALLY
[HKEY_CURRENT_USER\Software\LightScribe\LightScribe Control Panel]
"RunAtLogin"=dword:00000000

; ADD LIGHTSCRIBE TO CONTROL PANEL
[HKEY_CLASSES_ROOT\CLSID\{5197646C-00EA-4307-A067-61319EBBE499}]
@="LightScribe"
"InfoTip"="LightScribe Direct Disc Labeling"

[HKEY_CLASSES_ROOT\CLSID\{5197646C-00EA-4307-A067-61319EBBE499}\DefaultIcon]
@="%CommonProgramFiles%\\LightScribe\\LightScribeControlPanel.exe"

[HKEY_CLASSES_ROOT\CLSID\{5197646C-00EA-4307-A067-61319EBBE499}\Shell]

[HKEY_CLASSES_ROOT\CLSID\{5197646C-00EA-4307-A067-61319EBBE499}\Shell\Open]

[HKEY_CLASSES_ROOT\CLSID\{5197646C-00EA-4307-A067-61319EBBE499}\Shell\Open\Command]
@="%CommonProgramFiles%\\LightScribe\\LightScribeControlPanel.exe"

[HKEY_CLASSES_ROOT\CLSID\{5197646C-00EA-4307-A067-61319EBBE499}\ShellFolder]
"Attributes"=dword:00000030

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{5197646C-00EA-4307-A067-61319EBBE499}]
@="LightScribe"

:(

post-152562-1191606786_thumb.jpg


Posted

I could not get past that error no matter what I tried so I went a completly different path:

I made a cpl and cpi file for it and it works fine that way!

Just add these file to the system32 dir...

Posted

Thank you very much. Will see if it works soon, maybe this evening.

One question though, how do you make these files?

I like to make everything myself, hence the question ;)

Posted

Hi Arie! :)

[HKEY_CLASSES_ROOT\CLSID\{5197646C-00EA-4307-A067-61319EBBE499}\DefaultIcon]
@="%CommonProgramFiles%\\LightScribe\\LightScribeControlPanel.exe"

[HKEY_CLASSES_ROOT\CLSID\{5197646C-00EA-4307-A067-61319EBBE499}\Shell\Open\Command]
@="%CommonProgramFiles%\\LightScribe\\LightScribeControlPanel.exe"

I think you have to use REG_EXPAND_SZ Registry Values here.

Best regards,

Oisin

Posted (edited)

Kel I think Oisin is correct, try this one:

HKCU,"Software\LightScribe\LightScribe Control Panel","DisplayBalloons",0x10001,00,00,00,00
HKCU,"Software\LightScribe\LightScribe Control Panel","RunAtLogin",0x10001,00,00,00,00
HKCR,"CLSID\{5197646C-00EA-4307-A067-61319EBBE499}",,0x0,"LightScribe"
HKCR,"CLSID\{5197646C-00EA-4307-A067-61319EBBE499}","InfoTip",0x0,"LightScribe Direct Disc Labeling"
HKCR,"CLSID\{5197646C-00EA-4307-A067-61319EBBE499}\DefaultIcon",,0x20000,"%%CommonProgramFiles%%\LightScribe\LightScribeControlPanel.exe"
HKCR,"CLSID\{5197646C-00EA-4307-A067-61319EBBE499}\Shell\Open\Command",,0x20000,"%%CommonProgramFiles%%\LightScribe\LightScribeControlPanel.exe"
HKCR,"CLSID\{5197646C-00EA-4307-A067-61319EBBE499}\ShellFolder","Attributes",0x10001,30,00,00,00
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{5197646C-00EA-4307-A067-61319EBBE499}",,0x0,"LightScribe"

BTW to fix the icon try something like this (use the actual Icon number inside the executable):

...b1-940d-96973a50e9e0}\DefaultIcon",,0x20000,"%%ProgramFiles%%\%SIDEBAR%\sidebar.exe,-100"
Edited by ricktendo64
  • 3 weeks later...
Posted
I could not get past that error no matter what I tried so I went a completly different path:

I made a cpl and cpi file for it and it works fine that way!

Just add these file to the system32 dir...

Tested it. It does indeed add an icon to the Control Panel, but the name of the icon is wrong; it should be LightScribe, instead of LiteScribe. Besides that, the icon seems to look different compared to the normal LightScribe icon; it seems to have some kind of border? Is it possible for you to please fix these two points?

Posted

Going off of the official icon for the control panel it does have a border just browse the LightScribe dir in you program files\common folder and you'll see that. So I cannot do much about that unless I rebuilt the icon without a border.

I did rebuild the cpl & cpi files though so the name is right now sorry about that.

Posted

You can create control panel applets by the following reg file. This is c-regedit.reg. It adds regedit.exe to the control panel, You need to use different CLSID's for different items. I use microsoft's CLSID for generating these.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\CLSID\{819C8FC5-3D36-4d9a-B626-5CE2AD811463}]
@="Registry"
"InfoTip"="Registry Editor"
"{305CA226-D286-468e-B848-2B2E8E697B74} 2"=dword:00000005
; fiddle with the end -05 to change the location in the control categories.

[HKEY_CLASSES_ROOT\CLSID\{819C8FC5-3D36-4d9a-B626-5CE2AD811463}\DefaultIcon]
@="regedit.exe,0"

[HKEY_CLASSES_ROOT\CLSID\{819C8FC5-3D36-4d9a-B626-5CE2AD811463}\Shell]

[HKEY_CLASSES_ROOT\CLSID\{819C8FC5-3D36-4d9a-B626-5CE2AD811463}\Shell\Open]

[HKEY_CLASSES_ROOT\CLSID\{819C8FC5-3D36-4d9a-B626-5CE2AD811463}\Shell\Open\command]
@="regedit.exe"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{819C8FC5-3D36-4d9a-B626-5CE2AD811463}]
@="Add Registry to Control Panel"

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...