Topic: Require,File  (Read 4589 times)

Require,File
« on: January 05, 2013, 08:51:13 PM »

Lancelot

  • Moderator, Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Require,File,DependencyName

This command only used for File AND its Dependencies, no registry involved  :cool:
Use of Set,%PluginArch%,x86 for 32bit files/dependencies is same with other commands  :great:

Most popularly to be used with CMD dependencies,
giving example:
when you use
Require,File,Xcopy.exe
you do not need to check its dependencies (or write them, which sometimes becomes too long on some files),
 knowing sure Xcopy.exe will work  :lol: :thumbsup:


CMD File dependencies with Require,File,

Following is a list of Require,File, commands for Cmd Utilities,
Additional parameter info given IF required

Quote
Require,File,Cmd.exe
Require,File,Attrib.exe
Require,File,Cacls.exe
Require,File,Chcp.com
Require,File,Chkdsk.exe
//NoFN = Do NOT add ufat.dll untfs.dll
Require,File,Chkdsk.exe,NoFN
Require,File,Chkntfs.exe
Require,File,Choice.exe
Require,File,Cipher.exe
Require,File,Comp.exe
Require,File,Compact.exe
Require,File,Convert.exe
Require,File,DiskComp.com
Require,File,DiskCopy.com
Require,File,Doskey.exe
Require,File,Expand.exe
Require,File,Fc.exe
Require,File,Find.exe
Require,File,Findstr.exe
Require,File,Format.com
//NoFN = Do NOT add ufat.dll untfs.dll
Require,File,Format.com,NoFN
Require,File,FsUtil.exe
Require,File,Help.exe
Require,File,Label.exe
Require,File,Makecab.exe
Require,File,Mode.com
Require,File,More.com
Require,File,MountVol.exe
Require,File,Net.exe
//Net.exe par1: Netmsg.dll - adds Netmsg.dll
//Net.exe par2: Net.hlp - adds Net.hlp on nt5x builds
Require,File,Net.exe,Netmsg.dll,Net.hlp
Require,File,Netsh.exe,[NoHelperDLL]
Require,File,Ntsd.exe
Require,File,Recover.exe
Require,File,Reg.exe
Require,File,Regini.exe
Require,File,Regsvr32.exe
Require,File,Replace.exe
Require,File,Sc.exe
Require,File,Sort.exe
Require,File,Subst.exe
Require,File,Tree.com
Require,File,Xcopy.exe
//-------- CMD Utilities ------------------

Basic GUI Utilities with Require,File,
Basic GUI Utilities are:
Notepad.exe, Regedit.exe, Taskmgr.exe

following demonstrates well  :thumbsup:

Quote
Require,File,Notepad.exe
Require,File,Regedit.exe
Require,File,Taskmgr.exe

Some CMD utilities that is distributed unusually
Following requires web connection in some cases, besides these are popular cmd utilities

Quote
Require,File,whoami.exe
Require,File,RoboCopy.exe

And Following to simplify compatible code writing on plugins

Quote
Require,File,hid.dll

Some Popular 3rd party utilities
Quote
Require,File,sleep.exe
Require,File,nircmd.exe
Require,File,nircmdc.exe
Require,File,AU3381.exe

AU3381.exe is AutoIT v3.3.8.1
https://www.autoitscript.com/site/autoit/
Sleep.exe by Galapo
http://theoven.org/index.php?topic=52.0
nircmd.exe and nircmdc.exe by NirSoft
http://www.nirsoft.net/utils/nircmd.html

Miscellenous Dependencies with Require,File,

These are the criticaly important Dependencies on some cases  :thumbsup:

