|
没做任何优化安装,WIT相比cgi的区别:
多出键值
SOFTWARE
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]
"FirstRUN"="C:\\Windows\\Temp\\FirstRUN.vbs"
对应的VBS文件
On Error Resume Next
DIM WShell, FSO, Windir
Windir = WshSysEnv.Item("Windir")
SET WShell=CreateObject("WScript.Shell")
SET FSO = WScript.CreateObject("Scripting.FileSystemObject")
WShell.RegWrite "HKLM\System\CurrentControlSet\Services\Tcpip\Parameters\Hostname","WIT-5097"
WShell.RegWrite "HKLM\System\CurrentControlSet\Services\Tcpip\Parameters\NV Hostname","WIT-5097"
WShell.RegWrite "HKLM\System\CurrentControlSet\Control\ComputerName\ComputerName\ComputerName","WIT-5097"
WShell.RegWrite "HKLM\System\CurrentControlSet\Control\ComputerName\ActiveComputerName\ComputerName","WIT-5097"
FSO.DeleteFolder (Windir & "\Setup\Scripts")
FSO.DeleteFile(WScript.ScriptFullName) |
|