Ken@fri Posted October 7, 2008 Posted October 7, 2008 (edited) I'm little bit confused and need your lightnings.What is correct way :============COMMON SECTIONS OF EACH INF FILE=================[Version]Signature="$Windows NT$"[Optional Components]EasyCapture[beginInsPrompt]Title ="::. %InsTitle% .::"Prompt ="%InsQuest%"ButtonType=YESNO[EndInsPrompt]Prompt="%EndInsPrompt%"[Create.i386]CMD /Q /C MD """%01%\i386""" & COPY /D /Y """%01%\*.cab""" """%01%\i386"""[Delete.i386]RUNDLL32 advpack.dll,DelNodeRunDLL32 %01%\i386,8[sourceDisksNames.x86]1="Easy Capture Setup Files","EzCpture.cab",,"i386"[DestinationDirs]EzCapture.CopyFiles =16422,EasyCaptureStamps.CopyFiles =16422,"%STAMPS%"Snapshots.Files =16389,"EasyCapture images"PNF.File =17DefaultDestDir =17======================== INF 1 ================================[DefaultInstall]RegisterDLLs=Install.EzCaptureRegisterDLLs=Make.Dir[install.EzCapture]11,,rundll32.exe,,,"advpack.dll,LaunchINFSection %01%\%THIS_FILE%,Install"[install]BeginPrompt =BeginInsPromptRunPreSetupCommands =Create.i386:1AddReg =EzCapture.AddRegCopyFiles =EzCapture.CopyFiles,Stamps.CopyFiles,@%THIS_FILE%ProfileItems =EzCapture.Deskcut,EzCapture.Startcut,Remove.Startcut,Web.Startcut,EzCapture.urlRunPostSetupCommands =Delete.i386,EzCapture.iConnectEndPrompt =EndInsPrompt[Make.Dir]11,,rundll32.exe,,,"advpack.dll,LaunchINFSection %THIS_FILE%,SnapShots.Folder"[snapShots.Folder]RunPostSetupCommands=Create.Srnshot.Folder:1[Create.Srnshot.Folder]CMD /Q /C MD """%16389%\EasyCapture images"""[EasyCapture]OptionDesc ="EasyCapture"Tip ="Powerful and easy-to-use free screen capture"CopyFiles =EzCapture.CopyFiles,Stamps.CopyFilesModes =0,1,2,3AddReg =EzCapture.AddRegProfileItems =EzCapture.Deskcut,EzCapture.Startcut,Remove.Startcut,Web.Startcut,EzCapture.urlRegisterDLLs =Make.DirRunPostSetupCommands =EzCapture.iConnect;----------------------------- END INF 1 -----------------------**** FGCBA 0.897 log report **** - !- 3 error(s): - Section [snapshots.Files] referenced in [DestinationDirs] does not exist in EzCpture.inf! - Section [DefaultDestDir] referenced in [DestinationDirs] does not exist in EzCpture.inf! - Invalid syntax in [Make.Dir] section: (11,,rundll32.exe,,,"advpack.dll,LaunchINFSection %THIS_FILE%,SnapShots.Folder")!-----------------------------------------------------------------------============================== INF 2 ============================[DefaultInstall]RegisterDLLs=Install.EzCapture[install.EzCapture]11,,rundll32.exe,,,"advpack.dll,LaunchINFSection %01%\%THIS_FILE%,Install"[install]BeginPrompt =BeginInsPromptRunPreSetupCommands =Create.i386:1AddReg =EzCapture.AddRegCopyFiles =EzCapture.CopyFiles,Stamps.CopyFiles,@%THIS_FILE%ProfileItems =EzCapture.Deskcut,EzCapture.Startcut,Remove.Startcut,Web.Startcut,EzCapture.urlRunPostSetupCommands =Delete.i386,Create.Srnshot.Folder:1,EzCapture.iConnectEndPrompt =EndInsPrompt[Create.Srnshot.Folder]CMD /Q /C MD """%16389%\EasyCapture images"""[EasyCapture]OptionDesc ="EasyCapture"Tip ="Powerful and easy-to-use free screen capture utility"CopyFiles =EzCapture.CopyFiles,Stamps.CopyFilesModes =0,1,2,3AddReg =EzCapture.AddRegProfileItems =EzCapture.Deskcut,EzCapture.Startcut,Remove.Startcut,Web.Startcut,EzCapture.urlRunPostSetupCommands =Create.Srnshot.Folder:1,EzCapture.iConnect----------------------------------- END INF 2---------------------------**** FGCBA 0.897 log report **** !- 1 error(s): - Section [DefaultDestDir] referenced in [DestinationDirs] does not exist in EzCpture.inf! !- 1 error(s).-------------------------------------------------------------------------INF 1 & INF 2 seems to work fine, but I need to make it perfect.Thanx for ur help. :icon_cool:FGCBA_0.897_log_EzCpture_INF1.txtFGCBA_0.897_log_EzCpture_INF2.txt Edited October 7, 2008 by Ken@fri Quote
bigfatroundguy Posted October 19, 2008 Posted October 19, 2008 amazing coincidence, i was asking the same question only days ago regarding an addon i am trying to create and i think ricktendo64 summed it up best at http://www.wincert.net/forum/index.php?s=&...ost&p=33296 and you might even be able to simplify your constructed commands. Quote
MrNxDmX Posted October 20, 2008 Posted October 20, 2008 Section [DefaultDestDir] referenced in [DestinationDirs] does not exist in EzCpture.inf!FGCBA cannot handle that value. Just delete this line when you're running fgcba, then re-enable it in your inf.DefaultDestDir =17 (required for real-time addon installing, not windows setup)You've used Make.Dir section as a DLL register section. SO fgcba will look for dll syntax. And this doesnt seem to be a dll register syntax:P11,,rundll32.exe,,,"advpack.dll,LaunchINFSection %THIS_FILE%,SnapShots.Folder"My idea (delete while fgcba check, then re-enable) will help you with this too. I dont know any other way to eliminate this.- Section [Snapshots.Files] referenced in [DestinationDirs] does not exist in EzCpture.inf!As fas as i can see you're really not using it anywhere. ? Quote
Ken@fri Posted November 22, 2008 Author Posted November 22, 2008 @ bigfatroundguyThanx 4 your help. Link u gave was very usefull.@ MrNxDmXI've rechecked my INF, found all errors /mistakes & fixed it. Thanx. 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.