https://bugs.winehq.org/show_bug.cgi?id=39056
Detlef Riekenberg wine.dev@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEEDINFO Ever confirmed|0 |1
--- Comment #1 from Detlef Riekenberg wine.dev@web.de --- You do not need a script.
Wine has a builtin Port redirection to a pipe (or a unix file), which can be set in the registry in HKCU\Software\Wine\Printing\Spooler
Add a String with the portname as name of the String and the redirection-target as Value.
Start the redirection with the pipe symbol, followed by your command. "LPT1:"="|lpr -o raw -P cups_printer_name"
The Wine User Guide has a link to the related part in the Wine-Wiki: https://wiki.winehq.org/Useful_Registry_Keys
Please verify, that this works also with your old program and report back.