node-winresourcer icon indicating copy to clipboard operation
node-winresourcer copied to clipboard

Problem while buiding nw app

Open ngrj opened this issue 8 years ago • 7 comments

I'm using winresourcer to change icon for exe, but lately I'm receiving this issue:

err:module:import_dll Library dbghelp.dll (which is needed by L"C:\\windows\\system32\\mscoree.dll") not found
err:module:import_dll Library mscoree.dll (which is needed by L"Z:\\home\\username\\code\\clientexe\\node_modules\\winresourcer\\bin\\Resourcer.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"Z:\\home\\username\\code\\clientexe\\node_modules\\winresourcer\\bin\\Resourcer.exe" failed, status c0000135
Error while updating the Windows icon. Wine (winehq.org) must be installed to add custom icons from Mac and Linux

ngrj avatar Jul 08 '16 07:07 ngrj

What is you operating system ? Have you .NET framework 2.0 installed ?

felicienfrancois avatar Jul 08 '16 10:07 felicienfrancois

Hi, Os: Ubuntu 14.04 x64

ngrj avatar Jul 08 '16 10:07 ngrj

Do you have wine installed with .NET framework 2.0 or equivalent ?

felicienfrancois avatar Jul 08 '16 12:07 felicienfrancois

No, But I tried installing now with this command: winetricks -q dotnet20 It gave me : Note: command 'wine dotnetfx.exe /q /c:install.exe /q' returned status 26. Aborting.

ngrj avatar Jul 08 '16 12:07 ngrj

That's a wine issue. You should looks at google or stackoverflow for a solution

felicienfrancois avatar Jul 08 '16 12:07 felicienfrancois

Now, I've .NET 2.0, same issue.

ngrj avatar Jul 08 '16 12:07 ngrj

I concur with @felicienfrancois, it appears to be a wine issue. I worked around this problem by switching to a 32 bit wine ("32 bit wine bottle"), installing dotnet20 via winetricks.

It's unfortunate as a whole, but hopefully the ability to run the Windows utility nw js uses with a 64 bit wine will be resolved eventually. I tried finding where this utility is installed with nwbuilder. What and where is it? I've come across it before, because sometimes it craps out in Windows. Perhaps we need to raise a ticket with the wine folks (Wine HQ?).

I think an ER should be filed if it isn't already to source a less binary & Windows native solution for inserting icons into binaries. It would be nice to see a node js based solution. I know that's a bit much to ask for, but the reliance on that application takes the js outta nw js.

puzzud avatar May 27 '17 15:05 puzzud