2024年1月6日发(作者:)
利用WSIM创建自应答文件,实现Vista的自动安装
1、创建安装应答文件
在WSIM窗口中执行“File”→“Select Windows Image”弹出对话框,定位到C:Test,单击Files of type右侧的下拉列表选择Catalog files(*.clg),然后从中选择一个应答文件,我们选择install_Windows Vista ,单击“Open”将其添加进来。接下来执行“File”→“New Answer File”可以看到创建应答文件成可以看到创建应答文件成功。 2、应答文件基本设置
(1).语言设置
语言设置
在WSIM窗口的Windows Image面板中依次展开“Windows Vista BUSINESS(Catalog)→“Components”→“x86_Microsoft-Windows-International-Core-WinPE__neutral”,在“x86_Microsoft-Windows-International-Core-“x86_Microsoft-Windows-International-Core-WinPE__neutral”上右键单击选择“Add Setting to Pass1 windowsPE”将其添加到应答文件中。然后选中x86_Microsoft-Windows-International-Core- InputLocale:en-US、SystemLocale:en-US、
WinPE_neutra在Properties面板中进行设置。其具体的设置是:UILanguage:en-US、UserLocale:en-US,点击SetupUILanguage设置其右侧的UILanguage值为en-US。
(2).磁盘设置
磁盘设置
在WSIM窗口的Windows Image面板中依次展开Windows Vista BUSINESS(Catalog)Components x86_Microsoft-Windows-Setup__neutralDiskConfiguration,右键单击DiskConfiguration选择Add Setting to Pass1 windowsPE。在Answer File面板中选择x86_Microsoft-Windows-Setup_neutralDiskConfiguration,在Properties面板中设置WillShowUI为OnError。
在Windows Image面板中依次展开Windows Vista BUSINESS(Catalog)Components x86_Microsoft-Windows-Setup__neutralDiskConfigurationDisk,右键单击Disk选择Add Setting to Pass 1 windowsPE,在Answer File面板中选择Disk,设置其属性DiskID为0,WillWipeDisk为true。展开Disk,
右键单击CreatePartitions,选择Insert New CreatePartition,设置其,设置其Properties面板中的值,Order为1,Size为50000,Type为Primary。右击ModifyPartitions选择Insert New ModifyPartition,设置其属性面板中的值,Active为true、Extend为false、
Format为NTFS、Label为Boot、Letter为C、Order为1、PartitionID为1。
在Windows Image面板中依次展开Componentsx86_Microsoft-Windows-Setup__neutralImageInstallOSImageInstallTo,右键单击InstallTo选择Add Setting to Pass 1 windowsPE。在Answer File面板中展开OSImage,选择InstallTo在其属性面板中设置DiskID为0,PartitionID为1。
(3).用户设置
用户设置
在WSIM窗口的Windows Image面板中展开Componentsx86_Microsoft-Windows-Setup__neutral,右键单击UserData选择Add Setting to Pass 1 windowsPE。在Answer File面板中选择UserData设置其属性,AcceptEula为true、FullName为Ctocio、
Organization为ctocio。展开UserData选择ProductKey,设置其属性Key(序列号我们随便编写一个)为aaaa-bbbb-cccc-dddd-eeee、WillShowUI为OnError。
在Windows Image面板中展开x86_Microsoft-Windows-Shell-Setup_6.0..4_neutral,右键单击UserAccounts选择Add Settingto Pass 7 oobeSystem。在Answer File面板中展开UserAccounts,选择AdministratorPassword,在属性面板中设置其密码。右键单击DomainAccounts选择Insert New DomainAccountList,然后在属性面板中设置Domain为Ctocio。并选择Insert New DomainAccount,设置,设置Group为Administrators、Name为Ctocio。 (4).桌面设置
桌面设置
在WSIM窗口的Windows Images面板中依次展开Componentsx86_Microsoft-Windows-Shell-Setup__neutral,右键单击Themes选择Add Setting to Pass 7 oobeSystem。在Answer File面板中选择Themes,然后在属性面板中设置DefaultThemesOff为true。在
Windows Images面板中依次展开Componentsx86_Microsoft-Windows-Sidebar_,然后右键单击该项选择Add Setting to Pass 7 oobeSystem。在Answer File面板中选择x86_Microsoft-Windows-Sidebar_neutral,在属性面板中设置SidebarOnByDefault为false、SidebarVisible为false。
(5).IE设置
在Windows Image面板中依次展开Componentsx86_Microsoft-Windows-
IE-InternetExplorer__neutral,右键单击该项选择Add setting to Pass 4 specalize。在Answer File面板中选择CompanyName为Ctocio、Home_Page为、该项,然后设置其属性BlockPopups为yes、IEWelcomeMsg为false、Window_Title_CN为Ctocio, Inc。 (6).组件安装设置
组件安装设置
在Windows Image面板中展开Packages/Foundation选中x86_Microsoft-Windows-Foundation-Package_,然后执行“Edit”→“Add to Answer File”,在Answer File面板中选择x86_Microsoft-Windows-Foundatation-Package然后设置属性,TabletPCOC为Disabled、TelnetClient为Enabled。 (7).输出文件
输出文件
在WSIM窗口的Distribution Share面板中展开Server1ctocio,右键单击Out-of-Box Drivers选择Insert Driver Path to Pass1 WindowsPE。在Answer File面板中展开PathAndCredentials[Key=”KeyValue”]选择Credentials,在Properties面板中进行设置,Domain为Ctocios、Password为test168、Username为ctocio。
(8).验证及保存应答文件
验证及保存应答文件
在WSIM窗口中执行“Tools”→“Validate Answer File”,我们可以从Messages面板中看到刚才设置的应答文件了。然后执行“File”→“Save Answer File”,我们可将刚才创建的应答文件保存起来。其实,应答文件,我们可将刚才创建的应答文件保存起来。其实,应答文件就是一个xml文件,我们可以用记事本打开进行查看。如果你懂xml语言可以不借助WSIM按照规范直接进行编写。
总结:在用Windows System Image Manager创建系统安装应答文件时,有非常多的选项可供大家选择设创建系统安装应答文件时,有非常多的选项可供大家选择设置,本文只是选取了其中比较重要的几个选项。对于其他的选项,大家可以按照上面的方法进行设置。


发布评论