*Reaper* Posted January 8, 2008 Posted January 8, 2008 (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,00HKCR,"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,00HKLM,"%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 January 8, 2008 by Makave2345 Quote
Kelsenellenelvian Posted January 8, 2008 Posted January 8, 2008 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 #22222222222222So you can have 33333333333333Just please stay away from 1111111111 and 2222222222 Quote
ricktendo Posted January 8, 2008 Posted January 8, 2008 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 ofHKCR,"CLSID\%CLSIDx%\Shell\Open\command",,,"%11%\Executable.exe" Quote
*Reaper* Posted January 9, 2008 Author Posted January 9, 2008 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 RegisterDLLskey...... 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 usedwith 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? Quote
Kelsenellenelvian Posted January 9, 2008 Posted January 9, 2008 :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. Quote
*Reaper* Posted January 10, 2008 Author Posted January 10, 2008 :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.... Quote
ricktendo Posted January 10, 2008 Posted January 10, 2008 If you have kels uberpack just double click the dll Quote
*Reaper* Posted January 12, 2008 Author Posted January 12, 2008 OK...... I spoke a little too soon.....My CPL addon works great "right-clicking" the .inf to install...... But does notinstall during windows setup.....I've searched through the logs and so far the only errors I can find are in thesetupapi.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.INFAddReg =Uninstall.AddReg,CPL.AddReg[Wipcm CPL]OptionDesc ="Windows IP Configuration Manager CPL AddOn"Tip ="Uninstallable CPL AddOn"Modes =0,1,2,3CopyFiles =Main_App,SYS.mainAddReg =Uninstall.AddReg,CPL.AddReg[SourceDisksNames.x86]1="%Wipcm% Files","Wipcm.cab",,"i386"[DestinationDirs]Main_App =16422,%PROG_NAME%SYS.main =16421PNF.File =17Copy.INF =17[SourceDisksFiles]winipcfg.cnt=1winipcfg.exe=1winipcfg.hlp=1winipcfg.GID=1borlndmm.dll=1cc3250mt.dll=1[Main_App]winipcfg.cntwinipcfg.exewinipcfg.hlpwinipcfg.GID[SYS.main]borlndmm.dllcc3250mt.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,00HKLM,"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,00HKCR,"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,00HKLM,"%NAME_SPC%\%CLSID1%",,,"%PROG_NAME%"[UnInstall]BeginPrompt =BeginUnInsPromptEndPrompt =EndUnInsPromptDelFiles =Main_App,SYS.main,PNF.FileDelDirs =Wipcm.DirsDelReg =Obsolete.DelRegProfileItems =Installer.DelShortcut,UnInstall.DelShortcut,Desktop.DelShortcuts,QickL.DelShortcutUpdateInis =sysoc.EditRunPreSetupCommands=Close.Wipcm:1Cleanup =1[BeginUnInsPrompt]Title =%PROG_NAME% UninstallPrompt =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%,0x00000002SubDir=%PROG_NAME%[UnInstall.DelShortcut]Name =Uninstall It,0x00000002SubDir=%PROG_NAME%[Desktop.DelShortcuts]Name=%PROG_NAME%,0x0000000A,16[QickL.DelShortcut]Name =%PROG_NAME%,0x0000000A,26SubDir=%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: Quote
ricktendo Posted January 12, 2008 Posted January 12, 2008 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.INFAddReg =Uninstall.AddReg,CPL.AddReg[Wipcm CPL]BTW why do you have the DelShortcuts if you don't add them Quote
*Reaper* Posted January 12, 2008 Author Posted January 12, 2008 (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.INFAddReg =Uninstall.AddReg,CPL.AddReg[Wipcm]OptionDesc ="Windows IP Configuration Manager CPL AddOn"Tip ="Uninstallable CPL AddOn"Modes =0,1,2,3CopyFiles =Main_App,SYS.mainAddReg =Uninstall.AddReg,CPL.AddRegThe 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 January 12, 2008 by Makave2345 Quote
bober Posted January 18, 2008 Posted January 18, 2008 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.