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

fileAssociations fails on msi target #3694

Closed
alxAgu opened this issue Feb 15, 2019 · 2 comments
Closed

fileAssociations fails on msi target #3694

alxAgu opened this issue Feb 15, 2019 · 2 comments
Labels

Comments

@alxAgu
Copy link

alxAgu commented Feb 15, 2019

  • Version: 20.38.5
  • Target: Windows

fileAssociations not working on msi targets. After installing the app, the files with extension .asdfgh are not recognized, works fine with nsis and dmg targets though. Bellow my config:

	"build": {
		"icon": "build_resources/icon.icns",
		"directories": {
			"buildResources": "build_resources",
			"app": "myAppDir",
			"output": "dist"
		},
		"fileAssociations": [
			{
				"ext": "asdfgh",
				"name": "Alphabet File",
				"role": "Viewer"
			},
		],
		"mac": {
			"category": "public.app-category.finance",
			"target": [
				"dir",
				"dmg"
			],
			"type": "development",
			"asar": true
		},
		"win": {
			"target": [
				"dir",
				"msi",         
			],
			"icon": "build_resources/icon.ico",
			"asarUnpack": [
				"**node_modules/regedit/**"
			]
		},
}
@stale
Copy link

stale bot commented Jul 1, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the backlog label Jul 1, 2019
@stale stale bot closed this as completed Jul 8, 2019
@skececi
Copy link

skececi commented Jul 30, 2021

  • Version: 20.38.5

  • Target: Windows

fileAssociations not working on msi targets. After installing the app, the files with extension .asdfgh are not recognized, works fine with nsis and dmg targets though. Bellow my config:

	"build": {
		"icon": "build_resources/icon.icns",
		"directories": {
			"buildResources": "build_resources",
			"app": "myAppDir",
			"output": "dist"
		},
		"fileAssociations": [
			{
				"ext": "asdfgh",
				"name": "Alphabet File",
				"role": "Viewer"
			},
		],
		"mac": {
			"category": "public.app-category.finance",
			"target": [
				"dir",
				"dmg"
			],
			"type": "development",
			"asar": true
		},
		"win": {
			"target": [
				"dir",
				"msi",         
			],
			"icon": "build_resources/icon.ico",
			"asarUnpack": [
				"**node_modules/regedit/**"
			]
		},
}

I am having the same issue - did you find a way to properly associate the file type when using MSI?

aplum added a commit to aplum/electron-builder that referenced this issue Jan 6, 2022
Also fix iconId sometimes containing invalid characters, and iconId config option being ignored.

Closes electron-userland#3694, electron-userland#6488
aplum added a commit to aplum/electron-builder that referenced this issue Jan 12, 2022
Also fix iconId sometimes containing invalid characters, and iconId config option being ignored.

Closes electron-userland#3694, electron-userland#6488
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants