question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't set an icon

See original GitHub issue

I am trying to set the path to the icon, like this: const msiCreator = new MSICreator({ . . . , iconPath: 'C:/path/to/electron_app/icon/image.ico', }); But when I execute the ‘‘node build_installer.js’’ command to build, I get an error in the console: Unable to extract icon from exe. Please provide an explicit icon via parameter. Error: Cannot find module 'exe-icon-extractor'. I don’t know what it is, please, I need help

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

5reactions
mistermicheelscommented, Oct 12, 2020

@layaLils @pichotweb Manually installing exe-icon-extractor indeed gets rid of the error, but exe-icon-extractor is still a fallback for the case where there is no custom app icon specified in options. It seems that, when specifying a custom icon in MSICreator options, you should use appIconPath instead of the iconPath that is mentioned in the README.

Seems like that part is actually a documentation bug.

2reactions
AuracleTechcommented, May 2, 2022

Thank you Seems like the module is missing by default

npm i exe-icon-extractor --save-dev
Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot Change the Default Folder Icons in Windows Explorer
Right-click the shortcut you created, click Properties, and then click Change Icon. Click the picture of the icon you would like the shortcut...
Read more >
How to Fix Desktop Icons Not Working/Not Showing Properly ...
Fix Desktop Shortcut Icons Not Showing Properly#DesktopIcons #Windows Facebook Page : https://www.facebook.com/MeMJTubeFollow on twitter: ...
Read more >
I can't change folder icon to a custom one - Windows 10 Forums
Solved. Right click on the folder then open the security tab. Press the Edit button Select Users and check the full control box....
Read more >
Unable to set icon for java application using setIconImage ...
This is the code I used with a Swing application packaged in an executable JAR file. The JFrame has the icon image.
Read more >
Can't move desktop icons in Windows 11/10
8] Change icon spacing using Registry ... If there is too much spacing set between desktop icons, then also icons won't move. For...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found