This guide should help you get on the way with using Windows 3.1x in DOSBox.

- DO NOT ASK FOR A COPY OF WINDOWS 3.x Even though Windows 3.x is really old now, it is not freeware. But cheap copies can sometimes be found on ebay or thrift shops.

- I am not substituting the DOSBox README. If you haven't worked with DOSBox before and you just want to have a quick Windows 3.x fix, please read the README.

- DON'T mount your actual c:\ drive root as c in DOSBox when you are doing this, or chances are you are going to mess with your regular Windows when you try to install Windows 3.x. YOU'VE BEEN WARNED!(never do 'mount c C:\' - it's okay to 'mount c C:\doswin')

- DOSBox supports Windows 3.x since DOSBox version 0.65, but the latest version is recommended for enjoying Windows 3.x on DOSBox.

-----Graphics/Video drivers-----

By default DOSBox emulates a S3 graphics card, for running Windows 3.x you will need to download the S3 drivers at https://www.dropbox.com/s/w3o4v5e7alm1z ... s.zip?dl=1 (version 1.70.04).With these drivers you can run Windows at 1024x768 with 64k colours (large or small fonts).

DOSBox can also emulate three other graphics cards (among others) which can be used with Windows 3.x. To use those you need to change the machine setting in dosbox.conf.You can use the following "graphics cards":

- Quicktime seems to work best when you install Quicktime 2.1.2. Also note that DOSBox 0.74 and earlier releases didn't handle CD-ROMs well that have both the Windows and Mac version on it. You will need to either wait for the next release of DOSBox or download and install a SVN built.

Windows 3.1, 3.11 and Windows for Workgroups 3.11 run ok in DOSBox when running from a mounted folder and that's what I'm advising.

For actually installing Windows 3.1x, I did copy all of the files from the original 3.5" floppies into a folder called win31 and installed from that. Some generic instructions:On your computer make a folder called "C:/doswin". Copy all the files on your Windows 3.1x floppies to "C:\doswin\win31".Extract the drivers to "C:\doswin\drivers\" (for example the S3 drivers to "c:\doswin\drivers\s3" or "C:\doswin\drivers\tseng" for the Tseng drivers).

And off you go. The settings that setup chooses should be ok and left at default. If you want to have control over which programs get installed with Windows choose the "Customized Setup" and not the "Express Setup". When Windows asks which printer to install, choose the generic/text printer.When Setup finishes and offers you to either reboot or return to dos, you can either choose return to dos AND then close DOSBox or you can just skip the return part close DOSBox right away.

Before you start DOSBox again to test Windows 3.x I recommend editing dosbox.conf to make it easier to work with Windows 3.x. Edit the end of dosbox.conf like this:

[autoexec]# Lines in this section will be run at startup.mount c c:\doswinc:SET PATH=%PATH%;C:\WINDOWS;SET TEMP=C:\WINDOWS\TEMP

Now to install the S3 graphics driver, start DOSBox again, typecd windowssetupYou get a screen similar to the initial setup of Windows 3.x. Scroll up to the Display driver and hit enter. Now scroll all the way down to "Other (requires disk....)" and hit enter again. Enter the path to the S3 drivers "c:\drivers\s3" and hit enter.You can now choose on of the S3 drivers. The highest working resolution is 1024x768 at 64k colors. For playing games a much lower resolution is enough. Some can't even handle more than 256 colors and will look odd.

After installation of the driver you can start Windows by entering "win".

To install the Soundblaster driver, exit Windows 3.x again. At the prompt typecd c:\drivers\sb16w3xinstallThis pretty much runs on its own, just make sure- that the path to Windows is correct (c:\Windows)- that the interrupt setting is correct. The installer wants to use Interrupt 5 by default, but DOSBox uses 7 by default, so change that.- to let the installer overwrite files if it want to.When the installer asks whether you want to load Dos drivers select "No" since DOSBox won't use those drivers in any way.After the installer finishes you can run Windows right away, no need to "reboot".

NOTE: Best use the driver I link to. Other drivers may give you headaches.

To install the joystick driver you have to have started Windows. Open the main group in Program Manager and start Control Panel. In Control Panel start Drivers. Click on "Add...", select "Unlisted or Updated Driver", in the next dialog enter "c:\drivers\ibmjoy\" as the location of the driver. The next dialog lets you install "Driver for Joystick" and then asks you whether you want to setup the driver for "one or two 2-Dimensional" or a "single 3-Dimensional Joystick". I recommend using the first option. It seems that most games will recognize if the joystick has four buttons, even though the IBM joystick control panel shows only two working buttons. The latter option is only advisable if you use a joystick with a throttle. You need to restart Windows after this.

My advice for using the joystick with Windows 3.1x games is to edit dosbox.conf again and in the [joystick] section set the optiontimed=falseOne game (Microsoft FuryÂ³) gave me problems with timed enabled. If you have calibrating problems, change this again.Also take not that most games require you to calibrate the joystick again, after a Windows 3.x restart.

-----Troubleshooting-----

- to change graphics drivers, I'd advise exiting Windows 3.x and then change directory to the Windows directory (cd windows) and run setup.exe.But beware! Windows 3.x doesn't like it when you change drivers too often and then Setup crashes when you want to load other video drivers. In this case, got the Windows 3.x system directory (\windows\system) and get rid of the "oemX.inf" files (for example "oem0.inf" or "oem1.inf") you don't need.

