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.

WiX MSI creates generic icon in start menu and on desktop

See original GitHub issue

Preflight Checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project follows, as appropriate.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.

Issue Details

  • Electron Forge Version:
    • 6.0.0-beta.53
  • Electron Version:
    • 10.1.3, 9.3.1
  • Operating System:
    • Windows 10 Build 18362
  • Last Known Working Electron Forge version::
    • 6.0.0-beta.52 (at least for the start menu part, this one didn’t generate a desktop icon at all)

Expected Behavior

The icons in start menu and on desktop use the application’s icon as specified in packager config.

after

Actual Behavior

The icons in start menu and on desktop use a generic icon.

before

To Reproduce

  • Set an icon through packager config
  • Set up the WiX MSI maker
  • Create an MSI installer
  • Install the application
  • Check the desktop icon and icon in start menu

Additional Information

What I found during my investigation:

  • It seems there is a bug in the latest version of electron-wix-msi that prevents extraction of the app’s icon from the packaged exe. See also felixrieseberg/electron-wix-msi#99.
  • If you fix that extraction, the extracted icon will still be of low quality, resulting in a blurry desktop icon.

The good news is that the latest versions of electron-wix-msi also allow specifying a custom icon to use. This means we could do the following:

  • Easy fix: Adjust the documentation for MakerWixConfig to include the appIconPath property. Including this in your maker-wix config already works at the moment, only the doc is missing.
  • Improvement: Ideally, we can use the icon path specified in packager config as a default for this appIconPath property.

Demo that this works, on my own app:

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
mistermicheelscommented, Jan 19, 2021

@kakyoism Forge actually doesn’t change anything about the property’s name. The problem is that electron-wix-msi documentation specifies iconPath but its code requires appIconPath. I mentioned this in felixrieseberg/electron-wix-msi#99 but seems I forgot to explicitly mention it here.

0reactions
mistermicheelscommented, Feb 3, 2022

This appears to just be a documentation issue

I marked this as a bug because 6.0.0-beta.52 automatically took care of this (based on the icon from packagerConfig) and 6.0.0-beta.53 didn’t.

But I leave it up to you to decide if that level of integration with electron-wix-msi is part of the current scope for electron-forge.

Read more comments on GitHub >

github_iconTop Results From Across the Web

WiX MSI creates generic icon in start menu and on desktop
The icons in start menu and on desktop use a generic icon. before. To Reproduce. Set an icon through packager config; Set up...
Read more >
Windows or Windows Installer Not Updating Program Icon on ...
Type "indexing" in the start menu (or internationalized equivalent word), Click open. Click the Advanced button. In the Index Settings tab, ...
Read more >
Shortcut Element | WiX Toolset
Name Type Required Id String Yes Advertise YesNoType Arguments String
Read more >
Your first WiX project | WiX 3.6: A Developer's Guide to ...
Once you've downloaded and installed it, open Visual Studio and select New Project | Windows Installer XML | Setup Project. This will create...
Read more >
electron-wix-msi-custom - npm
Creates an MSI installer for your Electron app. Latest version: 2.1.5, last published: 4 years ago. Start using electron-wix-msi-custom in ...
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