purk
2015-10-25, 04:30 PM
承上
上一篇教學產生的 Unattended 自動應答安裝檔案 autounattend.xml 是x86 與 AMD64雙位元都可以使用的
因為在2K/XP時代我就有分區安裝需求
因此當年的winnt.sif安裝描述內
有一段是分區安裝的部分
WINN.sif分區安裝描述
[Unattended]
TargetPath=\WINNT
ProgramFilesDir="D:\Program Files"
CommonProgramFilesDir="D:\Program Files\Common Files"
[GuiUnattended]
ProfilesDir="E:\Documents and Settings"
可以發現在2K/XP時代
1.安裝資料夾可以更名
2.安裝應用程式的Program Files也可以替換更名
3.使用者帳號資料夾Documents and Settings可以移位與更名
所以 同一個分割區可以經由更名而有不同的XP系統
或許因為如此有安全性問題?
在改成透過PE安裝後的VISTA/W7/W8/W8.1/W10
已經無法在安裝時期做出前面2個的安裝路徑變更
而僅能在安裝完成後
透過mklink指令達成2的需求<--1無法達成
而在VISTA/W7的安裝階段
若要達成項目3的需求
擇要在 autounattend.xml內的oobeSystem區段的Microsoft-Windows-Shell-Setup這邊
做以下的添加
<FolderLocations>
<ProfilesDirectory>D:\Users</ProfilesDirectory>
<ProgramData>D:\ProgramData</ProgramData>
</FolderLocations>
ProfilesDirectory -->類似Documents and Settings的每個使用者資料夾
ProgramData -->類似Documents and Settings的All Users這個預設的使用者環境設定
切記
xml描述檔案是用括號區隔區段
如果括號位置錯誤
將會讓autounattend.xml無法被執行而造成安裝中斷
但是上述的項目3的需求到了
W8/W8.1/W10的安裝階段又有了新的變更
因為從W8開始Windows開始走向手機平板模式
因此有了Metro Apps
而造成上述安裝檔的又要變更
因此在 autounattend.xml內的oobeSystem區段的Microsoft-Windows-Shell-Setup這邊的添加只能變成
<FolderLocations>
<ProfilesDirectory>D:\Users</ProfilesDirectory>
</FolderLocations>
如果多了
<FolderLocations>
<ProgramData>D:\ProgramData</ProgramData>
</FolderLocations>
那裝好以後會看到一個殘廢的W10系統
參考
https://technet.microsoft.com/zh-tw/library/Cc749305(v=WS.10).aspx
上一篇教學產生的 Unattended 自動應答安裝檔案 autounattend.xml 是x86 與 AMD64雙位元都可以使用的
因為在2K/XP時代我就有分區安裝需求
因此當年的winnt.sif安裝描述內
有一段是分區安裝的部分
WINN.sif分區安裝描述
[Unattended]
TargetPath=\WINNT
ProgramFilesDir="D:\Program Files"
CommonProgramFilesDir="D:\Program Files\Common Files"
[GuiUnattended]
ProfilesDir="E:\Documents and Settings"
可以發現在2K/XP時代
1.安裝資料夾可以更名
2.安裝應用程式的Program Files也可以替換更名
3.使用者帳號資料夾Documents and Settings可以移位與更名
所以 同一個分割區可以經由更名而有不同的XP系統
或許因為如此有安全性問題?
在改成透過PE安裝後的VISTA/W7/W8/W8.1/W10
已經無法在安裝時期做出前面2個的安裝路徑變更
而僅能在安裝完成後
透過mklink指令達成2的需求<--1無法達成
而在VISTA/W7的安裝階段
若要達成項目3的需求
擇要在 autounattend.xml內的oobeSystem區段的Microsoft-Windows-Shell-Setup這邊
做以下的添加
<FolderLocations>
<ProfilesDirectory>D:\Users</ProfilesDirectory>
<ProgramData>D:\ProgramData</ProgramData>
</FolderLocations>
ProfilesDirectory -->類似Documents and Settings的每個使用者資料夾
ProgramData -->類似Documents and Settings的All Users這個預設的使用者環境設定
切記
xml描述檔案是用括號區隔區段
如果括號位置錯誤
將會讓autounattend.xml無法被執行而造成安裝中斷
但是上述的項目3的需求到了
W8/W8.1/W10的安裝階段又有了新的變更
因為從W8開始Windows開始走向手機平板模式
因此有了Metro Apps
而造成上述安裝檔的又要變更
因此在 autounattend.xml內的oobeSystem區段的Microsoft-Windows-Shell-Setup這邊的添加只能變成
<FolderLocations>
<ProfilesDirectory>D:\Users</ProfilesDirectory>
</FolderLocations>
如果多了
<FolderLocations>
<ProgramData>D:\ProgramData</ProgramData>
</FolderLocations>
那裝好以後會看到一個殘廢的W10系統
參考
https://technet.microsoft.com/zh-tw/library/Cc749305(v=WS.10).aspx