[Bug 49439] New: Printing and scanning software for Brother L2540DW fails to install (VBScript parser can't handle a "case else" statement with a comment and no statements to execute)

WineHQ Bugzilla wine-bugs at winehq.org
Tue Jun 23 15:23:44 CDT 2020


https://bugs.winehq.org/show_bug.cgi?id=49439

            Bug ID: 49439
           Summary: Printing and scanning software for Brother L2540DW
                    fails to install (VBScript parser can't handle a "case
                    else" statement with a comment and no statements to
                    execute)
           Product: Wine
           Version: 5.11
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: vbscript
          Assignee: wine-bugs at winehq.org
          Reporter: alexhenrie24 at gmail.com
      Distribution: ---

Created attachment 67536
  --> https://bugs.winehq.org/attachment.cgi?id=67536
WINEDEBUG=+vbscript

To reproduce:

1. Run `winetricks mfc42`

2. Run the Brother Printing Device setup program

3. When asked for the connection type, select "Wired Network Connection
(Ethernet)" and be sure to check "Custom Install"

4. When asked how to locate the printer, type in the IP address 127.0.0.1 (this
is just for debugging, any IP address is fine)

After that, a message pops up that says "An error occurred during the
installation" and the software to scan a document over the network is not
installed.

Console output with WINEDEBUG=+vbscript is attached which indicates failure
parsing a VBScript file. I dumped the full text of the file and this is the
problematic part:

    select case lcase(PortType)

            case "raw"
                 oPort.Protocol      = 1

            case "lpr"
                 oPort.Protocol      = 2

            case else

                 '

                 ' PutInstance will attempt to get the configuration of 

                 ' the device based on its IP address. Those settings

                 ' will be used to add a new port

                 '
    end select

    oPort.HostAddress   = oParamDict.Item(kHostAddress)

It seems that Wine's VBScript parser can't handle a "case else" clause that
contains nothing but a comment.

$ sha256sum DCP-L2540DW-inst-C1-US.EXE
29d58844815a030ae22297363dbc707b887da3d742b0a60de17e4c610c5bd31c

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list