Jump to content

Recommended Posts

Posted (edited)

Ok... These 2 examples were taken from one of Ricks addons.....

[nLite.CPL]
HKCR,"CLSID\%CLSID1%",,0x0,"nLite"
HKCR,"CLSID\%CLSID1%","InfoTip",0x0,"Windows Deployment Tool."
HKCR,"CLSID\%CLSID1%","{305CA226-D286-468e-B848-2B2E8E697B74} 2",0x10001,05,00,00,00
HKCR,"CLSID\%CLSID1%\DefaultIcon",,0x0,"%16422%\nLite\nLite.exe"
HKCR,"CLSID\%CLSID1%\Shell\Open\command",,0x0,"%16422%\nLite\nLite.exe"
HKCR,"CLSID\%CLSID1%\ShellFolder","Attributes",0x10001,00,00,00,00
HKLM,"%NAME_SPAC%\%CLSID1%",,0x0,"nLite"

[Strings]
CLSID1 ="{D14ED2E1-C75B-443c-BD7C-222222222231}"

&

[CPL.AddReg]

HKCR,"CLSID\%CLSIDx%",,,"%WMP11S%"

HKCR,"CLSID\%CLSIDx%","InfoTip",,"Slipstream Windows Media Player 11 into your Windows

Edited by Makave2345
Posted

CLSID7 ="{D14ED2E1-C75B-443c-BD7C-111111111115}"

ok the last section is a made up number I invented the way to do it.

Rick came next so he got to choose #22222222222222

So you can have 33333333333333

Just please stay away from 1111111111 and 2222222222

Posted

And if the executable is in "%WinDir%" or "%WinDir%\system32" you dont have to add a path to the executable, just use something like this:

HKCR,"CLSID\%CLSIDx%\Shell\Open\command",,,"Executable.exe"

Insead of

HKCR,"CLSID\%CLSIDx%\Shell\Open\command",,,"%11%\Executable.exe"

Posted

Ok.... Thanks for everything Kel & Rick.........

Got my CPL Addon working great.....

One other thing that I've been wondering about.....

I've noticed some addons have .dll files that the addon maker uses the RegisterDLLs

key...... It may be just one of the .dll files that the app requires or more than one.....

Then again, the source files may have many .dll files and none of them have been used

with the RegisterDLLs command....

The question is, how do you determine if you need to use the command or not, and

also how to determine WHICH .dll file to use it on?

Posted

:sweatingbullets: I actually chack each dll to see if it is register-able and if it is I go ahead and register it. Alternatively you can use an app like dependancy walker to see if the installed app uses those dlls.

As a general rule of thumb if you can register a dll then it needs registered.

Posted
:sweatingbullets: I actually chack each dll to see if it is register-able and if it is I go ahead and register it.

Remember Kel.... Im a little slow :doh:

So how do you go about checking to see if its register-able?

Thanks again for taking time out to help. I really appreciate it....

Posted

OK...... I spoke a little too soon.....

My CPL addon works great "right-clicking" the .inf to install...... But does not

install during windows setup.....

I've searched through the logs and so far the only errors I can find are in the

setupapi.log file....

#E077 Could not locate a non-empty section [wipcm] when calculating disk space in "C:\WINDOWS\INF\wipcm.inf". Error 0xe0000102:

The required line was not found in the INF.

So where did I screw up?

Here is the .inf......

; **************************************
; * Windows IP Configuration *
; * Manager 2.7.2.80 CPL AddOn *
; * By: Reaper (a.k.a. Makave2345) *
; **************************************

[Version]
Signature=$Windows NT$

[Optional Components]
Wipcm

[DefaultInstall]
CopyFiles =Main_App,SYS.main,Copy.INF
AddReg =Uninstall.AddReg,CPL.AddReg

[Wipcm CPL]
OptionDesc ="Windows IP Configuration Manager CPL AddOn"
Tip ="Uninstallable CPL AddOn"
Modes =0,1,2,3
CopyFiles =Main_App,SYS.main
AddReg =Uninstall.AddReg,CPL.AddReg

[SourceDisksNames.x86]
1="%Wipcm% Files","Wipcm.cab",,"i386"

[DestinationDirs]
Main_App =16422,%PROG_NAME%
SYS.main =16421
PNF.File =17
Copy.INF =17

[SourceDisksFiles]
winipcfg.cnt=1
winipcfg.exe=1
winipcfg.hlp=1
winipcfg.GID=1
borlndmm.dll=1
cc3250mt.dll=1

[Main_App]
winipcfg.cnt
winipcfg.exe
winipcfg.hlp
winipcfg.GID

[SYS.main]
borlndmm.dll
cc3250mt.dll

[Copy.INF]
Wipcm.inf

[Uninstall.AddReg]
HKLM,"SOFTWARE\%UNISTALL%\%CLSID1%_is1","DisplayName",0,"%PROG_NAME% %VERS%"
HKLM,"SOFTWARE\%UNISTALL%\%CLSID1%_is1","DisplayIcon",0,"%16422%\%Wipcm%\winipcfg.exe"
HKLM,"SOFTWARE\%UNISTALL%\%CLSID1%_is1","UninstallString",,"rundll32.exe advpack.dll,LaunchINFSection Wipcm.inf,UnInstall"
HKLM,"SOFTWARE\%UNISTALL%\%CLSID1%_is1","URLInfoAbout",0,"http://www.pkostov.com/wipcfg.html"
HKLM,"SOFTWARE\%UNISTALL%\%CLSID1%_is1","DisplayVersion",0,"%VERS%"
HKLM,"SOFTWARE\%UNISTALL%\%CLSID1%_is1","Publisher",0,"Peter Kostov"
HKLM,"SOFTWARE\%UNISTALL%\%CLSID1%_is1","NoModify",0x00010001,01,00,00,00
HKLM,"SOFTWARE\%UNISTALL%\%CLSID1%_is1","NoRepair",0x00010001,01,00,00,00

[CPL.AddReg]
HKCR,"CLSID\%CLSID1%",,,"%PROG_NAME%"
HKCR,"CLSID\%CLSID1%","InfoTip",,"IP Configuration Tool"
HKCR,"CLSID\%CLSID1%","{305CA226-D286-468e-B848-2B2E8E697B74} 2",0x10001,05,00,00,00
HKCR,"CLSID\%CLSID1%\DefaultIcon",,,"%16422%\%PROG_NAME%\winipcfg.exe"
HKCR,"CLSID\%CLSID1%\Shell\Open\command",,,"%16422%\%PROG_NAME%\winipcfg.exe"
HKCR,"CLSID\%CLSID1%\ShellFolder","Attributes",0x10001,00,00,00,00
HKLM,"%NAME_SPC%\%CLSID1%",,,"%PROG_NAME%"

[UnInstall]
BeginPrompt =BeginUnInsPrompt
EndPrompt =EndUnInsPrompt
DelFiles =Main_App,SYS.main,PNF.File
DelDirs =Wipcm.Dirs
DelReg =Obsolete.DelReg
ProfileItems =Installer.DelShortcut,UnInstall.DelShortcut,Desktop.DelShortcuts,QickL.DelShort
cut
UpdateInis =sysoc.Edit
RunPreSetupCommands=Close.Wipcm:1
Cleanup =1

[BeginUnInsPrompt]
Title =%PROG_NAME% Uninstall
Prompt =Are you sure you want to completely remove %PROG_NAME% and all of its components?
ButtonType=YESNO

[EndUnInsPrompt]
Prompt=%PROG_NAME% was successfully removed from your computer.

[Installer.DelShortcut]
Name =%PROG_NAME%,0x00000002
SubDir=%PROG_NAME%

[UnInstall.DelShortcut]
Name =Uninstall It,0x00000002
SubDir=%PROG_NAME%

[Desktop.DelShortcuts]
Name=%PROG_NAME%,0x0000000A,16

[QickL.DelShortcut]
Name =%PROG_NAME%,0x0000000A,26
SubDir=%QUICK%

[Close.Wipcm]
TSKILL winipcfg

[PNF.File]
Wipcm.PNF

[sysoc.Edit]
%17%\sysoc.inf,Components,Wipcm=*

[Obsolete.DelReg]
HKLM,"SOFTWARE\%UNISTALL%\%CLSID1%_is1"
HKCR,"CLSID\%CLSID1%"
HKLM,"%NAME_SPC%\%CLSID1%"

[Wipcm.Dirs]
%16422%/%PROG_NAME%

[Strings]
CLSID1 ="{D14ED2E1-C75B-443c-BD7C-333333333301}"
PROG_NAME="Windows IP Configuration Manager"
QUICK ="Microsoft\Internet Explorer\Quick Launch"
UNISTALL="Microsoft\Windows\CurrentVersion\Uninstall"
NAME_SPC="SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace"
VERS ="2.7.2.80"

AHHHHHH..... I need a BEER!!!! :help:

Posted

Thats because your OCEntry (Optional Components Entry) is named wrong

[Optional Components]

Wipcm ;<-You have to make a section with this name, the one bellow is wrong

[DefaultInstall]

CopyFiles =Main_App,SYS.main,Copy.INF

AddReg =Uninstall.AddReg,CPL.AddReg

[Wipcm CPL]

BTW why do you have the DelShortcuts if you don't add them

Posted (edited)

AAAHHHHHHHHHH!!!!!!

I put the CPL @ the end of it for a note...... to myself (I was working with 2 different infs...)

And I forgot to take it off...... !#@$

[Version]
Signature=$Windows NT$

[Optional Components]
Wipcm

[DefaultInstall]
CopyFiles =Main_App,SYS.main,Copy.INF
AddReg =Uninstall.AddReg,CPL.AddReg

[Wipcm]
OptionDesc ="Windows IP Configuration Manager CPL AddOn"
Tip ="Uninstallable CPL AddOn"
Modes =0,1,2,3
CopyFiles =Main_App,SYS.main
AddReg =Uninstall.AddReg,CPL.AddReg

The delshortcuts are leftover from the inf I made for a regular addon and not a CPL addon....

Another thing I forgot to remove!!!!!!!!

Thanks Rick....

Edited by Makave2345
Posted

was looking at the first coupel of posts and conserning clsid and guids, these are keys to be unique,so ive had a tendancy to use generators,have seen duplicate entries users have just copy pasted and resulted in conflicts.so thats why i use this:clsid web gen

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.

×
×
  • Create New...