Topic: Require_FileQ  (Read 2890 times)

0 Members and 1 Guest are viewing this topic.

Require_FileQ
« on: October 15, 2010, 03:47:09 PM »

Lancelot

  • Moderator, Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 6935
For ALL projects

Require_FileQ,filename

Simply, this copy file from Source--System32 to Target--System32

Syntax only designed to copy 1 File.


+
Require_FileQ,filename + %PluginArch%

%PluginArch% values can be x86 or Empty.

Example:
*
Require_FileQ,clbcatq.dll

*
If you are creating a 32bit application plugin that naturally requires 32bit version of clbcatq.dll , than :
Code: [Select]
Set,%PluginArch%,x86
Require_FileQ,clbcatq.dll

*
If you are creating a multi architecture plugin (Generally 32bit + 64bit application, like 7-Zip plugin), than :
Code: [Select]
Require_FileQ,clbcatq.dll








Note:
On NT6x Require_FileQ also adds associated .mui files.

Note:
On NT6x Require_FileQ, have en-US fallback feature for mui files (If local mui not found, en-US mui checked..)  :thumbsup:
On NT6x if file(s missing) Require_FileQ only gives warning, see Reply74 here http://theoven.org/index.php?topic=541.msg11412#msg11412

WARNING:
1)
NEVER use folder name
Require_FileQ,folder\filename
(it may look working but it is NOT...)

Reason Behind:
Require_FileQ created for max speed for most common (system32/syswow64) single file requirements,
 adding such options will slow down significantly...

Tip:
such folder thingy only required by project specific plugins (like Core or Component plugins),
 where direct commands can be used more effectively (faster cleaner)  :cool:
  You can find such usage examples on many Components plugins  :great:


Tip Reminding:
Require,Font
Require,Drivers
Require,Inf
available
See http://theoven.org/index.php?topic=42.0

Tip Reminding:
Call,FileCopyMUI
available,
See http://theoven.org/index.php?topic=45.0

2)
Do NOT use with Wildcards (? and/or *) (neither Require_FileQ )
ex:
Require_FileQ,network*.dll
Reason behind not having wildcard support on Require_FileQ:
* adding such support to Macro Library would result with very much speed down.
* it can not be achived with wb syntax as common easly
* even if demanded highly, Require,WildCard can be added, but only 2 or 3 lines requires such thing overall for common plugins.
Advice: So far using direct commands used on plugins that requires wildcard, follow the known path ;).






* Rare Special Case :
Quote
Advanced plugin authors - Project specific or Personal Plugins :

If for some reason you require both version of a file in a single plugin (mostly in project specific plugins)
Code: [Select]
Require_FileQ,clbcatq.dll
Set,%PluginArch%,x86
Require_FileQ,clbcatq.dll
OR
Code: [Select]
Set,%PluginArch%,x86
Require_FileQ,clbcatq.dll
Set,%PluginArch%,
Require_FileQ,clbcatq.dll



 :cheers:
« Last Edit: October 25, 2016, 04:41:23 AM by Lancelot »

Re: Require_FileQ
« Reply #1 on: October 21, 2015, 11:05:40 PM »

Kvark

  • Jr. Chef
  • **
  • Date Registered: Sep 2015
  • Posts: 69
In what section of my script should I place the string Require_FileQ?

Re: Require_FileQ
« Reply #2 on: October 21, 2015, 11:07:49 PM »

Lancelot

  • Moderator, Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 6935
Require_FileQ

available on all processed sections inside plugin,

Like all Macro Library commands, syntax available on all projects.  :thumbsup:

Re: Require_FileQ
« Reply #3 on: October 21, 2015, 11:28:42 PM »

Kvark

  • Jr. Chef
  • **
  • Date Registered: Sep 2015
  • Posts: 69
Require_FileQ

available on all processed sections inside plugin,

Like all Macro Library commands, syntax available on all projects.  :thumbsup:

Thank you!

Re: Require_FileQ
« Reply #4 on: October 22, 2015, 02:32:11 AM »

Kvark

  • Jr. Chef
  • **
  • Date Registered: Sep 2015
  • Posts: 69
Lancelot,

I've just made a simple plugin as per your instructions that will require files needed for Firefox and Chrome. But it fails to copy the files.
Please inspect the code to find what's wrong:

