[main] Title=Disk Management Description=DiskMgmt.msc and MMC Selected=False Level=3 Author=Misty Version=1 Credits=IcemanND Date=2014-06-01 [Interface] pWebLabel1=http://www.msfn.org/,1,10,194,77,107,18,http://www.msfn.org/board/topic/153842-disk-partition-gui-in-winpe/?p=979055 pTextLabel1="Credit to IcemanND -",1,1,50,77,141,18,10,Bold pTextLabel2="WARNING - Not working with following builds -",1,1,50,108,300,18,10,Bold pTextLabel3="* 6.0.6000 (Vista)",1,1,50,135,99,18,8,Normal pTextLabel4="* 6.0.6001 (Vista SP1 / Server 2008)",1,1,50,158,230,18,8,Normal [Process] If,%CODEBASE%,Equal,6.0.6000,Begin Message,The Disk Management script is not working with these source files (build %CODEBASE%) - exiting...,Error,5 Exit,The Disk Management script is not working with these source files (build %CODEBASE%) - exiting... End If,%CODEBASE%,Equal,6.0.6001,Begin Message,The Disk Management script is not working with these source files (build %CODEBASE%) - exiting...,Error,5 Exit,The Disk Management script is not working with these source files (build %CODEBASE%) - exiting... End Run,%ScriptFile%,CHECKS Run,%ScriptFile%,MENU Run,%ScriptFile%,COMMON If,%PROGRAMS.IN.WIM%,Equal,NO,Run,%ScriptFile%,NOT.IN.WIM If,%PROGRAMS.IN.WIM%,Equal,YES,Run,%ScriptFile%,IN.WIM [CHECKS] Set,%ERROR%,0 If,Not,ExistFile,"%Programs%\DiskMgmt\mmc.registry.reg",Set,%ERROR%,1 If,Not,ExistFile,"%Programs%\DiskMgmt\DiskMgmt.cmd",Set,%ERROR%,1 If,Not,ExistFile,"%Programs%\DiskMgmt\registry.entries.cmd",Set,%ERROR%,1 If,%ERROR%,Equal,1,Begin Message,A Disk Management file is missing. Exiting program script - refer to the log,Error,5 If,Not,ExistFile,"%Programs%\DiskMgmt\mmc.registry.reg",Echo,Disk Management - #$q%Programs%\DiskMgmt\mmc.registry.reg#$q is missing,WARN If,Not,ExistFile,"%Programs%\DiskMgmt\DiskMgmt.cmd",Echo,Disk Management - #$q%Programs%\DiskMgmt\DiskMgmt.cmd#$q is missing,WARN If,Not,ExistFile,"%Programs%\DiskMgmt\registry.entries.cmd",Echo,Disk Management - #$q%Programs%\DiskMgmt\registry.entries.cmd#$q is missing,WARN Exit,A Disk Management file is missing. See above...,WARN End Set,%ERROR%,0 If,Not,ExistFile,"%Dependencies%\dwwin.exe",Set,%ERROR%,1 If,Not,ExistFile,"%Dependencies%\diskmgmt.msc",Set,%ERROR%,1 If,Not,ExistFile,"%Dependencies%\mmc.exe",Set,%ERROR%,1 If,Not,ExistFile,"%Dependencies%\mmcbase.dll",Set,%ERROR%,1 If,Not,ExistFile,"%Dependencies%\mmcndmgr.dll",Set,%ERROR%,1 If,Not,ExistFile,"%Dependencies%\mmcshext.dll",Set,%ERROR%,1 If,Not,ExistFile,"%Dependencies%\apphelp.dll",Set,%ERROR%,1 If,Not,ExistFile,"%Dependencies%\dmdlgs.dll",Set,%ERROR%,1 If,Not,ExistFile,"%Dependencies%\dmdskmgr.dll",Set,%ERROR%,1 If,Not,ExistFile,"%Dependencies%\dmdskres.dll",Set,%ERROR%,1 If,Not,ExistFile,"%Dependencies%\dmdskres2.dll",Set,%ERROR%,1 If,Not,ExistFile,"%Dependencies%\dmintf.dll",Set,%ERROR%,1 If,Not,ExistFile,"%Dependencies%\dmocx.dll",Set,%ERROR%,1 If,Not,ExistFile,"%Dependencies%\dmutil.dll",Set,%ERROR%,1 If,Not,ExistFile,"%Dependencies%\dmvdsitf.dll",Set,%ERROR%,1 If,Not,ExistFile,"%Dependencies%\dmview.ocx",Set,%ERROR%,1 If,Not,ExistFile,"%Dependencies%\hhsetup.dll",Set,%ERROR%,1 If,Not,ExistFile,"%Dependencies%\%LANG%\mmc.exe.mui",Set,%ERROR%,1 If,Not,ExistFile,"%Dependencies%\%LANG%\mmcbase.dll.mui",Set,%ERROR%,1 If,Not,ExistFile,"%Dependencies%\%LANG%\mmcndmgr.dll.mui",Set,%ERROR%,1 If,Not,ExistFile,"%Dependencies%\%LANG%\mmcshext.dll.mui",Set,%ERROR%,1 If,Not,ExistFile,"%Dependencies%\%LANG%\dmdskres.dll.mui",Set,%ERROR%,1 If,Not,ExistFile,"%Dependencies%\%LANG%\dmdskres2.dll.mui",Set,%ERROR%,1 If,%ERROR%,Equal,1,Begin Message,A file dependancy for Disk Management is missing. Exiting program script - refer to the log,Error,5 If,Not,ExistFile,"%Dependencies%\dwwin.exe",Echo,Disk Management - dwwin.exe dependancy is missing,WARN If,Not,ExistFile,"%Dependencies%\diskmgmt.msc",Echo,Disk Management - diskmgmt.msc dependancy is missing,WARN If,Not,ExistFile,"%Dependencies%\mmc.exe",Echo,Disk Management - mmc.exe dependancy is missing,WARN If,Not,ExistFile,"%Dependencies%\mmcbase.dll",Echo,Disk Management - mmcbase.dll dependancy is missing,WARN If,Not,ExistFile,"%Dependencies%\mmcndmgr.dll",Echo,Disk Management - mmcndmgr.dll dependancy is missing,WARN If,Not,ExistFile,"%Dependencies%\mmcshext.dll",Echo,Disk Management - mmcshext.dll dependancy is missing,WARN If,Not,ExistFile,"%Dependencies%\apphelp.dll",Echo,Disk Management - apphelp.dll dependancy is missing,WARN If,Not,ExistFile,"%Dependencies%\dmdlgs.dll",Echo,Disk Management - dmdlgs.dll dependancy is missing,WARN If,Not,ExistFile,"%Dependencies%\dmdskmgr.dll",Echo,Disk Management - dmdskmgr.dll dependancy is missing,WARN If,Not,ExistFile,"%Dependencies%\dmdskres.dll",Echo,Disk Management - dmdskres.dll dependancy is missing,WARN If,Not,ExistFile,"%Dependencies%\dmdskres2.dll",Echo,Disk Management - dmdskres2.dll dependancy is missing,WARN If,Not,ExistFile,"%Dependencies%\dmintf.dll",Echo,Disk Management - dmintf.dll dependancy is missing,WARN If,Not,ExistFile,"%Dependencies%\dmocx.dll",Echo,Disk Management - dmocx.dll dependancy is missing,WARN If,Not,ExistFile,"%Dependencies%\dmutil.dll",Echo,Disk Management - dmutil.dll dependancy is missing,WARN If,Not,ExistFile,"%Dependencies%\dmvdsitf.dll",Echo,Disk Management - dmvdsitf.dll dependancy is missing,WARN If,Not,ExistFile,"%Dependencies%\dmview.ocx",Echo,Disk Management - dmview.ocx dependancy is missing,WARN If,Not,ExistFile,"%Dependencies%\hhsetup.dll",Echo,Disk Management - hhsetup.dll dependancy is missing,WARN If,Not,ExistFile,"%Dependencies%\%LANG%\mmc.exe.mui",Echo,Disk Management - mmc.exe.mui dependancy is missing,WARN If,Not,ExistFile,"%Dependencies%\%LANG%\mmcbase.dll.mui",Echo,Disk Management - mmcbase.dll.mui dependancy is missing,WARN If,Not,ExistFile,"%Dependencies%\%LANG%\mmcndmgr.dll.mui",Echo,Disk Management - mmcndmgr.dll.mui dependancy is missing,WARN If,Not,ExistFile,"%Dependencies%\%LANG%\mmcshext.dll.mui",Echo,Disk Management - mmcshext.dll.mui dependancy is missing,WARN If,Not,ExistFile,"%Dependencies%\%LANG%\dmdskres.dll.mui",Echo,Disk Management - dmdskres.dll.mui dependancy is missing,WARN If,Not,ExistFile,"%Dependencies%\%LANG%\dmdskres2.dll.mui",Echo,Disk Management - dmdskres2.dll.mui dependancy is missing,WARN Exit,A file dependancy for Disk Management is missing. See above. End [MENU] If,Not,ExistFile,"%Cache%\temp\programs.rc.txt",FileCreateBlank,"%Cache%\temp\programs.rc.txt" If,Not,ExistFile,"%Cache%\temp\programs.cmd.txt",FileCreateBlank,"%Cache%\temp\programs.cmd.txt" TXTaddLine,"%Cache%\temp\programs.rc.txt",[exec] (Disk Manager) {%SYSTEMDRIVE%\Programs\DiskMgmt\DiskMgmt.cmd},Append TXTaddLine,"%Cache%\temp\programs.cmd.txt",IF EXIST #$q%~dp0DiskMgmt\DiskMgmt.cmd#$q ECHO [exec] (Disk Manager) {#$q%~dp0DiskMgmt\DiskMgmt.cmd#$q} >> #$q%SYSTEMDRIVE%\Programs\bblean\menu.rc#$q,Append [COMMON] If,%PROGRAMS.IN.WIM%,Equal,NO,Set,%PATH%,%OutputDir% If,%PROGRAMS.IN.WIM%,Equal,YES,Set,%PATH%,%TargetDir% If,Not,ExistDir,"%PATH%\Programs",DirMake,"%PATH%\Programs" DirMake,"%PATH%\Programs\DiskMgmt" DirMake,"%PATH%\Programs\DiskMgmt\Dependancies" DirMake,"%PATH%\Programs\DiskMgmt\Dependancies\%LANG%" FileCopy,"%Programs%\DiskMgmt\mmc.registry.reg","%PATH%\Programs\DiskMgmt" FileCopy,"%Programs%\DiskMgmt\DiskMgmt.cmd","%PATH%\Programs\DiskMgmt" FileCopy,"%Programs%\DiskMgmt\registry.entries.cmd","%PATH%\Programs\DiskMgmt" FileCopy,"%Dependencies%\dwwin.exe","%PATH%\Programs\DiskMgmt\Dependancies" FileCopy,"%Dependencies%\diskmgmt.msc","%PATH%\Programs\DiskMgmt\Dependancies" FileCopy,"%Dependencies%\mmc.exe","%PATH%\Programs\DiskMgmt\Dependancies" FileCopy,"%Dependencies%\mmcbase.dll","%PATH%\Programs\DiskMgmt\Dependancies" FileCopy,"%Dependencies%\mmcndmgr.dll","%PATH%\Programs\DiskMgmt\Dependancies" FileCopy,"%Dependencies%\mmcshext.dll","%PATH%\Programs\DiskMgmt\Dependancies" FileCopy,"%Dependencies%\apphelp.dll","%PATH%\Programs\DiskMgmt\Dependancies" FileCopy,"%Dependencies%\dmdlgs.dll","%PATH%\Programs\DiskMgmt\Dependancies" FileCopy,"%Dependencies%\dmdskmgr.dll","%PATH%\Programs\DiskMgmt\Dependancies" FileCopy,"%Dependencies%\dmdskres.dll","%PATH%\Programs\DiskMgmt\Dependancies" FileCopy,"%Dependencies%\dmdskres2.dll","%PATH%\Programs\DiskMgmt\Dependancies" FileCopy,"%Dependencies%\dmintf.dll","%PATH%\Programs\DiskMgmt\Dependancies" FileCopy,"%Dependencies%\dmocx.dll","%PATH%\Programs\DiskMgmt\Dependancies" FileCopy,"%Dependencies%\dmutil.dll","%PATH%\Programs\DiskMgmt\Dependancies" FileCopy,"%Dependencies%\dmvdsitf.dll","%PATH%\Programs\DiskMgmt\Dependancies" FileCopy,"%Dependencies%\dmview.ocx","%PATH%\Programs\DiskMgmt\Dependancies" FileCopy,"%Dependencies%\hhsetup.dll","%PATH%\Programs\DiskMgmt\Dependancies" FileCopy,"%Dependencies%\%LANG%\mmc.exe.mui","%PATH%\Programs\DiskMgmt\Dependancies\%LANG%" FileCopy,"%Dependencies%\%LANG%\mmcbase.dll.mui","%PATH%\Programs\DiskMgmt\Dependancies\%LANG%" FileCopy,"%Dependencies%\%LANG%\mmcndmgr.dll.mui","%PATH%\Programs\DiskMgmt\Dependancies\%LANG%" FileCopy,"%Dependencies%\%LANG%\mmcshext.dll.mui","%PATH%\Programs\DiskMgmt\Dependancies\%LANG%" FileCopy,"%Dependencies%\%LANG%\dmdskres.dll.mui","%PATH%\Programs\DiskMgmt\Dependancies\%LANG%" FileCopy,"%Dependencies%\%LANG%\dmdskres2.dll.mui","%PATH%\Programs\DiskMgmt\Dependancies\%LANG%" If,Not,%LANG%,Equal,en-US,Begin Set,%LANG2%,en-US If,Not,ExistDir,"%PATH%\Programs\DiskMgmt\Dependancies\%LANG2%",DirMake,"%PATH%\Programs\DiskMgmt\Dependancies\%LANG2%" If,ExistFile,"%Dependencies%\%LANG2%\mmc.exe.mui",FileCopy,"%Dependencies%\%LANG2%\mmc.exe.mui","%PATH%\Programs\DiskMgmt\Dependancies\%LANG2%" If,ExistFile,"%Dependencies%\%LANG2%\mmcbase.dll.mui",FileCopy,"%Dependencies%\%LANG2%\mmcbase.dll.mui","%PATH%\Programs\DiskMgmt\Dependancies\%LANG2%" If,ExistFile,"%Dependencies%\%LANG2%\mmcndmgr.dll.mui",FileCopy,"%Dependencies%\%LANG2%\mmcndmgr.dll.mui","%PATH%\Programs\DiskMgmt\Dependancies\%LANG2%" If,ExistFile,"%Dependencies%\%LANG2%\mmcshext.dll.mui",FileCopy,"%Dependencies%\%LANG2%\mmcshext.dll.mui","%PATH%\Programs\DiskMgmt\Dependancies\%LANG2%" If,ExistFile,"%Dependencies%\%LANG2%\dmdskres.dll.mui",FileCopy,"%Dependencies%\%LANG2%\dmdskres.dll.mui","%PATH%\Programs\DiskMgmt\Dependancies\%LANG2%" If,ExistFile,"%Dependencies%\%LANG2%\dmdskres2.dll.mui",FileCopy,"%Dependencies%\%LANG2%\dmdskres2.dll.mui","%PATH%\Programs\DiskMgmt\Dependancies\%LANG2%" End TXTReplace,"%PATH%\Programs\DiskMgmt\DiskMgmt.cmd",language,%LANG% IniWrite,"%OutputDir%\Project.Settings.ini",PROGRAMS,DISK.MANAGEMENT,YES [IN.WIM] Wait,1 [NOT.IN.WIM] Wait,1 Exit,"Diskmgmt copied to #$q%PATH%\Programs#$q directory - it will not be added to #$qboot.wim#$q",Nowarn [EncodedFile-AuthorEncoded-os.jpg] lines=0 0=eJztVwlQU1kWfSEJS0BZDArKGkEQhJDEKIkERAQVG2xAQXANSQhhC5IEArKItKgooCzSrILgioBsYoiCCopIq0MLorZAg8oqyi7QQOZDu3T19FTNVjNT1TmpW7nv/fvfeee+V6kT0XPRz0DB1maLDYDBYGA/9AGiDoV31nyWBwB2dsAAACANELB1QALKZKGB7VEWQEA5DMqdMzLnvsFiABQe96kBKWhODhqbQwHU+ubfFUMMMcQQQwwx/qSwY3G4wVpbWX5MaIA8BZ93E2jINeSdQnzJbyScns/hpNUAJCR8zb86C+nv51YTOwsxxBBDDDHE+HMDb4IjkE1IZBxeC0ci41eTcaZ/OAd5EMACHMAFwUALbIVyPzBnRkQdsuqeXK4/GYv14xhT6Wx3hjGN7YvlU/2xOGMTLDCz4PtTad4MrpY7g8nyo+h9EFbrabHoFD0Xop2Jnb8Vw5O1OSSA4RRiv50W4k0j0fUszBegzPhkvq+/L4NL1eL7+vhxyHwKZn51MpTPTWMx5mYBdA+y40abTxXQiIL5tJegoCDjIIIxO4CJxZFIJKwJHovHG0EVRpxgPy6Vb+THWf5pgY0MDi2A5c9lsf205sZUdzaPS8HweCw62YPqQXSn04lG7lQC3QiHo1ONqHQCzohOINDXEnGmeA+cO+YTPZ32hd2fF+Azz02nYRk+DF+GH5cDdQOHxWD/s5xQi76Q/mH7IY1Q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