2022-11-13 22:12:39 +01:00
|
|
|
@echo off
|
|
|
|
call check-for-admin
|
2022-11-25 15:29:57 +01:00
|
|
|
if %ERRORLEVEL% neq 0 exit /b
|
2022-11-13 22:12:39 +01:00
|
|
|
|
2023-03-11 23:38:45 +01:00
|
|
|
set TOOLS=%SystemDrive%\tools
|
2024-02-21 13:25:46 +01:00
|
|
|
set INIFILE=..\scripts\config\snapcontrol.ini
|
2024-02-22 16:05:29 +01:00
|
|
|
set SOFTWARE=..\software
|
2022-11-13 22:12:39 +01:00
|
|
|
|
|
|
|
echo ####### %0 #######
|
|
|
|
|
2024-02-22 16:05:29 +01:00
|
|
|
echo copy snapcontrol binary to [ %windir% ] ...
|
|
|
|
copy /Y %SOFTWARE%\snapcontrol.exe %windir% 2>nul
|
2023-03-12 11:28:34 +01:00
|
|
|
|
2024-02-22 16:05:29 +01:00
|
|
|
if EXIST %SOFTWARE%\snapshot64_licensed.exe (
|
|
|
|
|
|
|
|
echo copying LICENSED snapshot64 to %windir% ...
|
|
|
|
copy /Y %SOFTWARE%\snapshot64_licensed.exe %windir%\snapshot64.exe
|
|
|
|
|
|
|
|
) else (
|
|
|
|
|
|
|
|
echo copying STANDARD snapshot64 to boot image ...
|
|
|
|
copy /Y %SOFTWARE%\snapshot64.exe %windiw%
|
|
|
|
|
|
|
|
)
|
2024-02-21 13:25:46 +01:00
|
|
|
|
2024-02-22 16:05:29 +01:00
|
|
|
if NOT EXIST %windir%\snapcontrol.ini (
|
|
|
|
|
|
|
|
echo copying STANDARD inifile to %windir% ...
|
|
|
|
copy /Y %INIFILE% %windir%
|
2024-02-21 13:25:46 +01:00
|
|
|
|
2024-02-22 16:05:29 +01:00
|
|
|
) else (
|
|
|
|
|
|
|
|
echo inifile already copied. nothing to do!
|
2023-03-11 23:38:45 +01:00
|
|
|
|
2024-02-22 14:24:16 +01:00
|
|
|
)
|
|
|
|
|
2024-02-22 16:05:29 +01:00
|
|
|
echo creating scheduler task ...
|
|
|
|
%windir%\snapcontrol /I
|
|
|
|
|
2022-11-13 22:12:39 +01:00
|
|
|
echo ####### %0 #######
|
|
|
|
pause
|
|
|
|
|