@echo off&setlocal ENABLEEXTENSIONS DISABLEDELAYEDEXPANSION&REM v0.3
set name=Carma2Demo
echo.%name%...
for /F "tokens=3,*" %%A in ('reg query "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "Local AppData"^|find /V "HKEY_"') do @call set DIR=%%B\RApps\appdb
if /I "%~1"=="/Expert" (shift) else call "%systemroot%\system32\rapps" /INSTALL /S ?
2>nul md "%DIR%"
>nul copy /Y "%~f0" "%DIR%\%name%.txt"
if /I not "%~1"=="/NoInstall" start "" "%systemroot%\system32\rapps.exe" /INSTALL %~1 %name%
goto :EOF
[Section]
Name = Carmageddon II (Demo)
Description = Carmageddon II Carpocalypse Now is the stunning sequel to what many would consider is the world's best driving game, but this time it's bigger and better, and this time it's personal. It's not about manic driving this time, it's about cold calculated skill. This time Max Damage is clinically insane. They have to run for their life, you have to drive for yours.
Screenshot1 = https://archive.org/download/Carmageddon2CarpocalypseNowDemo/Carmageddon2Screenshot.png
Category = 4
LicenseType = 3
Version = 1.0
URLDownload = https://archive.org/download/Carmageddon2CarpocalypseNowDemo/Carmageddon2Demo.zip
SHA1 = edeab827907bc0603c21d82f9957c0ff4ee43a02
SizeBytes = 23022621
RegName = CarmageddonII
Dependencies = winevdm|mesagallium
;Installer = ExeInZip
;[ExeInZip]
;Exe = setup.exe (does not work, ntvdm needs job object wait)