Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation directory gets truncated name when package name contains dashes or dots. #637

Closed
djpereira opened this issue Aug 3, 2016 · 9 comments

Comments

@djpereira
Copy link
Contributor

Electron Builder v5.22.1
Target: Windows x64

It seems like the name of your package, in the application package.json, is used to determine in which folder within appdata\local the application will be installed.

If the name of your package contains a period or a dash, then when the application is installed, the name of the folder gets truncated on that character. For example, an app with a package name of electron-quick-start, would get installed in %userprofile%/appdata/local/electron instead of %userprofile%/appdata/local/electron-quick-start.

This causes issues when you have different apps with the same prefix, which is common when you have different products of the same company. Maybe there's a way to overwrite this, but I am not sure how.

I put together an example on the repo below.
https://github.com/djpereira/electron-quick-start/tree/electron-builder-appname-issue

@develar
Copy link
Member

develar commented Aug 3, 2016

Just to be sure — squirrel.windows?

@djpereira
Copy link
Contributor Author

djpereira commented Aug 3, 2016

Yes, this is just for Windows and using Squirrel.
This works well on OSX, which gets installed in a different way.

@develar
Copy link
Member

develar commented Aug 3, 2016

We also support nsis and it is much better than squirrel.windows, not yet default because auto-update not yet supported.

@djpereira
Copy link
Contributor Author

Thanks @develar, we are aware of NSIS and we have taken it into consideration. As of right now, we believe that Squirrel fits our needs in a better way. I am looking at the code to try to figure out if it is a squirrel or an electron-builder issue, but I haven't figure it out yet. If you know is a squirrel issue, let me know and I'll file it with them.

@djpereira
Copy link
Contributor Author

djpereira commented Aug 3, 2016

I think this is actually an issue with Squirrel. See Squirrel/Squirrel.Windows#523. It may be good to at least warn the user when there's a space, dash or dots in the package ID.

I think winstaller also fails if you try to create an MSI with a package name that contains a dash.

@develar
Copy link
Member

develar commented Aug 4, 2016

It may be good to at least warn the user when there's a space, dash or dots in the package ID.

We are going to throw Squirrel.Windows away (change default target) and make NSIS as default target. As a real solution. I am tired to fix Squirrel.Windows bugs.

@djpereira
Copy link
Contributor Author

@develar, these seem to be problems that could be addressed at electron/windows-installer. If they do get fixed there, would you be open to update your package develar/windows-installer with the fix?

@develar
Copy link
Member

develar commented Aug 4, 2016

If they do get fixed there, would you be open to update your package develar/windows-installer with the fix?

Of course, actually, I didn't move this issue to backlog — it means that I am going to investigate and fix it.

@develar
Copy link
Member

develar commented Sep 14, 2016

NSIS is recommended, moved to backlog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants