home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / winbuilder.7z / Projects / VistaPE-Core / Debug / mount.script < prev    next >
Encoding:
INI File  |  2008-10-11  |  1.6 KB  |  47 lines

  1. [Main]
  2. Title=Mount WIM files from source
  3. Type=script
  4. Level=10
  5. Description=
  6. Selected=False
  7. Download_Level=2
  8. Author=NightMan
  9. Download_Level=2
  10.  
  11. [Process]
  12. ReadENV
  13. If,"%SourceType%",Equal,"",run,%ScriptFile%,NotConfigured
  14. If,"%SourceType%",Equal,"VistaCD",run,%ScriptFile%,MountVista
  15. If,"%SourceType%",Equal,"WAIK",run,%ScriptFile%,MountWAIK
  16.  
  17. [MountVista]
  18. If,"%WimTools%",Equal,"ImageX",run,%ScriptFile%,MountVistaImageX
  19. If,"%WimTools%",Equal,"WimUtil",run,%ScriptFile%,MountVistaWimUtil
  20.  
  21. [MountWAIK]
  22. If,"%WimTools%",Equal,"ImageX",run,%ScriptFile%,MountWAIKImageX
  23. If,"%WimTools%",Equal,"WimUtil",run,%ScriptFile%,MountWAIKWimUtil
  24.  
  25. [MountWAIKWimUtil]
  26. Echo,"Mounting WAIK files with wimutil.exe..."
  27. ShellExecute,Hide,"#$q%tools%\wimutil.exe#$q","mount #$q%SDIR%\winpe.wim#$q #$q%BootSRC%#$q"
  28.  
  29. [MountWAIKImageX]
  30. Echo,"Mounting WAIK files with imagex.exe..."
  31. ShellExecute,Hide,"#$q%IMAGEX%#$q","/mount #$q%SDIR%\winpe.wim#$q 1 #$q%BootSRC%#$q"
  32.  
  33. [MountVistaWimUtil]
  34. Echo,"Mounting Windows Vista files with wimutil.exe..."
  35. ShellExecute,Hide,"#$q%tools%\wimutil.exe#$q","mount #$q%SDIR%\sources\boot.wim#$q #$q%BootSRC%#$q /2"
  36. ShellExecute,Hide,"#$q%tools%\wimutil.exe#$q","mount #$q%SDIR%\sources\install.wim#$q #$q%InstallSRC%#$q"
  37.  
  38. [MountVistaImageX]
  39. Echo,"Mounting Windows Vista files with imagex.exe..."
  40. ShellExecute,Hide,"#$q%IMAGEX%#$q","/mount #$q%SDIR%\sources\boot.wim#$q 2 #$q%BootSRC%#$q"
  41. ShellExecute,Hide,"#$q%IMAGEX%#$q","/mount #$q%SDIR%\sources\install.wim#$q 1 #$q%InstallSRC%#$q"
  42.  
  43. [NotConfigured]
  44. Message,"Please run PreConfig script. Exiting..."
  45. exit,"Exiting.."
  46.  
  47.