One logical issue is:
Depending on the source CD (x86 or x64) different files have to be copied to the %target%
One of these 'copied' is the WB command 'ExtractFile'.
To help here, I made the following changes to nativeEx:
- !Fundamentals.Script detects the type of the source CD and writes it into the variable %ProjectArchitecture% (already used by Lancelot in individual scripts)
- !Fundamentals.Script got an additional section:
[XExtract] //ScriptFile,folder,file,target StrFormat,REPLACE,#3,.,_%projectarchitecture%.,%nFile% ExtractFile,#1,#2,%nFile%,#4 If,EXISTFILE,#4\#3,FileDelete,#4\#3 FileRename,#4\%nFile%,#4\#3
- Attach the two versions of RRamDisk.sys as RRamDisk_x86.sys and RRamDisk_x64.sys
- To extract, do a call to !Fundamentals.Script:
Run,%FundamentalsScript%,XExtract,%ScriptFile%,Folder,RRamDisk.sys,%target_sys%\drivers
What about to include in API:
XExtract=Run,%FundamentalsScript%,XExtract,%ScriptFile%
Peter