@echo off
set LOG_FILE=%cd%\setup.log
echo "----------Begin to uninstall SQL Server services-----------" >> %LOG_FILE%
setup.exe /ConfigurationFile=SQL_uninstall_ConfigurationFile.INI /Q
set EXIT_CODE=%errorlevel%
if %EXIT_CODE% neq 0 (
echo "Uninstall MSSQLSERVER failed." >> %LOG_FILE%
goto END
)
echo "-----------Uninstall SQL Service successfully----------" >> %LOG_FILE%
:END
exit %errorlevel%
set LOG_FILE=%cd%\setup.log
echo "----------Begin to uninstall SQL Server services-----------" >> %LOG_FILE%
setup.exe /ConfigurationFile=SQL_uninstall_ConfigurationFile.INI /Q
set EXIT_CODE=%errorlevel%
if %EXIT_CODE% neq 0 (
echo "Uninstall MSSQLSERVER failed." >> %LOG_FILE%
goto END
)
echo "-----------Uninstall SQL Service successfully----------" >> %LOG_FILE%
:END
exit %errorlevel%
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/14710393/viewspace-1518441/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/14710393/viewspace-1518441/