I found a better solution:
On the Windows 7 machine with the 1012 printer unplugged:
- Add a printer -> Windows Update -> Laserjet 1015 -> Install (1015 is added as a printer.)
- Insert disc and run original XP driver setup (without toolbox.) The installation will almost complete but then roll back.
- Delete the Laserjet 1015 printer.
- Now plug in the 1012. It will be recognized and installed as a Laserjet 1012! (This might require unplugging and replugging the printer and/or rebooting.)
Now the shared Laserjet 1012 on the Windows 7 machine is automatically recognized by my XP machines as well as other Windows 7 machines.