分享

解决安装“ sql server 2005 com+ 目录要求”警告的方法

 晨钟2012 2012-09-24

解决安装“ sql server 2005 com+ 目录要求”警告的方法


 用法: 创建记事本,然后改后缀名为.bat

@echo off  
setlocal  
@echo %WINDIR%\System32\msdtc.exe -uninstall  
%WINDIR%\System32\msdtc.exe -uninstall  
call :delkey "HKCR\CID"  
call :delkey "HKLM\SYSTEM\CurrentControlSet\Services\MSDTC"  
call :delkey "HKLM\SYSTEM\ControlSet001\Services\MSDTC"  
call :delkey "HKLM\SYSTEM\ControlSet002\Services\MSDTC"  
call :delkey "HKLM\Software\Microsoft\MSDTC"  
@echo %WINDIR%\System32\msdtc.exe -install  
%WINDIR%\System32\msdtc.exe -install  
endlocal  
goto :EOF  
:delkey  
set key=%1  
call :delkeyq %key% >nul 2>&1  
@echo.   
goto :EOF  
:delkeyq  
REG DELETE %key% /F 
@echo off
setlocal
@echo %WINDIR%\System32\msdtc.exe -uninstall
%WINDIR%\System32\msdtc.exe -uninstall
call :delkey "HKCR\CID"
call :delkey "HKLM\SYSTEM\CurrentControlSet\Services\MSDTC"
call :delkey "HKLM\SYSTEM\ControlSet001\Services\MSDTC"
call :delkey "HKLM\SYSTEM\ControlSet002\Services\MSDTC"
call :delkey "HKLM\Software\Microsoft\MSDTC"
@echo %WINDIR%\System32\msdtc.exe -install
%WINDIR%\System32\msdtc.exe -install
endlocal
goto :EOF
:delkey
set key=%1
call :delkeyq %key% >nul 2>&1
@echo.
goto :EOF
:delkeyq
REG DELETE %key% /F

 


 
运行一遍就行。。。。。

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多