Install OS
The installation process is similar for all operating systems. You can use these instructions not only for MS-DOS/Windows. The installation process includes:
Download an empty disk image
Set up the configuration of DOSBox
Create a js-dos bundle
Get the installation files and a bootable diskette or bootable CD
Upload these images to the file system
Boot from the CD or diskette
Install the operating system
Download the empty disk image
Currently, js-dos provides two disk images:
FAT16 256MB – a good choice for small installations (MS-DOS, Win 3.11)
FAT32 2GB – the best option for Win 9x and installations that require more space
How to boot with empty image
An empty image is just a formatted drive without any data. Because it is empty, you can't boot from it. You need to have a bootable diskette to boot with the empty image.
First, you need to boot with the newly created drive. The easiest way to do this is to download a DOS bootable diskette. You can get one here (dos.img).
Open studio and press Create empty bundle link
Select a configured preset that fits your OS, or provide your own configuration
Start emulation by pressing Play button
Open FS sidebar, press upload file, and select
dos.img
andqcow2
empty image.Type
mount -u c:
to unmount drive C:Type
imgmount a: dos.img
to mount the image as drive A:Type
imgmount 2 <name-of-qcow2>.qcow2
to mount the qcow2 as drive C:Now boot from A: by typing
boot a:
When you have booted, you can change to drive C:. Do what you want: copy files, install OS, etc.
Install MS-DOS
Download the MS-DOS distribution and extract it to a location of your choice. Usually MS-DOS is distributed as a bunch of floppy disks - in our tutorial we used an installation with 3 diskettes. Now add all needed files to the emulator (MS-DOS distribution, qcow2 image and bootable diskette)

Let's mount the emulator file system as drive D: - we need to extract installation files on it to use later.
By doing this, we have extracted the DOS distribution to the virtual file system. Now we can boot with our bootable diskette. Please start DOS with CD-ROM support - in this case, you will have your system drive C: and drive D: will contain your virtual file system.
When you have booted, change to drive D: and run setup using SETUP.EXE
Follow the setup instructions. When the installation is done, you can clean up your bundle using the Trash icon in the FS sidebar.

If you installed the system directly on drive C:, then you can add mount and boot commands to the autoexec section:
Restart emulation from the beginning
Setup autoexec
Run emulation to ensure that everything works fine
At the end, you can export the installed OS as a js-dos bundle.

Tutorial video (MS-DOS 7.1)
Install Win9x
Installing Windows 9x is very similar to installing MS-DOS 7.1 — you just need to use the correct Windows installation ISO instead of an MS-DOS one.
Configure your installation
Seamless mouse integration (windows 9x)
Download binary drivers
Mount install.dsk from doslib\windrv\dosboxpi\bin as A: drive
imgmount a: install.dskBoot your Windows 98 image
Open Control Panel -> Add New Hardware -> Mouse -> Have Disk
In the file selector, please select folder related to your Windows version, e.g., win98.
Install DOSBox-X Mouse Pointer Integration
Open Control Panel -> System -> Device Manager
Select Standard PS/2 Port Mouse and press Properties
Check Disable in this hardware profile
Reboot
Install 3Dfx driver (windows 9x)
Download 3.01 Driver
Extract it somewhere
Upload this folder to js-dos before windows boot
Mount FS as drive D:
mount d: .Boot Windows 98
Open Device Manager Start -> Settings -> Control Panel -> System
Locate the existing reference to the card it will be listed as:
Reference Card: Other Devices / PCI Multimedia Device or Sound, Video, Game Controllers / Voodoo2 3Dfx VoodooDouble-Click on the card, then click the driver Tab.
Click Update Driver then click the Next Button twice on the Detection Dialog Box. Ensure that Specify a Location is checked and Microsoft Windows Update is not checked. Click Browse to continue.
Select drive D:
If windows asks please select Install one of the other drivers. Press Next.
Windows will copy the drivers. Overwrite all files if windows asks.
Reboot the system when prompted.
DirectX (windows 9x)
Download DirectX 6, DirectX 7, DirectX 8 or DirectX 9.0c, extract it to some folder.
Extract it somewhere
Upload this folder to js-dos before Windows boot
Mount FS as drive D:
mount d: .
When Windows starts, run the D:\Setup.exe.
Windows Installer 2.0 (windows 9x)
Download Windows Installer 2.0 and follow same steps as for DirectX 9.0