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.

exe file not updated with given icon

See original GitHub issue

Hi,

When building using electron-forge, the Windows application exe icon is not changed.

Command used to make: ./node_modules/.bin/electron-forge.cmd make

config.forge.electronPackagerConfig in package.json:

"electronPackagerConfig": {
    "icon": "./assets/img/icon.ico",
    "electronVersion": "1.4.4",
    "asar": true
},
"electronWinstallerConfig": {
    "name": "eapp",
    "setupExe": "eapp-0.0.2.exe",
    "description": "EApp Application",
    "loadingGif": "./assets/img/install-splash-anim.gif",
    "iconUrl": "http://manikanta.com/favicon.ico",
    "setupIcon": "./assets/img/icon.ico",
    "noMsi": true
}

Note: Setup exe is getting generated with correct icon, mentioned in config.forge.electronWinstallerConfig

But if I run the electron-packager manually, icon is changed: .\node_modules\.bin\electron-packager ./ --asar=true --icon=./assets/img/icon.ico --electron-version=1.4.4

Even some other config params of electron-packager are not being picked up from package.json as described in electron-packager api. For example, even though I’ve specified author in package.json, I’ve to specify that in config.forge.electronPackagerConfig.win32metadata.

Stack: Windows 8.1 x64, electron-forge: 2.6.0, electron-prebuilt-compile: 1.4.4

Is this a bug with electron-forge? or, am I missing something? Thanks.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:18 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
maifeeulasadcommented, Feb 18, 2022

solution: ie4uinit -show

It may be updated. Windows cache all icons. So try this: ie4uinit -show in cmd. It’ll revalidate all cached icons.

0reactions
maleptcommented, Jul 27, 2020

@dephraiim this kind of comment isn’t particularly actionable. The best kind of comment has a minimal testcase ready for someone to clone a git repo and run.

I can successfully set all three icon config options for Windows/Squirrel:

Read more comments on GitHub >

github_iconTop Results From Across the Web

exe file not updated with given icon #81 - electron/forge - GitHub
It may be updated. Windows cache all icons. So try this: ie4uinit -show in cmd. It'll revalidate all cached icons.
Read more >
Windows 10 Missing/Broken EXE Icon - Microsoft Community
Hi Norak, 1. Open File Explorer. 2. Click the "View" tab. 3. Select the "Hidden items". 4. Close the File Explorer. 5. Press...
Read more >
EXE Icon not updating when installed - NI Community
I want to change the icon of the EXE. ... PCs the shortcut icon on the desktop, and the EXE's icon in Program...
Read more >
Icon for EXE file got cached in Explorer and doesn't update ...
I have written a simple application in VS 2015 and published the build. I have applied the icon and every thing works fine....
Read more >
How to Change the Icon of any EXE File in Windows 10 & 11
1. Windows icons are in the ICO format, so you'll need to have an icon file ending with .ICO. Many free icon sites...
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