@echo off if not exist launchbox.exe goto a1 cls echo. echo Either eXoWin3x has previously been setup in this folder or eXoDOS was previously echo setup in this folder. echo. echo eXoWin3x should be set up in it's own folder, and then merged with eXoDOS after echo setup is complete. echo. echo Press 1 to Re-extract eXoWin3x or Update to a New Version echo Press 2 to Re-Configure your Existing Copy echo Press 3 to Quit if eXoWin3x has never been set up before echo. echo Option 1 should be used if you need to reset the pack to it's original echo settings or if you are updating to a new version. echo. echo Option 2 can be used to change the default game settings, but leave all echo of the extracted metadata and files alone. echo. echo Option 3 should be used to exit setup if you have copied eXoWin3x to your echo eXoDOS folder without setting it up first. echo. .\eXo\util\choice /C:123 /N Please Choose: if errorlevel = 3 goto end if errorlevel = 2 goto skipxtract if errorlevel = 1 goto a1 :a1 cd exo cd util unzip.exe -o -q util3x.zip CHOICE.EXE cd .. cd .. cls echo. echo Welcome to eXoWin3x. This setup will extract the necessary files to use the project echo with LaunchBox. If you have an existing launchbox setup you would like to merge echo with, go ahead and run this setup and then check the section in the manual on how echo to combine files. echo. echo Setup will now check to make sure you have the necessary files. echo. pause if not exist .\eXo\util\util3x.zip ( echo. echo ERROR echo. echo You are missing the util.zip file. This file contains dosbox itself, along with several echo utilities required to run the games included with this pack. echo. echo The file resides in the .\eXoWin3x\util folder echo Please make sure this file has been downloaded before proceeding with setup. echo. echo Exiting setup pause goto end ) if not exist .\Content\!Win3Xmetadata.zip ( echo. echo ERROR echo. echo You are missing the !Win3Xmetadata.zip file. Without this, the entire pack is unplayable. echo This file contains the actual launch files and configuration files need to play the games. echo Please download this file and then re-run setup. echo. echo Exiting setup pause goto end ) if not exist .\Content\LaunchBox.zip ( echo. echo ERROR echo. echo You are missing the LaunchBox.zip file. Without this, you will have no front end. echo. echo If you plan to use a different front end or no front end at all, you can choose echo to continue. echo. goto check ) if not exist .\Content\XOWin3xMetadata.zip ( echo. echo ERROR echo You are missing the XOWin3xMetadata.zip file. Without this LaunchBox will not run properly. echo This file contains the manuals, xml, and image data LaunchBox needs. echo. echo If you plan to use a different front end or no front end at all, you can choose echo to continue. echo. goto check ) goto install :check echo. echo Do you want to continue setup without support for LaunchBox? echo. echo Note: Launchbox is the front end. Without it, you will simply have a collection echo of Windows 3x zip files and a !win3x folder full of conf files and game launch files. echo Do not use this method if you aren't 100% sure of what you are doing. echo. .\exo\util\choice /C:YN /N (Y)es or (N)o If errorlevel = 2 goto end If errorlevel = 1 goto skip :install cls echo. echo All files verified. echo. echo Beginning setup echo. echo Step 1 echo Extracting LaunchBox files echo Estimated Time: Less than 5 minutes. echo. .\eXo\util\unzip -o -q .\Content\LaunchBox.zip -d .\ cls echo. echo Step 2 echo Extracting LaunchBox Metadata echo Estimated Time: 15-20 minutes. echo. pause .\eXo\util\unzip -o .\Content\XOWin3xMetadata.zip -d .\ cls echo. echo Step 3 echo Extracting eXoWin3x Files echo Estimated Time: 10-15 minutes. echo. pause :skip if exist .\eXo\eXoWin3x\!win3x rd .\eXo\eXoWin3x\!win3x /s /q .\eXo\util\unzip -o .\Content\!Win3Xmetadata.zip cd eXo if exist DataCache.txt del DataCache.txt .\util\unzip -o .\util\util3x.zip -d .\util .\util\unzip -o .\util\mt32.zip .\util\unzip -o .\util\SHADERS.zip .\util\unzip -o .\util\dosbox.zip del .\util\mt32.zip del .\util\dosbox.zip del .\util\SHADERS.zip cd .. goto xml :skipxtract goto xml :xml cls echo. echo Would you like to remove access to Adult games from LaunchBox? echo. echo Note: In this case, "Adult" refers to games with nudity rather than violence. echo Note 2: If they have previously been removed, choosing NO here will restore them. echo. .\eXo\util\choice /C:NY /N (Y)es or (N)o If errorlevel = 2 goto YESA If errorlevel = 1 goto NOA :NOA copy ".\xml\Windows 3x.xml" ".\Data\Platforms\Windows 3x.xml" copy .\xml\Playlists\*.* .\Data\Playlists\ goto screen :YESA copy .\xml\WinFAMILY.xml ".\Data\Platforms\Windows 3x.xml" copy .\xml\Playlists\*.* .\Data\Playlists\ goto screen :screen cls echo. echo Would you like [F]ullscreen or [W]indowed mode to be the default setting? echo. echo Note: You will be able to choose this for each game individually when you echo run the games install file. echo. .\eXo\util\choice /C:FW If errorlevel = 2 goto WIN If errorlevel = 1 goto FULL :FULL cd eXo copy .\util\ssr.exe .\eXoWin3x\!win3x\ssr.exe cls echo. echo Please be patient, this may take a few minutes. echo. @cd eXoWin3x @cd !win3x for /F %%a in ('dir /A:D /B') DO ( if exist .\%%a\dosbox.conf ssr 0 fullscreen=false fullscreen=true ".\%%a\dosbox.conf" if exist .\%%a\dosbox2.conf ssr 0 fullscreen=false fullscreen=true ".\%%a\dosbox2.conf" ) del ssr.exe cd .. cd .. goto RES :WIN cd eXo copy .\util\ssr.exe .\eXoWin3x\!win3x\ssr.exe cls echo. echo Please be patient, this may take a few minutes. echo. @cd eXoWin3x @cd !win3x for /F %%a in ('dir /A:D /B') DO ( if exist .\%%a\dosbox.conf ssr 0 fullscreen=true fullscreen=false ".\%%a\dosbox.conf" if exist .\%%a\dosbox2.conf ssr 0 fullscreen=true fullscreen=false ".\%%a\dosbox2.conf" ) del ssr.exe cd .. cd .. goto RES :RES cd eXo cls echo. echo What is your primary desktop resolution? echo [L]arge (4k) echo [M]edium (1080) echo [S]mall (less than 1080) echo. .\util\choice /C:LMS if errorlevel = 3 goto small if errorlevel = 2 goto medium if errorlevel = 1 goto large :large copy .\util\ssr.exe .\eXoWin3x\!win3x\ssr.exe cls echo. echo Please be patient, this may take a few minutes. echo. @cd eXoWin3x @cd !win3x for /F %%a in ('dir /A:D /B') DO ( if exist .\%%a\dosbox.conf ssr 0 windowresolution=640x480 windowresolution=2560x1920 ".\%%a\dosbox.conf" if exist .\%%a\dosbox.conf ssr 0 windowresolution=800x600 windowresolution=2400x1800 ".\%%a\dosbox.conf" if exist .\%%a\dosbox.conf ssr 0 windowresolution=1024x768 windowresolution=2048x1536 ".\%%a\dosbox.conf" if exist .%%a\dosbox.conf ssr 0 windowresolution=1280x960 windowresolution=2560x1920 ".%%a\dosbox.conf" if exist .\%%a\dosbox2.conf ssr 0 windowresolution=640x480 windowresolution=2560x1920 ".\%%a\dosbox2.conf" if exist .\%%a\dosbox2.conf ssr 0 windowresolution=800x600 windowresolution=2400x1800 ".\%%a\dosbox2.conf" if exist .\%%a\dosbox2.conf ssr 0 windowresolution=1024x768 windowresolution=2048x1536 ".\%%a\dosbox2.conf" if exist .%%a\dosbox2.conf ssr 0 windowresolution=1280x960 windowresolution=2560x1920 ".%%a\dosbox2.conf" ) del ssr.exe cd .. cd .. goto ratio :medium copy .\util\ssr.exe .\eXoWin3x\!win3x\ssr.exe cls echo. echo Please be patient, this may take a few minutes. echo. @cd eXoWin3x @cd !win3x for /F %%a in ('dir /A:D /B') DO ( if exist .\%%a\dosbox.conf ssr 0 windowresolution=640x480 windowresolution=1280x960 ".\%%a\dosbox.conf" if exist .\%%a\dosbox.conf ssr 0 windowresolution=800x600 windowresolution=800x600 ".\%%a\dosbox.conf" if exist .\%%a\dosbox.conf ssr 0 windowresolution=1024x768 windowresolution=1024x768 ".\%%a\dosbox.conf" if exist .%%a\dosbox.conf ssr 0 windowresolution=2560x1920 windowresolution=1280x960 ".%%a\dosbox.conf" if exist .%%a\dosbox.conf ssr 0 windowresolution=2400x1800 windowresolution=800x600 ".%%a\dosbox.conf" if exist .%%a\dosbox.conf ssr 0 windowresolution=2048x1536 windowresolution=1024x768 ".%%a\dosbox.conf" if exist .\%%a\dosbox2.conf ssr 0 windowresolution=640x480 windowresolution=1280x960 ".\%%a\dosbox2.conf" if exist .\%%a\dosbox2.conf ssr 0 windowresolution=800x600 windowresolution=800x600 ".\%%a\dosbox2.conf" if exist .\%%a\dosbox2.conf ssr 0 windowresolution=1024x768 windowresolution=1024x768 ".\%%a\dosbox2.conf" if exist .%%a\dosbox2.conf ssr 0 windowresolution=2560x1920 windowresolution=1280x960 ".%%a\dosbox2.conf" if exist .%%a\dosbox2.conf ssr 0 windowresolution=2400x1800 windowresolution=800x600 ".%%a\dosbox2.conf" if exist .%%a\dosbox2.conf ssr 0 windowresolution=2048x1536 windowresolution=1024x768 ".%%a\dosbox2.conf" ) del ssr.exe cd .. cd .. goto ratio :small copy .\util\ssr.exe .\eXoWin3x\!win3x\ssr.exe cls echo. echo Please be patient, this may take a few minutes. echo. @cd eXoWin3x @cd !win3x for /F %%a in ('dir /A:D /B') DO ( if exist .\%%a\dosbox.conf ssr 0 windowresolution=2560x1920 windowresolution=640x480 ".\%%a\dosbox.conf" if exist .\%%a\dosbox.conf ssr 0 windowresolution=2400x1800 windowresolution=800x600 ".\%%a\dosbox.conf" if exist .\%%a\dosbox.conf ssr 0 windowresolution=2048x1536 windowresolution=1024x768 ".\%%a\dosbox.conf" if exist .%%a\dosbox.conf ssr 0 windowresolution=1280x960 windowresolution=640x480 ".%%a\dosbox.conf" if exist .\%%a\dosbox2.conf ssr 0 windowresolution=2560x1920 windowresolution=640x480 ".\%%a\dosbox2.conf" if exist .\%%a\dosbox2.conf ssr 0 windowresolution=2400x1800 windowresolution=800x600 ".\%%a\dosbox2.conf" if exist .\%%a\dosbox2.conf ssr 0 windowresolution=2048x1536 windowresolution=1024x768 ".\%%a\dosbox2.conf" if exist .%%a\dosbox2.conf ssr 0 windowresolution=1280x960 windowresolution=640x480 ".%%a\dosbox2.conf" ) del ssr.exe cd .. cd .. goto ratio :ratio cls echo. echo Would you like to enable Aspect Correction for all games? echo. echo Choosing Yes will attempt to preserve the game's original format. In fullscreen echo mode this will introduce black bars on the sides. echo. echo Choosing No will stretch the image to fit your monitor. echo. echo Choosing 'Yes' is useful for widescreen monitors which cause stretching or distortion. echo (Note: You will be able to choose this for each game individually when you run the game's echo install file) echo. .\util\choice /C:YN /N [Y]es or [N]o If errorlevel = 2 goto aspectN If errorlevel = 1 goto aspectY :aspectY copy .\util\ssr.exe .\eXoWin3x\!win3x\ssr.exe cls echo. echo Please be patient, this may take a few minutes. echo. @cd eXoWin3x @cd !win3x for /F %%a in ('dir /A:D /B') DO ( if exist .\%%a\dosbox.conf ssr 0 aspect=false aspect=true ".\%%a\dosbox.conf" if exist .\%%a\dosbox2.conf ssr 0 aspect=false aspect=true ".\%%a\dosbox2.conf" ) @del ssr.exe cd .. cd .. goto ini :aspectN copy .\util\ssr.exe .\eXoWin3x\!win3x\ssr.exe cls echo. echo Please be patient, this may take a few minutes. echo. @cd eXoWin3x @cd !win3x for /F %%a in ('dir /A:D /B') DO ( if exist .\%%a\dosbox.conf ssr 0 aspect=true aspect=false ".\%%a\dosbox.conf" if exist .\%%a\dosbox2.conf ssr 0 aspect=true aspect=false ".\%%a\dosbox2.conf" ) del ssr.exe cd .. cd .. goto ini :ini cls echo. echo eXoWin3x is now setup. Enjoy! echo Run "launchbox.exe" to start. echo. pause :end