Jump to content











Photo
- - - - -

WinBuilder 2013 WIM extract syntax


  • Please log in to reply
No replies to this topic

#1 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 18 August 2013 - 10:08 AM

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();
 






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users