$file = FileSelectFolder("选择I386文件夹位置.", "")
$SIF = $file & "\WINNT.SIF"
If FileExists($SIF) Then FileDelete($SIF)
;[Data]
IniWrite($SIF, 'Data', 'AutomaticUpdates', '"Yes"')
IniWrite($SIF, 'Data', 'Autopartition', '0')
IniWrite($SIF, 'Data', 'MsDosInitiated', '0')
IniWrite($SIF, 'Data', 'UnattendedInstall', '"Yes"' & @CRLF)
;[Unattended]
IniWrite($SIF, 'Unattended', 'UnattendMode', 'DefaultHide')
IniWrite($SIF, 'Unattended', 'UnattendSwitch', '"Yes"')
IniWrite($SIF, 'Unattended', 'OemPreinstall', '"Yes"')
IniWrite($SIF, 'Unattended', 'OemSkipEula', '"Yes"')
IniWrite($SIF, 'Unattended', 'FileSystem', '*')
IniWrite($SIF, 'Unattended', 'WaitForReboot', '"No"')
IniWrite($SIF, 'Unattended', 'NoWaitAfterTextMode', '1')
IniWrite($SIF, 'Unattended', 'NoWaitAfterGUIMode', '1')
IniWrite($SIF, 'Unattended', 'DriverSigningPolicy', 'Ignore')
IniWrite($SIF, 'Unattended', 'NonDriverSigningPolicy', 'Ignore')
IniWrite($SIF, 'Unattended', 'Hibernation', '"No"' & @CRLF)
;[SystemRestore]
IniWrite($SIF, 'SystemRestore', 'DisableSR', '1')
IniWrite($SIF, 'SystemRestore', 'CreateFirstRunRp', '0' & @CRLF)
;[GuiUnattended]
IniWrite($SIF, 'GuiUnattended', 'AdminPassword', 'edppc')
IniWrite($SIF, 'GuiUnattended', 'TimeZone', '210')
IniWrite($SIF, 'GuiUnattended', 'OEMSkipRegional', '1')
IniWrite($SIF, 'GuiUnattended', 'OemSkipWelcome', '1')
IniWrite($SIF, 'GuiUnattended', 'DetachedProgram', '"%WinDir%\DrvLoad.exe"' & @CRLF);T39 调用驱动
;[Components]
IniWrite($SIF, 'Components', 'Iis_common', 'Off')
IniWrite($SIF, 'Components', 'Iis_ftp', 'Off')
IniWrite($SIF, 'Components', 'Iis_inetmgr', 'Off')
IniWrite($SIF, 'Components', 'Iis_internetdataconnector', 'Off')
IniWrite($SIF, 'Components', 'Iis_nntp', 'Off')
IniWrite($SIF, 'Components', 'Iis_serversideincludes', 'Off')
IniWrite($SIF, 'Components', 'Iis_smtp', 'Off')
IniWrite($SIF, 'Components', 'Iis_webadmin', 'Off')
IniWrite($SIF, 'Components', 'Iis_webdav', 'Off')
IniWrite($SIF, 'Components', 'Iis_www', 'Off')
IniWrite($SIF, 'Components', 'Iis_www_vdir_scripts', 'Off')
IniWrite($SIF, 'Components', 'Iis_asp', 'Off' & @CRLF)
;[UserData]
IniWrite($SIF, 'UserData', 'ProductKey', '"JPPGG-YFBYT-9G4F8-JQJTF-QPVF3"')
IniWrite($SIF, 'UserData', 'ComputerName', '*')
IniWrite($SIF, 'UserData', 'FullName', '"电脑部定制"')
IniWrite($SIF, 'UserData', 'OrgName', '"Custom"' & @CRLF)
;[RegionalSettings]
IniWrite($SIF, 'RegionalSettings', 'LanguageGroup', '10');旧值 10,9
IniWrite($SIF, 'RegionalSettings', 'Language', '"0804"' & @CRLF)
;[Networking]
IniWrite($SIF, 'Networking', 'InstallDefaultComponents', '"Yes"' & @CRLF)
;[WindowsFirewall]
IniWrite($SIF, 'WindowsFirewall', 'Profiles', 'WindowsFirewall.TurnOffFirewall' & @CRLF)
;[WindowsFirewall.TurnOffFirewall]
IniWrite($SIF, 'WindowsFirewall.TurnOffFirewall', 'Mode', '0' & @CRLF)
;[Identification]
IniWrite($SIF, 'Identification', 'JoinWorkgroup', '"WORKGROUP"' & @CRLF);设置工作组
;[GuiRunOnce]
IniWrite($SIF, 'GuiRunOnce', 'Command0', '"%windir%\Temp\RunOnce.exe"' & @CRLF);首次登陆系统运行程序
ShellExecute($SIF)