http://bugs.winehq.org/show_bug.cgi?id=9194
--- Comment #8 from rankincj@yahoo.com 2007-10-10 14:23:25 --- The problem was in system.reg. Basically, these keys had changed as I had upgraded my version of Wine, and wineprefixcreate couldn't repair them:
[System\CurrentControlSet\Control\Print\Environments\Windows 4.0\Drivers\Version-0\officejet] 1192041148 "Configuration File"="wineps16.drv" "Data File"="generic.ppd" "Datatype"="" "Dependent Files"=str(7):"" "Driver"="wineps16.drv" "Help File"="" "Monitor"="" "Previous Names"=str(7):"" "Version"=dword:00000000
[System\CurrentControlSet\Control\Print\Environments\Windows NT x86\Drivers\Version-3\officejet] 1192041148 "Configuration File"="wineps.drv" "Data File"="generic.ppd" "Datatype"="" "Dependent Files"=str(7):"" "Driver"="wineps.drv" "Help File"="" "Monitor"="" "Previous Names"=str(7):"" "Version"=dword:00000003
[System\CurrentControlSet\Control\Print\Monitors\Local Port] 1192041149 "Driver"="localspl.dll"
[System\CurrentControlSet\Control\Print\Printers\officejet] 1192043928 "Attributes"=dword:00000000 "Datatype"="RAW" "Default DevMode"=hex:6f,66,66,69,63,65,6a,65,74,00,00,00,00,00,00,00,00,00,00,\ 00,00,00,00,00,00,00,00,00,00,00,00,00,0a,03,01,00,9c,00,08,00,13,6b,00,00,\ 01,00,09,00,9a,0b,33,08,64,00,01,00,07,00,00,00,02,00,01,00,00,00,03,00,00,\ 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00 "Description"="WINEPS Printer using CUPS" "Location"="<physical location of printer>" "Name"="officejet" "Parameters"="<parameters?>" "Port"="LPR:officejet" "Print Processor"="WinPrint" "Printer Driver"="officejet" "Priority"=dword:00000000 "Separator File"="<sep file?>" "Share Name"="<share name?>" "StartTime"=dword:00000000 "Status"=dword:00000000 "UntilTime"=dword:00000000
I had to resort to manual registry editing.