Quantcast
Channel: WinBuilder
Viewing all articles
Browse latest Browse all 1056

WinBuilder 2013 WIM extract syntax

$
0
0

please, see introducing post http://reboot.pro/to...er-2013-syntax/

 

public WimExtractorEx(String imageFile, int imageIndex)

public void setLog(Log result)

public void setSourceLanguage(String lang)

public boolean extractFile(String what)
public boolean extractFile(String what, String where)

public boolean extractMui(String what)

public void extractDir(String what)
public void extractDir(String what, String pattern)

public void release()

 

extractDir is recursive.

wildcards * and ? following windows rules are accepted.

path names may have the windows style backslash as separator (take care on escaping for BeanShell with a second backslash) or the unix style slash.
 
Example:

    WimExtractorEx archiveInstall = new WimExtractorEx(Core.sys.source.getFileWimInstall().getAbsolutePath(), wimIndexInstall);
    archiveInstall.setSourceLanguage(source.defaultLanguage);
    archiveInstall.setLog(core.getLog());

    archiveInstall.extractFile("Windows\\System32\\browser.dll");
    archiveInstall.extractDir("Windows\\winsxs\\x86_microsoft-windows-ie-ieshims_31bf3856ad364e35_8.0." + source.build + "." + source.spbuild + "_none_*");
    archiveInstall.extractMui("Windows\\explorer.exe");

// Not sencefull, but to demonstrate wildcard use:
    archiveInstall.extractFile("Windows\\inf\\*.inf");
    archiveInstall.extractDir("Windows\\*t*","b*");
    archiveInstall.extractFile("Windows/System32/C_??7.NLS");
// End wildcard examples

    archiveInstall.release();
 


Viewing all articles
Browse latest Browse all 1056

Trending Articles