improve batch script installers

- remove annoying confirmations on disable/enable scripts
- fix disable script on x86
- make sure Schedule service is running before trying do anything with
schtasks
This commit is contained in:
zeffy
2017-06-13 04:08:22 -07:00
parent 3d0b322f1e
commit c4a78a3e24
4 changed files with 7 additions and 26 deletions

View File

@@ -27,11 +27,8 @@ fltmc >nul 2>&1 || (
goto :die
)
set /p CONTINUE=Enter 'Y' if you want to enable wufuc:
if /I not "%CONTINUE%"=="Y" goto :cancel
echo.
set "wufuc_task=wufuc.{72EEE38B-9997-42BD-85D3-2DD96DA17307}"
net start Schedule
schtasks /Change /TN "%wufuc_task%" /ENABLE
schtasks /Run /TN "%wufuc_task%"
@@ -40,12 +37,5 @@ echo Enabled and started wufuc!
:die
echo.
echo Press any key to exit...
pause >nul
exit
:cancel
echo.
echo Canceled by user, press any key to exit...
pause >nul
pause
exit