-
Notifications
You must be signed in to change notification settings - Fork 193
Windows 10: A dynamic link library (DLL) initialization routine failed. #51
Comments
Despite having the same Node (6.1.0) version as Electron (1.2.3). I had to install electron-rebuild and execute it on post install. I also was using electron-builder which uses two separate package.json files.
-f forces a rebuild, -p applies a relevant pre-gyp-fix and m specifies to use the inner node_modules, while obtaining the electron-prebuilt from the outer node_modules. Still not sure why this is required though. |
@McPo I'm thinking about using node-keytar for my Electron app, but this may be a blocker if I understand this issue correctly. To employ the workaround you found, it sounds like my Windows user would need Visual Studio installed because electron-rebuild would be run as the last step of the installer on their machine. Am I understanding this issue correctly? |
I had to use electron-rebuild to get it working in Windows 10 (And I believe electron-rebuild requires Visual Studios). However when I built it on Windows 10 it worked fine on Windows 7. So you could just rebuild the module and then store the binaries in another folder and have a post-install hook to copy your prebuilt binary over the one that its shipped with. You might also be able to get away with just the msbuild tools, and if you need a copy of Windows to do the initial compilation. These VMs from Microsoft work well https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/ Basically, it shouldn't be a blocker, just an initial inconvenience, and the tools look well across the platforms. |
Just wanted to confirm, the electron-rebuild solves the problem with windows 10. |
I run into this problem with Node 8.4.0, Node 7 is fine. |
I ran |
@manuelbieh Did you ever get this working? I'm having same issue. |
do you have electron-rebuild installed? |
@jarmediagmbh, this solved my problem! Thanks! 💯 |
I tried everything in this thread, rebuilding with Did anyone get this working on Windows 10? |
For the record I did also struggle with statically referencing the dependency on Windows 10 and eventually just gave up to try dynamically referencing it, but also ran into issues with that (#106). |
When i run |
I am also having this issue and am not clear from this thread how exactly to fix it, can someone post a step by step on how to fix with commands included? Thanks |
I had the same problem and published a little how-to here. Hope this helps |
Closing this out because I think all that we can do currently is:
|
Attempting to run the application and am greeted immediately with this error.
Let me know if theres any more info needed.
The text was updated successfully, but these errors were encountered: