[Main] Title=1 - Packages Installer Author=by Paul Larini's (mustang) modified and developed by khauyeung Modified by FerrariGuy Level=1 Version=014 Description=Install packages %BootSrc% which was mounted R/W (by DISM) during the previous step. !!DISM of WAIK 3.x is required.!!#$XPEIMG InF Installer for 32/64 Win 7 Locked=False Contact= Date=08.24.2011 Selected=True Interface=Interface Mandatory=False Download_Level=1 NoWarning=False [Variables] %Switch% [Interface] pTextLabel1="You must have the WAIK and DISM installed for this script to work.",1,1,10,7,533,18,8,Bold pTextLabel5="Specify the paths for up to 6 PACKAGES (.cab or .msu) like the example below:",1,1,6,65,424,18,8,Normal pCheckBox1="Pause after each DRIVER/PACKAGE is installed to check status. (Type 'EXIT' to continue)",1,3,15,275,533,18,False pFileBox1=D:\WIAK3.1\Tools\x86\WINPE_FPS_SP1\WINPE-HTA.CAB,1,13,3,86,429,30,file pFileBox2=D:\WIAK3.1\Tools\x86\WINPE_FPS_SP1\EN-US\WINPE-HTA_EN-US.CAB,1,13,3,113,429,30,file pFileBox3=D:\WIAK3.1\Tools\x86\WINPE_FPS_SP1\WINPE-WMI.CAB,1,13,3,141,429,30,file pFileBox4=D:\WIAK3.1\Tools\x86\WINPE_FPS_SP1\EN-US\WINPE-WMI_EN-US.CAB,1,13,3,169,429,30,file pFileBox5=D:\WIAK3.1\Tools\x86\WINPE_FPS_SP1\WINPE-MDAC.CAB,1,13,3,202,429,30,file pFileBox6=D:\WIAK3.1\Tools\x86\WINPE_FPS_SP1\EN-US\WINPE-MDAC_EN-US.CAB,1,13,3,232,429,30,file pFileBox7=D:\WIAK3.1\Tools\Servicing\,1,13,150,32,429,30,dir pButton1=Save,1,8,482,252,60,25,Interface,_Interface_,False pCheckBox2="Use DISM of WAIK3.x at:",1,3,6,37,145,18,True [Process] Echo,"Processing .. Adding Selected Packages ..." If,"%pCheckBox1%",Equal,False,Set,%Switch%,"/c#$s" If,"%pCheckBox1%",Equal,True,Set,%Switch%,"/k#$s" If,"%pCheckBox2%",Equal,true,Run,%ScriptFile%,dism_inf [dism_inf] If,NotExistFile,"%pFileBox7%\dism.exe",Run,%ScriptFile%,WAIKNotFound Echo,"Processing Package 1 ..." If,"%pFileBox1%",NotEqual,"",ShellExecute,Open,"cmd.exe","%Switch%#$q%pFileBox7%dism.exe#$q /image:%BootSrc% /Add-Package /PackagePath:%pFileBox1%" Echo,"Processing Package 2 ..." If,"%pFileBox2%",NotEqual,"",ShellExecute,Open,"cmd.exe","%Switch%#$q%pFileBox7%dism.exe#$q /image:%BootSrc% /Add-Package /PackagePath:%pFileBox2%" Echo,"Processing Package 3 ..." If,"%pFileBox3%",NotEqual,"",ShellExecute,Open,"cmd.exe","%Switch%#$q%pFileBox7%dism.exe#$q /image:%BootSrc% /Add-Package /PackagePath:%pFileBox3%" Echo,"Processing Package 4 ..." If,"%pFileBox4%",NotEqual,"",ShellExecute,Open,"cmd.exe","%Switch%#$q%pFileBox7%dism.exe#$q /image:%BootSrc% /Add-Package /PackagePath:%pFileBox4%" Echo,"Processing Package 5 ..." If,"%pFileBox5%",NotEqual,"",ShellExecute,Open,"cmd.exe","%Switch%#$q%pFileBox7%dism.exe#$q /image:%BootSrc% /Add-Package /PackagePath:%pFileBox5%" Echo,"Processing Package 6 ..." If,"%pFileBox6%",NotEqual,"",ShellExecute,Open,"cmd.exe","%Switch%#$q%pFileBox7%dism.exe#$q /image:%BootSrc% /Add-Package /PackagePath:%pFileBox6%" [WAIKNotFound] Message,"Error: Unable to locate DISM.EXE#$x#$xReason: Invalid path to the WAIK or the WAIK is not installed.#$x#$xFix: Enter the correct path or install the WAIK.#$x#$xScript aborted.",Error Exit,"Exiting..."