Can't set an icon
See original GitHub issueI 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:
- Created 3 years ago
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@layaLils @pichotweb Manually installing
exe-icon-extractor
indeed gets rid of the error, butexe-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 inMSICreator
options, you should useappIconPath
instead of theiconPath
that is mentioned in the README.Seems like that part is actually a documentation bug.
Thank you Seems like the module is missing by default