Jump to content

[help] icon shortcut


1st
 Share

Recommended Posts

I need hep for my inf missising icon shortcut

this my inf

;The Ultimate HD Codec

[Version]
Signature=$Windows NT$

[Optional Components]
CoreCodec

[SourceDisksNames]
1= %SourceFileDesc%,,0

[DefaultInstall]
ProfileItems=CoreCodec.Addshortcut
CopyFiles=CoreCodec.copy
CopyINF=CoreCodec.inf
AddReg=CoreCodec.AddReg
registerDlls=regCodec.RegSvr

[CoreCodec]
OptionDesc="CoreCodec"
Tip="The Ultimate HD Codec"
Modes=0,1,2,3
ProfileItems=CoreCodec.Addshortcut
CopyFiles=CoreCodec.copy
CopyINF=CoreCodec.inf
AddReg=CoreCodec.AddReg
registerDlls=regCodec.RegSvr

[DestinationDirs]
CoreAVCDecoder.ax=11
CoreCodec.inf=17
CoreAVC.ico=11

[SourceDisksFiles]
CoreAVCDecoder.ax=1
CoreAVC.ico=1
CoreCodec.inf=1

[CoreCodec.copy]
CoreAVCDecoder.ax
CoreAVC.ico

[CoreCodec.inf]
CoreCodec.inf

[CoreCodec.AddReg]
HKLM,"SOFTWARE\CoreCodec",,0x00000010
HKLM,"SOFTWARE\CoreCodec\CoreAVC Pro","User",0,"Registered User"
HKLM,"SOFTWARE\CoreCodec\CoreAVC Pro","Serial",0,"xxxxx-xxxxx-xxxx-xxxxx-xxxxx"
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Drivers32","CoreAVC",0,"CoreAVCDecoder.ax"
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\drivers.desc","CoreAVCDecoder.ax",0,"H264 CoreAVC"
[regCodec.RegSvr]
11,,CoreAVCDecoder.ax, 1

[CoreCodec.Addshortcut]
Name =CoreAVC
CmdLine =11,,rundll32.exe "CoreAVCDecoder.ax,Configure"
SubDir =CoreAVC
icon =11,,CoreAVC.ico
WorkingDir =11
InfoTip = "The Ultimate HD Codec"

[Strings]
SourceFileDesc = "Windows Media Files"

sorry bad english :D

Link to comment
Share on other sites

OK you need to tell me what is the directory of the DLL or EXE file that has the icon is because you have to specify the path and number, also how manny icons does that file have in it

Here is an example using a icon in shell32.dll (Its Icon number 224 but you don't use that number, you use the order starting from zero)

[CoreCodec.Addshortcut]
Name =CoreAVC
CmdLine =11,,rundll32.exe "CoreAVCDecoder.ax,Configure"
SubDir =CoreAVC
WorkingDir =11
IconPath =11,,shell32.dll;<- Path to file with icon
IconIndex =115;<- number/order of icon in shell32.dll
InfoTip = "The Ultimate HD Codec"

Link to comment
Share on other sites

OH! OK I just noticed that :P

ICO files can be used also (for these you dont need IconIndex)

;The Ultimate HD Codec

[Version]
Signature=$Windows NT$

[Optional Components]
CoreCodec

[SourceDisksNames.x86]
1= "%SourceFileDesc%","NameOfCab.cab",,"i386" ; <- Change with the name of your cab archive

[DefaultInstall]
ProfileItems=CoreCodec.Addshortcut
CopyFiles=CoreCodec.copy
CopyINF=CoreCodec.inf
AddReg=CoreCodec.AddReg
registerDlls=regCodec.RegSvr

[CoreCodec]
OptionDesc="CoreCodec"
Tip="The Ultimate HD Codec"
Modes=0,1,2,3
ProfileItems=CoreCodec.Addshortcut
CopyFiles=CoreCodec.copy
CopyINF=CoreCodec.inf
AddReg=CoreCodec.AddReg
registerDlls=regCodec.RegSvr

[DestinationDirs]
CoreCodec.copy=11
CoreCodec.inf=17

; here you list the section names not the filenames
[SourceDisksFiles]
CoreAVCDecoder.ax=1
CoreAVC.ico=1
;CoreCodec.inf=1 <- not needed

[CoreCodec.copy]
CoreAVCDecoder.ax
CoreAVC.ico

[CoreCodec.inf]
CoreCodec.inf

[CoreCodec.AddReg]
HKLM,"SOFTWARE\CoreCodec",,0x00000010
HKLM,"SOFTWARE\CoreCodec\CoreAVC Pro","User",0,"Registered User"
HKLM,"SOFTWARE\CoreCodec\CoreAVC Pro","Serial",0,"xxxxx-xxxxx-xxxx-xxxxx-xxxxx"
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Drivers32","CoreAVC",0,"CoreAVCDecoder.ax"
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\drivers.desc","CoreAVCDecoder.ax",0,"H264 CoreAVC"
[regCodec.RegSvr]
11,,CoreAVCDecoder.ax,1

[CoreCodec.Addshortcut]
Name =CoreAVC
CmdLine =11,,rundll32.exe "CoreAVCDecoder.ax,Configure"
SubDir =CoreAVC
WorkingDir =11
IconPath =11,,CoreAVC.ico
InfoTip = "The Ultimate HD Codec"

[Strings]
SourceFileDesc = "Windows CD/DVD-Rom"

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...