@echo off
if "%COMPUTERNAME:~0,6%"=="MiniXP" goto runati
if exist %SystemRoot%\AcronisTrueImageHome.ico goto runati
start msgbox "Sorry but this only works from Mini Windows XP or Mini Windows 8" 0 "OS Errors"
exit

:runati
if exist "%temp%\DLC1Temp\AcronisTrueImageHome2014\TrueImage.exe" goto run2014
if exist "%temp%\DLC1Temp\AcronisTrueImageHome2015\TrueImage.exe" goto run2015
start msgbox "You must run Acronis True Image before run Acronis True Image Shell" 0 "Run Errors"
exit

:run2014
if exist %SystemRoot%\SysWOW64\wdscore.dll goto run2014x64
7z.exe x -o"%temp%\DLC1Temp\AcronisTrueImageHome2014" -y files\AcronisTrueImageShellx86.7z
start "" /D"%temp%\DLC1Temp\AcronisTrueImageHome2014" "TIBShell.cmd"
cls
echo Now you can open tib file in explorer
pause >nul
exit

:run2014x64
7z.exe x -o"%temp%\DLC1Temp\AcronisTrueImageHome2014" -y files\AcronisTrueImageShellx64.7z
start "" /D"%temp%\DLC1Temp\AcronisTrueImageHome2014" "TIBShell.cmd"
cls
echo Now you can open tib file in explorer
pause >nul
exit


:run2015
if exist %SystemRoot%\SysWOW64\wdscore.dll goto run2015x64
7z.exe x -o"%temp%\DLC1Temp\AcronisTrueImageHome2015" -y files\AcronisTrueImageShellx86.7z
start "" /D"%temp%\DLC1Temp\AcronisTrueImageHome2015" "TIBShell.cmd"
cls
echo Now you can open tib file in explorer
pause >nul
exit

:run2015x64
7z.exe x -o"%temp%\DLC1Temp\AcronisTrueImageHome2015" -y files\AcronisTrueImageShellx64.7z
start "" /D"%temp%\DLC1Temp\AcronisTrueImageHome2015" "TIBShell.cmd"
cls
echo Now you can open tib file in explorer
pause >nul
exit