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.

Squirrel.Windows maker: setupIcon config not working

See original GitHub issue

The 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
alex-drockscommented, Sep 20, 2020

@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)

    'makers': [
        {
            'name': '@electron-forge/maker-squirrel', //https://js.electronforge.io/maker/squirrel/interfaces/makersquirrelconfig
            'config': {
                'name': 'Finance-D',
                'setupExe': 'Finance D - Installation.exe',
                'setupIcon': path.join('resources', 'app', 'src', 'images', 'favicon.ico'),
            }
        },

output directory structure: phpstorm64_TqX7GJuVrZ source directory structure: phpstorm64_s3ayS5LUG5

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:

    'makers': [
        {
            'name': '@electron-forge/maker-squirrel', //https://js.electronforge.io/maker/squirrel/interfaces/makersquirrelconfig
            'config': {
                'name': 'Finance-D',
                'setupIcon': path.join(__dirname, '/src/images/favicon.ico'),
                'skipUpdateIcon': true,
            }
        },
2reactions
maleptcommented, May 27, 2020

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).

Read more comments on GitHub >

github_iconTop 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 >

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