Code: [Select]
[main]
Title=Add Files
Description=This script will add necessary system files to your compilation from source
Selected=True
Level=5
Version=1

[process]
Set,%PluginArch%,x86
Require_FileQ,hid.dll
Require_FileQ,pdh.dll
Require_FileQ,pdhui.dll
Require_FileQ,hidserv.dll

Set,%PluginArch%,
Require_FileQ,hid.dll
Require_FileQ,pdh.dll
Require_FileQ,pdhui.dll
Require_FileQ,hidserv.dll

Re: Require_FileQ
« Reply #5 on: October 22, 2015, 04:09:15 AM »

Lancelot

  • Moderator, Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 6935
*
to create simple plugin, use

Utils\"PC Packed"
--> e Button at right-bottom

*
Correct terminology we use around:
Description=This Plugin will add necessary system files to your compilation from source

or better say
Description=This Plugin adds some Additional Dependencies.

+
Title also may result with misunderstanding, there is already "Additional Files" plugin(s)...


**
Above works nicely here, you probably need to test with "Big Blue" button


Here is plugin I quickly made (and test ok) with minor addition:




Code: [Select]
[Main]
Title=Add More Dependencies
Type=Plugin
Author=Kvark
Description=This Plugin adds some Additional Dependencies to get more portable.
Credits=http://TheOven.org
Version=001
Download_Level=2
Level=5
Selected=False
Mandatory=False
NoWarning=False
Contact=http://TheOven.org
Date=2015.10.22
Depend=
Disable=
CertifiedBy=
Certification=
HistoryNotes01=
HistoryNotes51='Plugin Creator' http://TheOven.org/index.php?topic=178
History001=Kvark 2015.10.22 Plugin created

[InterFace]

[Variables]

[Process]
Require_FileQ,hid.dll
Require_FileQ,pdh.dll
Require_FileQ,pdhui.dll
Require_FileQ,hidserv.dll
//-
If,Not,%SourceArch%,Equal,x86,Begin
If,%TargetWOW64%,Equal,x86,Run,%ScriptFile%,Process_WoW64
End

[Process_WoW64]
Set,%PluginArch%,x86
Require_FileQ,hid.dll
Require_FileQ,pdh.dll
Require_FileQ,pdhui.dll
Require_FileQ,hidserv.dll

[AuthorEncoded]
IcojamBlueBitsDocumentblue0048048.ico=4312,5750
Logo=IcojamBlueBitsDocumentblue0048048.ico

[EncodedFile-AuthorEncoded-IcojamBlueBitsDocumentblue0048048.ico]
lines=1
0=eJztl2dU1eeWxsmaD/fjfJhcjUrvvVixIeUAh3pdN7l3rjNmknFcYMQalaIoKnZFRFRAEBvgkSpwaAoKogKKFXtsgAWxt5jM3Ow9z37PMXHly9zFyXyYNfeftfMnh8D6Pft59n5fzMw+wT/e3mb4t7WZzsHMbJCZmZkzCh+ZfW1m+Fye5Q5mf3/+Dz3z/mI7MjPOZWXWXDdVOfN/qZ0LpDx+rrxFhspf5LUyP8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VJVh4nFP1TM7PSsx1yilNdcosKXbJTy7NTc0rSQLyDQxMLIBILzM5n2EUDFOwTxVClwlgl4+uXq3OwAQA3ecQXvc1/IQBAAAAAgAAAD4AAAB2EAAAAAAAAAEAAAAAAAAAAAAAAA

[InterfaceEncoded]

[EncodedFolders]
Folder

[Folder]


Re: Require_FileQ
« Reply #6 on: October 22, 2015, 08:15:32 AM »

Kvark

  • Jr. Chef
  • **
  • Date Registered: Sep 2015
  • Posts: 69
Thanks a lot, Lacelot!

Re: Require_FileQ
« Reply #7 on: October 22, 2015, 10:39:14 AM »

Lancelot

  • Moderator, Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 6935
Lancelot 
:horse:
« Last Edit: October 22, 2015, 10:39:25 AM by Lancelot »

Re: Require_FileQ
« Reply #8 on: October 22, 2015, 09:36:53 PM »

Kvark

  • Jr. Chef
  • **
  • Date Registered: Sep 2015
  • Posts: 69
Sorry, friend, I missed this letter due to a rush  :huh:.

 

Powered by EzPortal