Squirrel.Windows maker: setupIcon config not working
See original GitHub issueThe documentation states you can change the icon of the Setup installer application using the setupIcon
option. It doesn’t seem to do anything. The iconUrl
option works however, even when they are pointed to the same resource.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:10 (4 by maintainers)
Top Results From Across the Web
Squirrel.Windows maker: setupIcon config not working #1635
The documentation states you can change the icon of the Setup installer application using the setupIcon option.
Read more >Squirrel.Windows - Electron Forge
Create a Windows installer for your Electron app using Electron Forge. ... Squirrel.Windows is a no-prompt, no-hassle, no-admin method of installing Windows ...
Read more >Squirrel.Windows - electron-builder
Squirrel.Windows. The top-level squirrelWindows key contains set of options instructing electron-builder on how it should build Squirrel.Windows. Squirrel.
Read more >How to Create a Windows Installer for an Electron App using ...
Squirrel.Windows installers do not display detailed progress information or ask the user for any confirmation while installing.
Read more >How to make uninst.exe by electron-forge 6 with squirrel ...
Unfortunetly Squirrel does not have an option to make uninstall file. So by the official way, it is not possible. But you can...
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
@malept TL;DR Read my Edit at the bottom of this comment for solution I found.
I am having the same difficulty with setupIcon. Could someone please post a very obvious example of the final path? Like what does a absolute setupIcon path should look like?
I’m trying all of the above examples and it never finds the image path (Fatal error: Unable to load file).
Here’s what I’m doing (and I’ve tried atleast 30 variations)
output directory structure: source directory structure:
Where is the maker-squirel module looking at. I don’t understand why it fails with even absolute paths and relative, etc.
EDIT: I found a hidden property somewhere on the internet and it fixes the problem! It’s unexpected but adding the skipUpdateIcon:true property in the configs will work even for the same exact setupIcon path… wierd. So, I’m refering to this https://js.electronforge.io/maker/squirrel/interfaces/makersquirrelconfig#setupicon and my solution right now is:
I can’t reproduce this behavior. I have a testcase here: https://github.com/malept/electron-forge-demo123/tree/forge6-issue-1635
I had GitHub Actions build a Squirrel installer here: https://github.com/malept/electron-forge-demo123/actions/runs/116519042
It shows the correct icons both when I run the setup file and when I uninstall the app.
If you can provide a minimal testcase repository that shows the behavior you describe, please link it here and we can see if it is a bug in Electron Forge (or more likely, if it’s a bug, it’s in
electron-winstaller
or Squirrel.Windows).