|
090722 - 在 iso 覆製後的 boot.wim 是 "唯讀", 所以 /mountrw 仍有問題.
我嘗試在 0a-preconfig.script 之 [MountWin7-imagex],
加入 attrib -r -s -h boot.wim.
另改用 If 及 Else 可用之 Begin,End 區塊指令.
[MountWin7-imagex]
Echo,"Mounting Windows Win7 files with imagex.exe..."
...
If,%pCheckBox3%,Equal,True,Begin
ShellExecute,Hide,"#$q%IMAGEX%#$q","/mountrw #$q%pFileBox3%#$q %pScrollBox1% #$q%BootSRC%#$q"
End
Else,Begin
FileCopy,"%SDir%\sources\boot.wim","%basedir%\Temp\Win7PE\sources\boot.wim"
ShellExecute,Hide,"#$q%WindowsSystemDir%\attrib.exe#$q","-s -h -r #$q%basedir%\Temp\Win7PE\sources\boot.wim#$q"
ShellExecute,Hide,"#$q%IMAGEX%#$q","/mountrw #$q%basedir%\Temp\Win7PE\sources\boot.wim#$q %pScrollBox1% #$q%BootSRC%#$q"
End
... |
|