Windows Service
InstallService.bat
@ECHO OFFecho 准备安装服务
echo ---------------------------------------------------
echo 安装服务...
Sc create "KenTestService" binpath= "L:\Job\KenTestJob\JobService\KenTestService.exe" displayname= "KenTestService"
echo ---------------------------------------------------
echo 安装结束!
pause
UnstallService.bat
@ECHO OFFecho 准备卸载服务
echo ---------------------------------------------------
echo 停止服务...
sc stop "KenTestService"
echo 卸载服务...
Sc delete "KenTestService"
echo ---------------------------------------------------
echo 卸载服务结束!
pause
md "$(ProjectDir)bin\$(ConfigurationName)\SOBigDataJob"
md "$(ProjectDir)bin\$(ConfigurationName)\SOBigDataJob\CustomerFactBase"
md "$(ProjectDir)bin\$(ConfigurationName)\SOBigDataJob\CustomerFactBase\JobConfigs"
md "$(ProjectDir)bin\$(ConfigurationName)\SOBigDataJob\CustomerFactBase\JobConfigs\Job"
md "$(ProjectDir)bin\$(ConfigurationName)\SOBigDataJob\CustomerFactBase\JobConfigs\MisLibConfigs"
md "$(ProjectDir)bin\$(ConfigurationName)\SOBigDataJob\CustomerFactBase\JobConfigs\ReferenceLib"
md "$(ProjectDir)bin\$(ConfigurationName)\SOBigDataJob\CustomerFactBase\JobConfigs\ServiceInstall"
xcopy "$(SolutionDir)SolutionItems\JobConfigs\Job" "$(ProjectDir)bin\$(ConfigurationName)\SOBigDataJob\CustomerFactBase\JobConfigs\Job" /s/y
xcopy "$(SolutionDir)SolutionItems\JobConfigs\MisLibConfigs" "$(ProjectDir)bin\$(ConfigurationName)\SOBigDataJob\CustomerFactBase\JobConfigs\MisLibConfigs" /s/y
xcopy "$(SolutionDir)SolutionItems\JobConfigs\ReferenceLib" "$(ProjectDir)bin\$(ConfigurationName)\SOBigDataJob\CustomerFactBase\JobConfigs\ReferenceLib" /s/y
xcopy "$(SolutionDir)SolutionItems\JobConfigs\ServiceInstall" "$(ProjectDir)bin\$(ConfigurationName)\SOBigDataJob\CustomerFactBase\JobService" /s/y
xcopy "$(SolutionDir)JobConsole\bin\$(ConfigurationName)\SOBigDataJob\JobService" "$(ProjectDir)bin\$(ConfigurationName)\SOBigDataJob\CustomerFactBase\JobService" /s/y