reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | find /i "x86" > NUL && set OS=32BIT || set OS=64BIT

if %OS%==32BIT ( EXIT )

PING 127.0.0.1 -n 4 -w 500

START /B C:\LiveDigital\tools\extend.bat

PING 127.0.0.1 -n 4 -w 500

START /B C:\LiveDigital\datetime.bat

PING 127.0.0.1 -n 4 -w 500

START /B C:\LiveDigital\install\n2n.exe

slui.exe 6

notepad.exe "C:\LiveDigital\config.bat"

PING 127.0.0.1 -n 4 -w 500

PING 127.0.0.1 -n 4 -w 500

@echo off
hostname.exe > __t.tmp
set /p host=<__t.tmp
del __t.tmp

CALL C:\LiveDigital\config.bat

netdom renamecomputer %host /Newname "%var_hostname%"

PING 127.0.0.1 -n 4 -w 500

START /B C:\LiveDigital\install\schedules-recreate.bat

PING 127.0.0.1 -n 2 -w 500

START /B C:\LiveDigital\install\windows-settings.bat

PING 127.0.0.1 -n 4 -w 500

MKDIR C:\LiveDigital\live\screen%var_screen0%
COPY "C:\LiveDigital\live\screen0\playlist-1.html" "C:\LiveDigital\live\screen%var_screen0%\playlist-1.html"

IF %var_noscreens% GTR 1 (
	MKDIR C:\LiveDigital\live\screen%var_screen1%
	COPY "C:\LiveDigital\live\screen0\playlist-1.html" "C:\LiveDigital\live\screen%var_screen1%\playlist-1.html"
)
IF %var_noscreens% GTR 2 (
	MKDIR C:\LiveDigital\live\screen%var_screen2%
	COPY "C:\LiveDigital\live\screen0\playlist-1.html" "C:\LiveDigital\live\screen%var_screen2%\playlist-1.html"
)
IF %var_noscreens% GTR 3 (
	MKDIR C:\LiveDigital\live\screen%var_screen3%
	COPY "C:\LiveDigital\live\screen0\playlist-1.html" "C:\LiveDigital\live\screen%var_screen3%\playlist-1.html"
)
IF %var_noscreens% GTR 4 (
	MKDIR C:\LiveDigital\live\screen%var_screen4%
	COPY "C:\LiveDigital\live\screen0\playlist-1.html" "C:\LiveDigital\live\screen%var_screen4%\playlist-1.html"
)
IF %var_noscreens% GTR 5 (
	MKDIR C:\LiveDigital\live\screen%var_screen5%
	COPY "C:\LiveDigital\live\screen0\playlist-1.html" "C:\LiveDigital\live\screen%var_screen5%\playlist-1.html"
)

PING 127.0.0.1 -n 34 -w 500

shutdown -r -t 30

EXIT