diff --git a/README.md b/README.md index 69590c4..2b7b383 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ against MASM and typos. Only VMware is tested. VirtualBox and QEMU allegedly implement VMware's mouse interface, but I haven't tested them. -## Building +## Building from source Make sure you have the [Windows 3.1 Device Development Kit][3] installed. @@ -90,8 +90,14 @@ nmake If building from source; after building, run `INSTALL.BAT`. -If using a binary build, copy `MOUSE.DRV` over your existing installation's. -Obviously, make a backup copy first. +If using binaries, run Windows Setup. Point where the driver and INF file are; +if you're using the floppy, it'll likely be `A:`. Restart Windows and enjoy. +Serve with garnish. + +Note that if you're using the GUI version of Windows Setup, after selecting +the VMware mouse driver for the first time, the combo box might go blank. If +that's the case, you need to select it again. This doesn't happen from the DOS +version of Windows Setup (when setup is run outside of Windows or at install). [1]: https://wiki.osdev.org/VMware_tools [2]: https://wiki.osdev.org/VMware_tools#Absolute_Mouse_Coordinates diff --git a/install.bat b/install.bat index 195137a..540e3e0 100644 --- a/install.bat +++ b/install.bat @@ -1,3 +1,3 @@ rem Adapt this to your Windows installation. -rem XXX: Proper INF or something -copy mouse.drv C:\windows\system\mouse.drv +rem Only use for development; "production" use should use INF +copy vmwmouse.drv C:\windows\system\mouse.drv diff --git a/makefile b/makefile index b9ff170..66f2c13 100644 --- a/makefile +++ b/makefile @@ -30,13 +30,13 @@ ASM = masm -v -ML $(OPT) # MASM 4.01 & > .asm.obj: $(ASM) $*,$@; -mouse: mouse.drv +vmwmouse: vmwmouse.drv mouse.obj: mouse.asm mouse.inc ps2.obj: ps2.asm mouse.inc -mouse.drv: mouse.def mouse.obj ps2.obj +vmwmouse.drv: mouse.def mouse.obj ps2.obj link @mouse.lnk - rc mouse.drv - mapsym mouse + rc vmwmouse.drv + mapsym vmwmouse diff --git a/mouse.lnk b/mouse.lnk index 276c6e1..3ca828c 100644 --- a/mouse.lnk +++ b/mouse.lnk @@ -1,5 +1,5 @@ mouse ps2 -mouse.drv -mouse/map/al:16 +vmwmouse.drv +vmwmouse/map/al:16 libw /NOD mouse.def diff --git a/oemsetup.inf b/oemsetup.inf new file mode 100644 index 0000000..abc2425 --- /dev/null +++ b/oemsetup.inf @@ -0,0 +1,6 @@ +[disks] +1=.,"VMware Mouse Disk" +[pointing.device] +;profile = mouse driver, Mouse description, VMD, Optional work section +vmwmouse = 1:vmwmouse.drv, "VMware mouse", x:*vmd +; XXX: Define a VMD device if we do it (i.e. a:vmwvmd.386)