@echo off
pushd "%~dp0"

:MAIN
if exist X:\I386\explorer.exe goto runminiwinxp
if exist X:\bootmgr goto runminiwin8
start msgbox "Sorry but this only works from Mini Windows XP or Mini Windows 10" 0 "OS Errors"
exit

:runminiwin8

if not exist "%PUBLIC%" (
goto ati2014
)

if not exist %SystemRoot%\SysWOW64\wdscore.dll goto ati2014

echo  Your Windows is 7/8/10 64 Bit
SET agree=
SET /P agree=Do you want run Acronis True Image 2016 (Y/N = Yes/No)?:
echo.
IF /I NOT '%agree%'=='Y' IF /I NOT '%agree%'=='N' goto MAIN
IF /I '%agree%'=='Y' (
goto ati2016
)
goto ati2014
cls
exit

:ati2016
if exist "%temp%\DLC1Temp\AcronisTrueImageHome2016\TrueImage.exe" goto aati2016
7z.exe x -o"%temp%\DLC1Temp\AcronisTrueImageHome2016" -y files\AcronisTrueImageHome2016.7z
start "" /D"%temp%\DLC1Temp\AcronisTrueImageHome2016" "atih.cmd"
exit
:aati2016
start "" /D"%temp%\DLC1Temp\AcronisTrueImageHome2016" "atih.cmd"
exit

:ati2014
if exist "%temp%\DLC1Temp\AcronisTrueImageHome2014\TrueImage.exe" goto aati2014
7z.exe x -o"%temp%\DLC1Temp\AcronisTrueImageHome2014" -y files\AcronisTrueImageHome2014.7z
start "" /D"%temp%\DLC1Temp\AcronisTrueImageHome2014" "atih.cmd"
exit
:aati2014
start "" /D"%temp%\DLC1Temp\AcronisTrueImageHome2014" "TrueImage.exe"
exit

:runminiwinxp
nircmd killprocess DLC1Menu.exe
nircmd killprocess DLC2Menu.exe
if exist "%temp%\DLC1Temp\AcronisTrueImageHome2014\TrueImage.exe" goto arunminiwinxp
7z.exe x -o"%temp%\DLC1Temp\AcronisTrueImageHome2014" -y files\AcronisTrueImageHome2014.7z
start "" /D"%temp%\DLC1Temp\AcronisTrueImageHome2014" "atihxp.cmd"
exit
:arunminiwinxp
start "" /D"%temp%\DLC1Temp\AcronisTrueImageHome2014" "TrueImage.exe"
exit