Windows 2.x isn't particularly useful to use, but it is neat to have.
Copy the setup files
First, you need to actually have a copy of the Windows setup media. If your Windows is on a floppy, create a folder and copy the disk contents to its root and have that folder mounted under DOSBox. (You could also create the folder in your DOSBox's C drive if you have one; this might be preferable if you want to experiment with a ton of driver switching.) If you have a CD-ROM, just mount that.
- Mount the setup directory, change to it. and run SETUP.EXE.
- Use IBM computer as the computer type, Microsoft Mouse in PS/2 port, and VGA display as the settings.
- The setup process should work normally from here.
- Create a file in your DOSBox C drive called WIN.BAT with the contents:
VER SET 4.0 C:\WINDOWS\WIN.COM VER SET 5.0
- Restart DOSBox. (not necessary, but may prevent problems)
- Run C:\WIN.BAT and Windows should load. (or just type win)