Quote
Require,File,BrowseForFolder
Require,File,RunOnceDep
Require,File,Rundll32.exe
//--Services.exe always System32 - independent from %PluginArch%
Require,File,Services.exe
Require,File,imagehlp.dll
Require,File,ntdll.dll
Require,File,WinLogonDep
//xpsp2res.dll -- onlyNT5x
Require,File,xpsp2res.dll
//ws03res.dll -- onlyNT5x
Require,File,ws03res.dll
//xpob2res.dll -- onlyNT5x
Require,File,xpob2res.dll
//w03a2409.dll -- onlyNT5x
Require,File,w03a2409.dll
//w03a2XXX.dll -- onlyNT5x
//w03a2XXX.dll  => copy w03a2XXX.dll or w03s2XXX.dll with original lcid (not used)
Require,File,w03a2XXX.dll

Drivers with Require,File,
*
Require,File,fltmgr.sys,[NORegistry],[NOTxtSetup],[fltlib.dll|fltlib.dllSys32],[fltlib.dllWOW64]

When you need fltmgr.sys Just use:
Require,File,fltmgr.sys
 :thumbsup:


NT6x:
only adds fltmgr.sys + optionally fltlib.dll
NT5x:
Require,File,fltmgr.sys
is enough to add fltmgr.sys and add Registry and TxtSetup.sif entries + optionally fltlib.dll ;)

*
Require,File,storport.sys,[CABCompress]

updated storport.sys required to get things work properly on Gena 2k3sp1 or less

This command also returns final storport.sys version at target:
Code: [Select]
Require,File,storport.sys
Echo,storport.sys_Version=%storport.sys_Version%

par3: CABCompress optional (to be on a final plugin like Gena DPS)

Remind: XPx86 do not have such file -> syntax do not add anything to build and %storport.sys_Version%=0.0.0.0

*
Require,File,diskdump.sys,[CABCompress]

updated diskdump.sys required to get things work properly on Gena 2k3sp1 or less

This command also returns final diskdump.sys version at target:
Code: [Select]
Require,File,diskdump.sys
Echo,diskdump.sys_Version=%diskdump.sys_Version%

par3: CABCompress optional (to be on a final plugin like Gena DPS)

Remind: XPx86 do not have such file -> syntax do not add anything to build and %diskdump.sys_Version%=0.0.0.0

WinSxS Dependencies with Require,File,
Currently only for NT5x = Gena
(on NT6x etc. nothing happens, keeping Apps plugin compatibility  :thumbsup: )


Quote
Require,File,GdiPlus.dll
Require,File,Comctl32.dll
Require,File,VisualCPlusPlus
// WinSxS is for only Developers to add All Or AllAvailable WinSxS files...
Require,File,WinSxS,OnlySourceArch
Require,File,WinSxS,x86
Require,File,WinSxS

ps: GdiPlus.dll have par1: ( 10 1000 101000 ) for only Developers


« Last Edit: January 19, 2018, 07:00:34 AM by Lancelot »

Re: Require,File
« Reply #1 on: January 08, 2013, 11:06:15 PM »

Galapo

  • Gena Baker
  • Grand Chef
  • *****
  • Location: Australia
  • Date Registered: Sep 2010
  • Posts: 2207
Fantastic -- these are very helpful macros indeed! :icecream:

Thanks for all the hard work and effort you have putting into getting it all together. :thumbup:

Regards,
Galapo.

Re: Require,File
« Reply #2 on: January 09, 2013, 08:07:27 AM »

anshad

  • Chef
  • ***
  • Date Registered: Apr 2012
  • Posts: 323
Galapo i have some custom made app scripts which uses old syntax,(for ex requirefileQ), do these scripts work with new Gena release?.

Re: Require,File
« Reply #3 on: January 09, 2013, 08:17:38 AM »

Lancelot

  • Moderator, Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
anshad, Require_FileQ is not old, they are different, Require_FileQ adds 1 file, Require,File, adds file with its dependencies

Re: Require,File
« Reply #4 on: January 09, 2013, 08:18:45 AM »

Galapo

  • Gena Baker
  • Grand Chef
  • *****
  • Location: Australia
  • Date Registered: Sep 2010
  • Posts: 2207
Yep, these are different things. The function Require_FileQ is different and still exists to be used as needed.

Regards,
Galapo.

 

Powered by EzPortal