解决安装“ 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
运行一遍就行。。。。。
|