Jump to content

[Request ] Where & When use "RegisterDLLs" + "RunPostSetupCommands" commands


Ken@fri
 Share

Recommended Posts

I'm little bit confused :huh: 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,EasyCapture

Stamps.CopyFiles =16422,"%STAMPS%"

Snapshots.Files =16389,"EasyCapture images"

PNF.File =17

DefaultDestDir =17

======================== INF 1 ================================

[DefaultInstall]

RegisterDLLs=Install.EzCapture

RegisterDLLs=Make.Dir

[install.EzCapture]

11,,rundll32.exe,,,"advpack.dll,LaunchINFSection %01%\%THIS_FILE%,Install"

[install]

BeginPrompt =BeginInsPrompt

RunPreSetupCommands =Create.i386:1

AddReg =EzCapture.AddReg

CopyFiles =EzCapture.CopyFiles,Stamps.CopyFiles,@%THIS_FILE%

ProfileItems =EzCapture.Deskcut,EzCapture.Startcut,Remove.Startcut,Web.Startcut,EzCapture.url

RunPostSetupCommands =Delete.i386,EzCapture.iConnect

EndPrompt =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.CopyFiles

Modes =0,1,2,3

AddReg =EzCapture.AddReg

ProfileItems =EzCapture.Deskcut,EzCapture.Startcut,Remove.Startcut,Web.Startcut,EzCapture.url

RegisterDLLs =Make.Dir

RunPostSetupCommands =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 =BeginInsPrompt

RunPreSetupCommands =Create.i386:1

AddReg =EzCapture.AddReg

CopyFiles =EzCapture.CopyFiles,Stamps.CopyFiles,@%THIS_FILE%

ProfileItems =EzCapture.Deskcut,EzCapture.Startcut,Remove.Startcut,Web.Startcut,EzCapture.url

RunPostSetupCommands =Delete.i386,Create.Srnshot.Folder:1,EzCapture.iConnect

EndPrompt =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.CopyFiles

Modes =0,1,2,3

AddReg =EzCapture.AddReg

ProfileItems =EzCapture.Deskcut,EzCapture.Startcut,Remove.Startcut,Web.Startcut,EzCapture.url

RunPostSetupCommands =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.txt

FGCBA_0.897_log_EzCpture_INF2.txt

Edited by Ken@fri
Link to comment
Share on other sites

  • 2 weeks later...

 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:P

11,,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. ?

Link to comment
Share on other sites

  • 1 month later...

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