Foxtable(狐表)用户栏目专家坐堂 → [求助]检测环境


  共有2872人关注过本帖树形打印复制链接

主题:[求助]检测环境

帅哥哟,离线,有人找我吗?
baicaocao
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:一尾狐 帖子:497 积分:4892 威望:0 精华:0 注册:2012/4/20 8:42:00
  发帖心情 Post By:2015/8/21 11:57:00 [显示全部帖子]

有,事一个批处理文件。亲,我发一下。
ver | find "5.1." > NUL &&  goto win_xp       
ver | find "6.0." > NUL &&  goto vista   
ver | find "6.1." > NUL &&  goto win7    
ver | find "6.2." > NUL &&  goto win8 
:win_xp
set INS45="WindowsXP-KB942288-v3-x86.exe" 
IF not EXIST %INS45% (
echo 正在安装 Windows Installer4.5...
wget -c http://download.microsoft.com/download/2/6/1/261fca42-22c0-4f91-9451-0e0f2e08356d/WindowsXP-KB942288-v3-x86.exe
)
%INS45% /quiet /norestart /nobackup /passive
IF NOT EXIST "%WINDIR%\Microsoft.NET\Framework\v2.*" (
set net20 = "NetFx20SP2_x86.exe"
set hnet = "http://download.microsoft.com/download/c/6/e/c6e88215-0178-4c6c-b5f3-158ff77b1f38/NetFx20SP2_x86.exe"
IF NOT EXIST "NetFx20SP2_x86.exe" (
echo 正在下载 .net20... 
wget -c http://download.microsoft.com/download/c/6/e/c6e88215-0178-4c6c-b5f3-158ff77b1f38/NetFx20SP2_x86.exe
)
echo 正在安装 .net20...
NetFx20SP2_x86.exe /quiet norestart
)
goto STARTSETUP
:win7
:STARTSETUP

echo 环境已经全部安装完成.点击安装软件.
setup.exe

 回到顶部
帅哥哟,离线,有人找我吗?
baicaocao
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:一尾狐 帖子:497 积分:4892 威望:0 精华:0 注册:2012/4/20 8:42:00
  发帖心情 Post By:2015/8/21 14:21:00 [显示全部帖子]

ver | find "5.1." > NUL &&  goto win_xp       
ver | find "6.0." > NUL &&  goto vista   
ver | find "6.1." > NUL &&  goto win7    
ver | find "6.2." > NUL &&  goto win8 
:win_xp
set INS45="WindowsXP-KB942288-v3-x86.exe" 
IF not EXIST %INS45% (
echo 正在安装 Windows Installer4.5...
wget -c http://download.microsoft.com/download/2/6/1/261fca42-22c0-4f91-9451-0e0f2e08356d/WindowsXP-KB942288-v3-x86.exe
)
%INS45% /quiet /norestart /nobackup /passive
IF NOT EXIST "%WINDIR%\Microsoft.NET\Framework\v2.*" (
set net20 = "NetFx20SP2_x86.exe"
set hnet = "http://download.microsoft.com/download/c/6/e/c6e88215-0178-4c6c-b5f3-158ff77b1f38/NetFx20SP2_x86.exe"
IF NOT EXIST "NetFx20SP2_x86.exe" (
echo 正在下载 .net20... 
wget -c http://download.microsoft.com/download/c/6/e/c6e88215-0178-4c6c-b5f3-158ff77b1f38/NetFx20SP2_x86.exe
)
echo 正在安装 .net20...
NetFx20SP2_x86.exe /quiet norestart
)
goto STARTSETUP
:win7
:STARTSETUP
set SQL2005="SQLEXPR_CHS.EXE"
IF NOT EXIST %SQL2005% (
echo 正在下载 .sqlexpr2005...
wget -c http://download.microsoft.com/download/0/9/0/09020fab-d2c3-4a8c-b9e0-db53a7a30ae8/SQLEXPR_CHS.EXE
)
echo 正在安装 SQLserver 2005 Express... 
SQLEXPR_CHS.EXE /qb INSTANCENAME="MSSQLSERVER" ADDLOCAL=All SECURITYMODE=SQL SAPWD="1221wx" INSTALLSQLDIR="D:\MSSQL" INSTALLSQLDATADIR="D:\MSSQL\DATA" SQLAUTOSTART=1 DISABLENETWORKPROTOCOLS=0
echo 环境已经全部安装完成.点击安装软件.
setup.exe

 回到顶部