- In some applications the font looks strange. It seems to get better if you install *any* printer in Windows 3.x (no matter that you can't use it). Some of you might remember that Windows 3.x didn't let you use most fonts unless you did that back in the days

- When you mount a floppy drive to a:\ it doesn't show in the Windows file manager and in the "run" dialog you can't select it either. But you can enter the path (for example "a:\setup.exe") and it works ok. When you don't have anything mounted to a:\ the a:\ drive shows up in Windows 3.1x. Strange but true.

- When you choose the Tseng drivers when you install Windows, the mouse pointer might not be visible. To fix this go back to the DOSBox prompt, change dir to the Windows directory ("cd windows") , run setup again and then choose the VGA or SVGA drivers that come with Windows 3.1x. Start Windows again (your mouse pointer should be visible now) and then run setup from inside Windows to choose the Tseng drivers.

- 32-bit file and disk access doesn't work in DOSBoxHere is an article that gives a lot of information on how 32-bit disk access worked (and that explains why it doesn't in DOSBox).

- NO Internet yet

- Windows programs that rely on share.exe or the later Windows 3.x driver vshare.386 will crash on starting with an error message that share.exe has not been loaded. This affects mostly office programs, e.g. Microsoft Office, Works, Publisher, Lotus Office programs... DOSBox is not emulating something that is needed for share.exe or vshare.386 to correctly work and since it isn't needed for games chances are slim that this will ever be emulated.HOWEVER there are two workarounds.1. Run Windows 3.x on a boot image (see below on how to), this is the safe way since when you boot an image in DOSBox the needed functionality is working.2. Download and run fakesharhttps://www.dropbox.com/s/ewd6rf8vndqs5 ... r.zip?dl=1 before starting Windows in DOSBox. THIS IS NOT SAFE since it only fakes that share is running even though it doesn't. When you insist on actually working with the affected programs in Windows you will experience data loss.

-----Running Windows 3.x on a boot image-----

You can also mount an image, boot from that, install Dos and then install Windows on that. The guide on boot images is at viewtopic.php?t=7260, when you are done with that, use Disk Explorer (link is in the guide) to copy the install folders to the image, boot from the image (see the guise again) and begin installing.In dosbox.conf both xms and ems must be set to false.For most uses a boot image is not worth the hassle, though. One of my registered shareware games (Inner Space) only installs as registered version on a boot image, so if all else fails a boot image install might be the last resort.Another Problem with using a boot image is that you can only use mounted images not mounted real drives (floppy, cd-rom).Note 1: using an image is mostly overkill now for running Windows 3.11Note 2: Share and 32bit disk and file access works when you boot from an image

-----Mirrors-----

See Dosfreaks first post for mirrors of the drivers and the utilities.

-----P.S.: If you think that Windows95 might work as easily and good, you are wrong

Edit: mentioned Ian's soundblaster driver guide and another boot image problem/shortcoming.Edit: Mentioned problems with mouse when setting up Windows from the start with the Tseng drivers.Edit: Little adjustment for the 0.65 versionEdit: Uploaded drivers and other useful stuff to badongo.com. Those files were uploaded by me and *should* be okay.Edit: did some layoutingEdit: The guide is now for the upcoming DOSBox 0.70 but I kept the 0.65 specific instructionsEdit: SET PATH= does not like spaces, so SET PATH=%PATH%;C:\WINDOWS; works. SET PATH=%PATH%; C:\WINDOWS does NOT Edit: fixed joystick driver sectionEdit: deleted 0.65 instructionsEdit: updated the guide since Vasyls patches have been integrated ages ago, removed Ian's soundblaster drivers installation guide since it wasn't necesary for quite some time now. Fixed download links and put the files and guide pictures onto a dropbox account. Added the share issue and two workarounds to Troubleshooting. Added little mirror messageEdit: added a note about Quicktime and uploaded the 2.1.2 version of it to the dropbox account. Linked to the 32bit disk access article that Dosfreak posted. Share/32bit disk/file access works when you boot from an image.Edit: Reshuffled stuff a bit (quicktime moved up to the other drivers), S3 driver version numberEdit: Dropbox disabled their public folder and thus the guide was left without pictures and downloads

Last edited by Dominus on 2013-5-13 @ 11:34, edited 41 times in total.

Windows 3.1/3.11 will play audio CDs by one of the following procedures. Double click on the "Accessories" group. Double click on the "Media Player". Click on "Devices", and choose "CD Audio" from the list that appears. Click on the "Play" button. If you do not have a choice for CD Audio follow the steps below, this will install the driver that is necessary to play the music CDs. Double click the "Main" group. Double click on "Control Panel". Double click on "Drivers". From the list of drivers,see if there is a "[MCI] CD Audio". If this choice is present, place a music CD in the CD-ROM and double click on the driver. If this choice is not present, click on "ADD". Select the "[MCI] CD Audio", and click OK. Place the Windows 3.x disk 6 into the floppy drive and type "A:\" for the path. This will install the CD Audio driver into Windows.

The guide is great, but I encountered an installation error trying to install a custom video driver in the initial Setup. What I did was to use the basic VGA driver for the initial install, then change the video driver using Windows Setup in the Main program group. When the driver spouted up a prompt to Insert the Trio 64V Flat Mode Driver disk, I redirected the installer to \WINDOWS\SYSTEM, which completed the graphics driver install.