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.

App name not set correctly in Windows EXE metadata

See original GitHub issue

Hi,

EDITED: This case is only about the item below. The case started out with more issues, but those are split off into separate cases and either already fixed, or related to issues outside Electron-packager. Only the item below remains:

  • If I run the executable and right-click on its icon after it launched, the name ‘Electron’ still shows (but with the icon I specified)

INITIAL CASE DESCRIPTION: For the past day and a half I’ve been trying to package my app as a Windows executable. While the basic process works, I run into the following issues:

  • If I look at the file details of the created .exe: – the ‘File version’ is still set to the used Electron version, although i specify another version – the ‘Product version’ is empty
  • If I run the executable and right-click on its icon after it launched, the name ‘Electron’ still shows (but with the icon I specified)
  • If I pin the app, a new icon is created (when right-clicking that it also shows ‘Electron’, but also with the icon I specified)

Note that the generated .exe did get the supplied fileName, the suplied icon and that ‘File description’, ‘Product name’, ‘Copyright’ and ‘Original filename’ are set as specified

In my main.js I do call this: app.setAppUserModelId('com.squirrel.myCompany.myCompany');

I work on Windows 10 and am using the latest electron-packager version and use electron 0.34.0

This is the command I use:

electron-packager .\app\ myCompany --platform=win32 --arch=x64 --version="0.34.0" --overwrite --app-version="1.0" --icon="myCompany.ico" --app-bundle-id=myCompany --helper-bundle-id=myCompany --version-string.CompanyName="myCompany Inc." --version-string.ProductName=myCompany --version-string.FileDescription=myCompany --version-string.LegalCopyright="Copyright (C) 2015 myCompany Inc. All rights reserved." --version-string.ProductVersion=1.0 --version-string.FileVersion=1.0 --version-string.InternalName=myCompany --version-string.OriginalFilename=myCompany

I’ve seen many cases related to this, but all are marked as closed and should be included in the latest releases.

As I’ve looked everywhere for solutions and tried all that I could find and none worked, I’m posting this as a bug.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:19 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
nithinc989commented, Jun 29, 2017

Thanks for the reply, I figured out now that it was not an issue with npm, I had to use double quotes escaped and not single quotes. That solved my problem. In case anyone is facing similar issue they can use it as shown below. "elpackage": "electron-packager ./ MYCompany --platform=win32 --arch=x64 --overwrite --icon=./MYCompany.ico --win32metadata.CompanyName=\"MYCompany Inc.\" --win32metadata.ProductName=myName --win32metadata.FileDescription=\"MY Company\" --appCopyright=\"Copyright © 2015 MYCompany Inc. All rights reserved.\""

@malept It would be great if you could add certificate adding option in the electron packager itself. Now for adding the certificate I need to create a bundled exe using electron-winstaller. I don’t know if that is possible with packager but its just something that would be good to have if it can be done. 😃 . If it is already there could you please point me in the right direction.

1reaction
maleptcommented, Jun 28, 2017

@nithinc989 this is probably an issue with NPM and not Electron Packager, if it works correctly when you run the command directly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting packaging, deployment, and query of ...
Error code Value Description and possible causes E_INVALIDARG 0x80070057 ERROR_INSTALL_INVALID_ PACKAGE 0x80073CF2 The package data isn't valid. ERROR_INSTALL_NETWORK_ FAILURE 0x80073CF5 The package can't be downloaded.
Read more >
How do I set the version information for an existing .exe, .dll?
Just use File->Open->File on the .EXE or .DLL. This is handy for fixing version information post-build, or adding it to files that don't...
Read more >
Common Configuration - electron-builder
Configuration¶ · appId = com. · productName String | “undefined” - As name, but allows you to specify a product name for your...
Read more >
Using Spec Files - PyInstaller
After you do this, you name the spec file to PyInstaller instead of the script: ... On Windows this option is automatically set...
Read more >
App Store Review Guidelines - Apple Developer
Metadata such as app names, subtitles, screenshots, and previews should not include prices, terms, or descriptions that are not specific to the ...
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