不伦不类。- Dim WshShell
- Set WshShell = CreateObject("wscript.Shell")
- WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\ServicePackSourcePath", "E:\IISsetup", "REG_SZ"
- WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\SourcePath", "E:\IISsetup", "REG_SZ"
- WshShell.Run "C:\Windows\\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis -i", 0, True
- WshShell.Run WshShell.ExpandEnvironmentStrings("%systemroot%") & "\system32\sysocmgr.exe /i:iis.inf /u:answer.txt", 0, True
- WshShell.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\OC Manager\Subcomponents\aspnet", 1, "REG_DWORD"
- With WshShell.CreateShortcut(WshShell.SpecialFolders("Desktop") & "\Internet 信息服务(IIS)管理器.lnk")
- .TargetPath = WshShell.ExpandEnvironmentStrings("%systemroot%") & "\system32\inetsrv\iis.msc"
- .WorkingDirectory = "C:\WINDOWS\system32\inetsrv"
- .Save
- End With
复制代码
|