First post, by ArthurDent42
- Rank
- Newbie
Is it possible to script a batch file to alter the system settings of a Windows 3.1 install (such as setting a particular display resolution?) I am aware that you can accomplish this through the "Setup Windows" option in the "Main" program category within Windows itself, or by running "setup" in Dos from within the windows install directory. But neither of these methods can actually be scripted to alter specific settings to specific values, they're both reliant on the end-user providing contextual input once the settings dialog launches.
My issue is that I have a whole lot of Win3.1 games setup to autolaunch Windows when run, but many of them require specific system settings to work properly (display resolution and color depth in particular). As it stands I launch each game with a separate Windows install customized for that particular game's needs, which is a lot of wasted space in aggregate. If I could batchscript specific changes to the Windows System Settings (ie: set Display to 640x480, 256 Colors) I could then use a single clean Windows Install, changing the settings on the fly and symbolic linking in any files the game added/modified during install.
My ideal process would go something like:
Game Install:
- Duplicate Clean Windows Install
- launch windows from duplicate directory
- run file-changes monitor (pointed at duplicate directory) in either Windows, DOS, or host OS
- install game
- exit windows
- Delete all files with matching checksum before and after install (preserving directory structure for all files kept)
- this results in one unmodified clean-Windows install folder and one folder full of files modified/added during the specific game installation
Game Launch:
- Trigger bash script launching game
- Bash script symbolic links game install files with corresponding sub-directory structure to clean windows directory
- Bash script launches DosBox with game-specific conf
- conf autoexec mounts C:
- conf autoexec sets Windows display setting to appropriate configuration
- conf autoexec runexit's Windows with the game in question
- conf autoexec exits DosBox
This would allow me to store just one clean Windows install for each version I use, and bundle just the files installed/modified during install with each game, saving on space considerably.
* I'm not sure if this should properly go in the DosBox or Old Software section of the site since my question generally seems to apply to both, so I apologize if this post is in the wrong place.