NSIS windows 10 desktop shortcut icon missing #865
Comments
Please try to restart Windows. |
The issue persists after restart as well |
Were you able to reproduce the issue? |
@embeddedemily Not yet. My test apps work for me. If you can attach here your project / link to repo — it will help me to reproduce the issue. |
I can't do that unfortunately, since it's a private repo which I do not have rights to share. Let me investigate as well on my end. I'll try making brand new sample app and packaging it up and see what happens. Another possible helpful detail: I don't use the two package.json build system I only have one json file. Maybe that makes a difference |
Could you please try run your installer on another machine?
Is it possible to send me only installer? |
I tested installer on two other windows 7 machines and both had same issue where icon would appear on desktop with right app name but wrong icon and the link path would be blank. I might be able to give installer (I believe we're still in discussion as to whether installer for our app will be freely available for download online. But I'd rather try and work it out without at first. I made brand new electron app, simply cloned electron-quick-start repo, added electron builder as follows:
And ran "npm run dist" on my windows 10 virtual machine which gave me the installer which I ran and got the following: It appears as though it is at least linking and putting icon in this instance but it's still the wrong icon and appears to link the folder from which I ran the installer rather than the folder where it installed to on the local machine: C:\Users\Emily\AppData\Local\Programs\electron-quick-start But again on windows machine start menu shortcut it perfect. |
@develar I suspect the issue is target path based and not truly with the icon. That is to say the reason I got a blank white icon in my first case was because the target path was completely blank. Yet with the last case for simple test case I do get a folder icon which would be appropriate considering it's pointing to a folder. But the question becomes why is it pointing to a folder and not the install path and subsequently the executable. Because my guess would be once target path is present icon will display properly. |
Relates #864 |
@develar worked like a charm when I disabled that feature! thanks a ton for your help! |
@embeddedemily Yep. Thanks for confirmation. I didn't report to Parallels since this feature is nightmare in any case and should be disabled in any case. Maybe this feature is ok for dummy home users, but for developers it is no-no. |
@emilyplusplus what option to i use to change the desktop shortcut icon for |
@emilyplusplus @gtkpr I've focused this problem these days.I fixed this by add config: |
When using NSIS to create a windows single click installer it creates a desktop icon with a blank icon and that doesn't work, i.e. it points to nowhere and doesn't launch app when you click it. See image:

I have sniffed around nsh scripts and don't see anything weird about desktop icon, and I should note that the start menu icon and shortcut works fine, it's only the desktop shortcut that has this issue. Tried running installer as admin too, same issues. Tried compatibility mode and that has the same issue too.
"build": { "appId": "com.domain.application", "linux": [ "AppImage", "deb", "rpm" ], "win": { "target": "nsis" } }
The text was updated successfully, but these errors were encountered: