Electron-builder: error output:wine: cannot find L"C:\\windows\\system32\\winemenubuilder.exe"

Created on 20 Oct 2019  ·  17Comments  ·  Source: electron-userland/electron-builder

  • Version: 21.2.0
    Building for x64 Windows

Used to work, few months and a new system later, Windows builds no longer work from Mac.

```⨯ cannot execute cause=exit status 103
out=WiX Toolset Linker version 4.0.0.5512
Copyright (c) .NET Foundation and contributors. All rights reserved.

Updating file information.

                errorOut=wine: cannot find L"C:\\windows\\system32\\winemenubuilder.exe"
err:wineboot:ProcessRunKeys Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (2)
Z:\Users\tmorrow\repo\cinematic\.desktop-installer\__msi-x64\project.wxs(141) : error LGHT0103 : The system cannot find the file 'Z:\Users\tmorrow\repo\cinematic\.desktop-installer\win-unpacked\resources\app\.reify-cache\00fbb6e6961ad6900660bc58cd1ed66bf0e72a24.js'.

                command=/Users/tmorrow/Library/Caches/electron-builder/wine/wine-2.0.3-mac-10.13/bin/wine 'Z:\Users\tmorrow\Library\Caches\electron-builder\wix\wix-4.0.0.5512.2\light.exe' -out 'Z:\Users\tmorrow\repo\cinematic\.desktop-installer\Cinematic 1.1.1.msi' -v -spdb -sw1076 '-dappDir=Z:\Users\tmorrow\repo\cinematic\.desktop-installer\win-unpacked' -pedantic -wx -sval project.wixobj
                workingDir=

```

backlog

Most helpful comment

rollback electron-builder to 21.2.0 solve my problem, but latest version still looks unstable

All 17 comments

Can you solve this problem? I also encountered the same problem as you.

What kind of project do you have @xuzpeng ?

I'm building using wojtkowiak/meteor-desktop so there's a whole separate set of issues but I've noticed it seems to be related to the msi build (Windows).

That being said I was able to get it working a few days ago and the error showed up again.

FWIW I can create and build a project using https://github.com/sindresorhus/electron-boilerplate no problem, so it has to do with the implementation of electron-boilerplate

@lacymorrow I can use windows to package it.

I'm not building MSI packages, instead I'm using nsis packages. These work and can be built no problem from MacOS.

I'm using Appveyor to build MSI packages and 32-bit.

Same problem here after updating from 20.44.4 to 22.1.0 under macOS 10.14.6 (Mojave)

win:
  target:
    - target: nsis
      arch:
        - x64
        - ia32

@dehmer Want to post your error log? I didn't think this error would occur with nsis targets.

i'm running into this same error trying to build for windows. i'm on mac os mojave 10.14.6. any progress on this issue?

  ⨯ cannot execute  cause=signal: killed
                    errorOut=wine: cannot find L"C:\\windows\\system32\\winemenubuilder.exe"
    err:wineboot:ProcessRunKeys Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (2)
    wine: Unhandled page fault on read access to 0x004cb000 at address 0x403472 (thread 0009), starting debugger...

                    command=/Users/khuynh/Library/Caches/electron-builder/wine/wine-2.0.3-mac-10.13/bin/wine '/Users/khuynh/react-electron-starter/dist/MyApp Setup 0.1.0.exe'
                    workingDir=
  ⨯ /Users/khuynh/react-electron-starter/node_modules/app-builder-lib/node_modules/app-builder-bin/mac/app-builder exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE  stackTrace=

Electron [email protected]
OS 10.13.6 High Sierra

Same problem

System information:
[11:22:54]  [Step 1/1]         Wine build: wine-2.0.3
[11:22:54]  [Step 1/1]         Platform: i386
[11:22:54]  [Step 1/1]         Version: Windows 7
[11:22:54]  [Step 1/1]         Host system: Darwin
[11:22:54]  [Step 1/1]         Host version: 17.7.0
[11:22:54]  [Step 1/1]     
[11:22:54]  [Step 1/1]                     errorOut=wine: cannot find L"C:\\windows\\system32\\winemenubuilder.exe"
[11:22:54]  [Step 1/1]     err:wineboot:ProcessRunKeys Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (2)
[11:22:54]  [Step 1/1]     wine: Unhandled page fault on read access to 0x004cb000 at address 0x403472 (thread 0009), starting debugger...
[11:22:54]  [Step 1/1]     err:winediag:nulldrv_CreateWindow Application tried to create a window, but no driver could be loaded.
[11:22:54]  [Step 1/1]     err:winediag:nulldrv_CreateWindow The graphics driver is missing. Check your build!
[11:22:54]  [Step 1/1]     winedevice.exe(15247,0x401fc000) malloc: *** error for object 0x407009a2: pointer being freed was not allocated

rollback electron-builder to 21.2.0 solve my problem, but latest version still looks unstable

I can confirm the issue on macOS 10.14.6 (18G103) and [email protected].

  ⨯ cannot execute  cause=signal: killed
                    errorOut=wine: cannot find L"C:\\windows\\system32\\winemenubuilder.exe"
    err:wineboot:ProcessRunKeys Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (2)
    wine: Unhandled page fault on read access to 0x004cb000 at address 0x403472 (thread 0009), starting debugger...

rollback electron-builder to _21.2.0_ solve my problem, but latest version still looks unstable

This fixed for me as well, thank you for the suggestion!

It looks like they fixed it in the latest minor release. I was able to build for -mwl on macOS 10.14.6.

[email protected]

[email protected] looks good to me. Also on macOS 10.14.6.
A keeper ;-)

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

Removing electron-builder cache folder helped in my case.
On macos it is located in ~/Library/Caches/electron-builder

Same problem。
check your menory!!! I'm just guessing,meybe not enough available memory to complete this task.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JohnWeisz picture JohnWeisz  ·  3Comments

leo picture leo  ·  3Comments

alexstrat picture alexstrat  ·  3Comments

popod picture popod  ·  3Comments

NPellet picture NPellet  ·  3Comments