|
To khauyeung,
個人嘗試更改 build 內一些 script, 你看看是否適用!
FTP2 (zhxy9804)
/nu852/Build_script.rar
Build - 1-files.script
-----------------------------
"System,ErrorOff" 取替所有 "System,ErrOff"
Build - 0a-preconfig.script 及 0c-preconfig.script
------------------------------------------------------------------------------
1. 加入 [MountErr], 以便顯示掛載 wim 錯誤, 及停止程序.
2. 在 [MountWin7-imagex] 及 [MountWin7-wimutil],
加入檢測是否掛載 wim 成功, 如否, 呼叫 [MountErr], 例如
[MountWin7-imagex]
...
If,%pCheckBox3%,Equal,True,ShellExecute,Hide,"#$q%IMAGEX%#$q","/mount #$q%pFileBox3%#$q %pScrollBox1% #$q%BootSRC%#$q"
If,%pCheckBox3%,NotEqual,True,ShellExecute,Hide,"#$q%IMAGEX%#$q","/mount #$q%SDIR%\sources\boot.wim#$q %pScrollBox1% #$q%BootSRC%#$q"
If,%ExitCode%,NotEqual,0,run,%ScriptFile%,MountErr,%ExitCode%,"Mounting boot.wim or #$q%pFileBox3%#$q Error! System Halt!"
...
3. 將 "enforce using wimutil" 於 [AutoDetectWimTool], 提升優先次序.
If,%pCheckBox5%,Equal,True,Begin
run,%ScriptFile%,Find-WimUtil
Set,"%ImageTool%","WimUtil"
End
Else, Begin
run,%ScriptFile%,AutoFindImagex
If,"%ImageTool%",NotEqual,"ImageX",run,%ScriptFile%,Find-WimUtil
If,"%ImageTool%",NotEqual,"ImageX",Set,"%ImageTool%","WimUtil"
End
4 於 [Find-WimUtil] 使用不同方法檢測 fltmgr 及 wimflt 是否已安裝.
[Find-WimUtil]
Echo,"Detecting WimUtil..."
System,ERROROFF
RegRead,"HKLM","SYSTEM\CurrentControlSet\Services\FltMgr","DisplayName","%RegName%"
If,NOT,EXISTVAR,%RegName%,run,%ScriptFile%,FltMgr
If,NotExistFile,%WindowsSystemDir%\drivers\fltmgr.sys,run,%ScriptFile%,FltMgr
System,ERROROFF
RegRead,"HKLM","SYSTEM\CurrentControlSet\Services\WimFltr","DisplayName","%RegName%"
If,NOT,EXISTVAR,%RegName%,run,%ScriptFile%,WimUtil
If,NotExistFile,%WindowsSystemDir%\drivers\wimfltr.sys,run,%ScriptFile%,WimUtil
If,NotExistFile,"%Tools%\wimutil.exe",Halt,"Something wrong with WimUtils..."
[ 本帖最后由 nu852 于 2009-9-3 23:14 编辑 ] |
|