ISOFile=%BaseDir%\ISO\%ProjectTitle%\%ProjectTitle%.iso
On project build, single file process, or CodeBox process, WinBuilder evaluates this line and defines 3 global variables:- %ISOFile% - the complete path, e.g. %BaseDir%\ISO\nativeEx_barebone\nativeEx_barebone.iso
- %ISOFileName% the file name only, e.g. nativeEx_barebone.iso
- %ISODir% - the folder only, e.g. %BaseDir%\ISO\nativeEx_barebone
Rule #2: Never change one of these variables!
How to work with these variables
Let me stay with nativeEx_barebone as sample project.
In ProjectInfo.Script two new internal variables are defined:
StrFormat,FILENAME,%IsoFile%,%tmp% StrFormat,EXT,%tmp%,%ext% StrFormat,REPLACE,%tmp%,%ext%,,%tmp% Set,%ISORootName%,%tmp%,PERMANENT Set,%RamISORootName%,%tmp%_RAM,PERMANENT
In this sample it will result with:
- %ISORootName% = nativeEx_barebone
- %RAMISORootName% = nativeEx_barebone_RAM
E.g. in RAMBoot.script:
Set,%burnISO%,%ISODir%\%RamISORootName%.iso,PERMANENT
Rule #3: In ISO producing scripts, only use %ISORootName% and %RAMISORootName%, and define %burnISO% permanent!
ALL ISO using scripts
- Emulators qEmu.Script,VirtualBox.script, VMWare.script
- Burning scripts like CDRecord.Script
Rule #4: In ISO reading scripts, only use %burnISO%!
Peter