home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / winbuilder.7z / Projects / VistaPE-Core / Finalize / 00-postconfig.script next >
INI File  |  2008-10-14  |  9KB  |  137 lines

  1. [Main]
  2. Title=PostConfig
  3. Type=script
  4. Level=8
  5. Description=Finalizing VistaPE...
  6. Selected=True
  7. Author=NightMan
  8. Version=12
  9. Contact=vistape@vistape.net
  10. Date=20.07.2008
  11. Locked=false
  12. Download_Level=0
  13. Mandatory=True
  14.  
  15. [Variables]
  16. %BootTMP%=%TargetDir%\boot.tmp
  17. %MenuFile_GRUB%=%targetdir%\menu.lst
  18.  
  19. [Process]
  20. ReadENV
  21. #TODO disable this in WB 075 _final_
  22. If,%pCheckBox1%,Equal,True,Run,%ScriptFile%,UnMountWim
  23. IniRead,%VistaInfo%,"VistaInfo","mountprogram","%mountprogram%"
  24. If,"%mountprogram%",Equal,"yes",,FileCreateBlank,"%TargetDir%\vistape.cd"
  25. ShellExecute,Hide,#$q%TargetDir%\Windows\System32\bcdedit.exe#$q,"/store #$q%TargetDir%\boot\bcd#$q /set {default} quietboot on","%WindowsDir%\system32"
  26. #enable ntbtlog.txt
  27. #ShellExecute,Hide,#$q%TargetDir%\Windows\System32\bcdedit.exe#$q,"/store #$q%TargetDir%\boot\bcd#$q /set {default} bootlog on","%WindowsDir%\system32"
  28. If,"%BuildModel%",Equal,"MultiBoot",Run,%ScriptFile%,PackBoot
  29. If,"%BuildModel%",Equal,"RAM",Run,%ScriptFile%,PackBoot
  30. If,"%BuildModel%",Equal,"Normal",Run,%ScriptFile%,NoPackBoot
  31. #If,%pCheckBox2%,Equal,true,Run,%ScriptFile%,PackPrograms
  32. If,ExistFile,"%MenuFile_GRUB%",Run,%ScriptFile%,ConfigureGrub
  33. If,ExistDir,"%TargetDir%\Drivers",Echo,"Creating the driver index for external drivers..."
  34. If,ExistDir,"%TargetDir%\Drivers",ShellExecute,Hide,#$q%Tools%\drv_index.exe#$q,"#$q%TargetDir%\Drivers#$q"
  35.  
  36. [ConfigureGrub]
  37. Echo,"Configuring Grub4Dos..."
  38. TXTAddLine,"%MenuFile_GRUB%","title Find and Load NTLDR of Windows NT/2K/XP","Append"
  39. TXTAddLine,"%MenuFile_GRUB%","find --set-root /ntldr","Append"
  40. TXTAddLine,"%MenuFile_GRUB%","chainloader /ntldr","Append"
  41. TXTAddLine,"%MenuFile_GRUB%"," ","Append"
  42. TXTAddLine,"%MenuFile_GRUB%","title Find and Load CMLDR of Windows NT/2K/XP","Append"
  43. TXTAddLine,"%MenuFile_GRUB%","find --set-root /cmldr","Append"
  44. TXTAddLine,"%MenuFile_GRUB%","chainloader /cmldr","Append"
  45. TXTAddLine,"%MenuFile_GRUB%"," ","Append"
  46. TXTAddLine,"%MenuFile_GRUB%","title find and load IO.SYS of Windows 9x/Me","Append"
  47. TXTAddLine,"%MenuFile_GRUB%","find --set-root /io.sys","Append"
  48. TXTAddLine,"%MenuFile_GRUB%","chainloader /io.sys","Append"
  49. TXTAddLine,"%MenuFile_GRUB%"," ","Append"
  50. TXTAddLine,"%MenuFile_GRUB%","title find and boot Linux with menu.lst already installed","Append"
  51. TXTAddLine,"%MenuFile_GRUB%","find --set-root /sbin/init","Append"
  52. TXTAddLine,"%MenuFile_GRUB%","configfile /boot/grub/menu.lst","Append"
  53. TXTAddLine,"%MenuFile_GRUB%"," ","Append"
  54. #TXTAddLine,"%MenuFile_GRUB%","title MemTest86+","Append"
  55. #TXTAddLine,"%MenuFile_GRUB%","kernel /boot/memtest.bin","Append"
  56. #TXTAddLine,"%MenuFile_GRUB%"," ","Append"
  57. TXTAddLine,"%MenuFile_GRUB%","title Floppy (fd0)","Append"
  58. TXTAddLine,"%MenuFile_GRUB%","chainloader (fd0)+1","Append"
  59. TXTAddLine,"%MenuFile_GRUB%","rootnoverify (fd0)","Append"
  60. TXTAddLine,"%MenuFile_GRUB%"," ","Append"
  61. TXTAddLine,"%MenuFile_GRUB%","title CommandLine","Append"
  62. TXTAddLine,"%MenuFile_GRUB%","commandline","Append"
  63. TXTAddLine,"%MenuFile_GRUB%"," ","Append"
  64. TXTAddLine,"%MenuFile_GRUB%","title Reboot","Append"
  65. TXTAddLine,"%MenuFile_GRUB%","reboot","Append"
  66. TXTAddLine,"%MenuFile_GRUB%"," ","Append"
  67. TXTAddLine,"%MenuFile_GRUB%","title Halt","Append"
  68. TXTAddLine,"%MenuFile_GRUB%","halt","Append"
  69. TXTAddLine,"%MenuFile_GRUB%","","Append"
  70.  
  71. [UnMountWim]
  72. echo,"UnMountig WIM files..."
  73. If,"%WimTools%",Equal,"ImageX",Run,%ScriptFile%,UnMountImagex
  74. If,"%WimTools%",Equal,"WimUtil",Run,%ScriptFile%,UnMountWimutil
  75.  
  76. [UnMountWimutil]
  77. If,ExistDir,"%BootSRC%\Windows",ShellExecute,Hide,"#$q%tools%\wimutil.exe#$q","unmount #$q%BootSRC%#$q"
  78. If,ExistDir,"%InstallSRC%\Windows",ShellExecute,Hide,"#$q%tools%\wimutil.exe#$q","unmount #$q%InstallSRC%#$q"
  79.  
  80. [UnMountImagex]
  81. If,ExistDir,"%BootSRC%\Windows",ShellExecute,Hide,"#$q%imagex%#$q","/unmount #$q%BootSRC%#$q"
  82. If,ExistDir,"%InstallSRC%\Windows",ShellExecute,Hide,"#$q%imagex%#$q","/unmount #$q%InstallSRC%#$q"
  83.  
  84. [PackBoot]
  85. Echo,"Preparing base files with %pScrollBox1% compression..."
  86. ShellExecute,Hide,#$q%TargetDir%\Windows\System32\bcdedit.exe#$q,"/store #$q%TargetDir%\boot\bcd#$q /set {default} device ramdisk=[boot]\vistape.wim#$c{7619dcc8-fafe-11d9-b411-000476eba25f}","%WindowsDir%\system32"
  87. ShellExecute,Hide,#$q%TargetDir%\Windows\System32\bcdedit.exe#$q,"/store #$q%TargetDir%\boot\bcd#$q /set {default} osdevice ramdisk=[boot]\vistape.wim#$c{7619dcc8-fafe-11d9-b411-000476eba25f}","%WindowsDir%\system32"
  88. DirMake,%BootTMP%
  89. If,ExistDir,"%targetdir%\Program#$sFiles",DirMove,"%targetdir%\Program#$sFiles",%BootTMP%
  90. If,ExistDir,"%targetdir%\ProgramData",DirMove,"%targetdir%\ProgramData",%BootTMP%
  91. #DirMove,"%targetdir%\sources",%BootTMP%
  92. #DirMove,"%targetdir%\Users",%BootTMP%
  93. DirMove,"%targetdir%\Windows",%BootTMP%
  94. #add 14.12.2007 for RIS booting
  95. FileCopy,"%targetdir%\BOOTMGR","%BootTMP%\BOOTMGR"
  96. Echo,"Packing boot.wim... it's can take a long time, be patient"
  97. #If,NotExistDir,"%targetdir%\sources",DirMake,"%targetdir%\sources"
  98. If,"%WimTools%",Equal,"ImageX",ShellExecute,Hide,#$q%imagex%#$q,"/capture  #$q%BootTMP%#$q #$q%TargetDir%\vistape.wim#$q #$qVistaPE#$q /boot /COMPRESS %pScrollBox1%"
  99. If,%pScrollBox1%,Equal,maximum,Set,%CM%,lzx
  100. If,%pScrollBox1%,Equal,fast,Set,%CM%,xpress
  101. If,%pScrollBox1%,Equal,none,Set,%CM%,none
  102. If,"%WimTools%",Equal,"WimUtil",ShellExecute,Hide,#$q%Tools%\wimutil.exe#$q,"capture  #$q%BootTMP%#$q #$q%TargetDir%\vistape.wim#$q /%CM%"
  103. DirDelete,"%BootTMP%"
  104.  
  105. [NoPackBoot]
  106. Echo,"Preparing boot directly from cd..."
  107. ShellExecute,Hide,#$q%TargetDir%\Windows\System32\bcdedit.exe#$q,"/store #$q%TargetDir%\boot\bcd#$q /set {default} device boot","%WindowsDir%\system32"
  108. ShellExecute,Hide,#$q%TargetDir%\Windows\System32\bcdedit.exe#$q,"/store #$q%TargetDir%\boot\bcd#$q /set {default} osdevice boot","%WindowsDir%\system32"
  109.  
  110. [PackPrograms]
  111. Echo,"Packing programs.wim..."
  112. If,NotExistDir,"%VistaTemp%\Programs",Halt,"Folder %VistaTemp%\Programs not found"
  113. If,NotExistFile,"%VistaTemp%\Programs\program.cd",FileCreateBlank,"%VistaTemp%\Programs\program.cd"
  114. If,"%WimTools%",Equal,"WimUtil",ShellExecute,Hide,#$q%Tools%\wimutil.exe#$q,"capture  #$q%VistaTemp%\Programs#$q #$q%TargetDir%\programs.wim#$q"
  115. If,"%WimTools%",Equal,"ImageX",ShellExecute,Hide,#$q%imagex%#$q,"/capture  #$q%VistaTemp%\Programs#$q #$q%TargetDir%\programs.wim#$q /boot /compress maximum"
  116. FileCopy,"%tools%\wimutil.exe","%VistaTemp%\Windows\System32"
  117. DirDelete,"%VistaTemp%\Programs"
  118.  
  119. [temp]
  120. pCheckBox2="Pack program.wim (request ramdisk and wim plugins)",1,3,12,60,273,18,False
  121.  
  122. [Interface]
  123. pCheckBox1="UnMount WIM Files",1,3,10,40,200,18,True
  124. pTextLabel1="WIM compression level",1,1,10,79,115,18,8,Normal
  125. pScrollBox1=maximum,1,4,127,77,150,18,none,fast,maximum
  126.  
  127. [InterfaceEncoded]
  128.  
  129. [AuthorEncoded]
  130. VistaPE-11-Small.gif=1Kb,1Kb
  131. Logo=VistaPE-11-Small.gif
  132.  
  133. [EncodedFile-AuthorEncoded-VistaPE-11-Small.gif]
  134. lines=0
  135. 0=R0lGODlhWQAjANU/AOmRkPzwypG12Pj39PbVZuysq05YZvCbUcfa67HL4/jgkOuILKzKo0eKMuR7dmmayeZ0JId3SPKuE3GlYJKZq+6cF1xqh9xPSfSzjtk7NvPHM/rpr9OtKsrP15qyffLBtWE1UO2KFzh5uKePOPnl3i89YfKqf+m5IjtIYZsvPvXLyfbY1+Tn6u+gc/345Nbg7LK4xneDmvnZx0qGvuFmYeTt86KquuBeYZa9iyo8YdYyKdYoLB9psPLCIP///////yH5BAEAAD8ALAAAAABZACMAAAb/wJ9wSCwahz5fZ8lsspJQ33FKrVqHqmy2AOh6v13abfyx5HKlHCpm6zyj17hxIKvLhnS7nSRc7f6AgYKDOzBoaDEDUnKMUxghFZEVCy10kJKRB0IOhJ2ENoclHY2kRxgSCwcHC5ELMpmqqiZCGZ62gAUoaRaLpb4/p5pCH5EmFS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