Run Windows 3.1 in DOSBox

Screenshot of Windows 3.1 running at 800x600 with a 256 color wallpaper.

My family’s first computer was an AST desktop with an Intel 486SX 25Mhz processor and 4MB of RAM that my parents purchased when I was in grade school. It had MS-DOS and Windows 3.1 on its 160MB HDD. I can remember creating graphics in Paintbrush, playing Solitaire and Minesweeper, listening to audio CDs using the CD-ROM (we didn’t have a CD player back then), and of course playing Windows games (my favorite was King’s Quest VI Enhanced on CD-ROM).

DOSBox does not emulate Windows 3.1 by itself, but Windows 3.1x can be installed in DOSBox. Fortunately I still had a copy of my parents’ Windows 3.1 floppy disks that I was able to transfer to a CD-R for easier access on my PC (I don’t even have a floppy drive in my desktop PC anymore). You could also put the Windows files into a folder such as C:\DOSBox\WinInstall instead of using a CD-R (you’ll have to adapt the instructions below if you do). If you don’t have a copy of Windows 3.1, you’ll need to buy it somehow.

Installing Windows

Assuming you have already installed and configured DOSBox, start it up, put the Windows 3.1 CD into your optical drive, and switch to the D: drive in DOSBox to run setup.exe.

Screenshot of command to run Windows setup in DOSBox.
Run the Windows setup in DOSBox

Run the Express setup. Once Windows starts you’ll need to enter a user name. When prompted to install a printer, select the generic/text printer. If you still have DOOM installed from the first post in this series, you may be promted to select the application name for C:\DOOM\DM.EXE. Just choose “None of the above” and continue with the installation. Once it’s complete, select Reboot. DOSBox will quit, so you’ll have to start it back up.

Screenshot of Windows setup complete.
Once the Windows 3.1 setup is complete, select Reboot, then start DOSBox again.

To launch Windows, type cd windows to change to the Windows directory, then type win to start Windows. At this point Windows should load successfully, but without sound. We need to install sound and video drivers to get the most out of the Windows 3.1 experience.

Installing Sound Drivers

DOSBox can emulate several sound devices, including the widely-compatible Sound Blaster 16. In order to use this device, we’ll need to install a Sound Blaster driver in Windows 3.1. I found instructions and a driver download for the installation process, but in case that link goes down I’m including instructions here.

First, download the Sound Blaster drivers and unzip them into C:\DOSBox\Drivers\SB. This will make them available in DOSBox at C:\Drivers\SB.

Screenshot of unzipped Sound Blaster drivers.
Unzip the Sound Blaster drivers to C:\DOSBox\Drivers\SB.

Start up DOSBox, switch to the SB directory and run install.exe.

Screenshot of commands to run the Sound Blaster installation.
Run the Sound Blaster installation.

Choose the full installation. At the next screen, be sure to set the Microsoft Windows 3.1 path to “C:\WINDOWS” before proceeding.

Screenshot of installation with Windows 3.1 path set to C:\WINDOWS.
Be sure to set the Windows 3.1 path to C:\WINDOWS

On the next screen, you must change the Interrupt setting (IRQ) to match DOSBox’s configuration. By default DOSBox uses 7 (it would only be different if you changed it in the dosbox.conf file), so you’ll need to change it from “5” to “7.”

Screenshot of Interrupt setting changed to 7.
Make sure the Interrupt setting matches how DOSBox is configured.

Continue with the rest of the installation. It may take a few minutes to complete. If you are prompted to replace the MIDIMAP.CFG file, select either “Backup” or “Proceed” and continue the installation. Once it is finished, exit DOSBox, then restart it and launch Windows. You should hear the ta-da or chime sound when Windows starts and see a new Audio Software group. At this point, just for fun, I like to open Accessories > Media Player and open canyon.mid. This is a MIDI track that came with Windows 3.1. It should start playing if everything is setup correctly.

Screenshot of canyon.mid playing in Media Player.
You can listen to canyon.mid in the Media Player to test MIDI playback.

Installing Video Drivers

By default DOSBox emulates an S3 graphics card, and by installing an S3 graphics driver we can run Windows 3.1 in 1024×768 with 64K color. You can grab the driver and read instructions (and some good troubleshooting steps) on the same page used for the Sound Blaster (, but again I’ve included instructions here in case that link goes down.

Download the S3 graphics drivers and unzip them to C:\DOSBox\Drivers\S3 so they are available in DOSBox at C:\Drivers\S3.

Screenshot of unzipped S3 drivers.
Unzip the S3 drivers into C:\DOSBox\Drivers\S3.

Start up DOSBox, switch to the Windows directory, and run setup.

Screenshot of commands to run Windows setup.
Run Windows setup to configure the S3 graphics driver.

The Windows setup will allow installation of the S3 graphics driver. Select the Display setting and press Enter to change it from “VGA.”

Screenshot of Windows Setup Display setting.
Select the Display setting to change it from “VGA.”

On the next screen, arrow down and select “Other (Requires disk provided by hardware manufacturer),” then enter “C:\Drivers\S3” as the path where the files can be found.

Screenshot of Display type selection.
Select “Other” as the Display type.
Screenshot of S3 file path in Windows Setup.
Enter “C:\Drivers\S3” as the path where the S3 driver files are located.

On the next screen you can choose which driver to install up to 1024×768 64K (anything higher probably won’t work). Because I intend to use Windows 3.1 mostly for gaming, I’m going to stick with 800×600 at 256 colors (which is the highest resolution/color that many games will support).

Screenshot of driver selection screen.
Select a driver to use up to 1024×768 64K. For gaming, 800×600 256 colors is probably best.

Continue with the installation. If you are prompted to enter the path to the driver files again, enter “C:\Drivers\S3.” Once the installation is complete, enter win at the DOSBox prompt to launch Windows. You should now see an 800×600 screen and be able to set the wallpaper to the included 256 color pattern to verify your graphics driver is working.

Screenshot of Windows 3.1 running at 800x600 with a 256 color wallpaper.
Now you can decorate Windows 3.1 with exciting 256 color wallpaper!

This is all you need to run many games (like the aforementioned King’s Quest VI Enhanced), but in a future post I may cover some additional settings and drivers for improving the gaming experience further.


  1. how can you size the screen to full. I cant make a full screen with dosbox, thanks.
    1. Hi Angel, Pressing Alt+Enter will put DOSBox in full screen mode, and you an adjust scaling and resolution settings in the dosbox.conf file (

Comments are closed