|
本帖最后由 chishingchan 于 2019-7-2 11:57 编辑
应答文件有值得借鉴的地方,但是更多值得改善的地方!
(以下只针对应答文件的建议)
1、改善层次,阅读方便
层次格式:
- <component name="Microsoft-Windows-ErrorReportingCore" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <DefaultConsent>4</DefaultConsent>
- <DisableWER>1</DisableWER>
- </component>
复制代码
2、支持双架构:
- <component name="Microsoft-Windows-ErrorReportingCore" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <DefaultConsent>4</DefaultConsent>
- <DisableWER>1</DisableWER>
- </component>
- <component name="Microsoft-Windows-ErrorReportingCore" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <DefaultConsent>4</DefaultConsent>
- <DisableWER>1</DisableWER>
- </component>
复制代码
3、激活管理员:
- <AutoLogon>
- <Username>Administrator</Username>
- <Enabled>true</Enabled>
- <LogonCount>1</LogonCount>
- </AutoLogon>
复制代码
4、推迟一个阶段运行:
- <RunSynchronous>
- <RunSynchronousCommand wcm:action="add">
- <Description>RunOnce</Description>
- <Order>1</Order>
- <Path>reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" /f /v "CMD" /t REG_SZ /d "%SystemRoot%\Setup\Complete.cmd"</Path>
- </RunSynchronousCommand>
- </RunSynchronous>
复制代码
5、不要设置电脑名称(不解释) |
|