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.

Windows is searching for program.exe

See original GitHub issue
  • Version: ^22.7.0
  • Electron Version: ^8.0.0
  • Electron Type (current, beta, nightly): current
  • Target: NSIS

Running my installer I get a dialog that pops up that says “Windows is searching for Quotation Assistant.exe…” and it gives me the option to try and browse and find the exe myself.

image

If I let it continue trying to find the executable, it always fails.

image

I can browse and select the executable that is located at dist/win-unpacked/Quotation Assistant.exe and that will work until I try run the installer again and it fails.

In my AppData/Local/Programs/quotation-assistant folder, there is only the uninstaller present. I checked another program that I use electron-builder for, and it’s got a lot more files present (what looks like to be the contents of the win-unpacked folder).

I’ve done some searching already trying to fix this issue, and I’ve found the following issue: #4057 . That seems to be the closest I can find to what I’m getting. The solutions proposed in that issue do not work for me.

My current build settings:

	"build": {
		"appId": "quotation-assistant",
		"productName": "Quotation Assistant",
		"compression": "store",
		"asar": true,
		"win": {
			"target": {
				"target": "NSIS",
				"arch": [
					"x64",
					"arm64"
				]
			},
			"icon": "app/static/icons/win/icon.ico"
		},
		"files": [
			"!dist/*",
			"!dummy_root/*",
			"!screens/*",
			"!app/sass/*",
			"!.sass-cache/*",
			"!.vscode/*",
			"!package-lock.json",
			"!*.rb",
			"!*.sql"
		]
	},

This issue appears to occur on multiple computers as well, not just the computer I’m building on.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
alex-griffithscommented, Jan 7, 2021

Running as administrator (both building and the installation) doesn’t seem to work.

I think it’s probably got something to do mainly with this block of package.json

"target": {
	"target": "NSIS",
	"arch": [
		"x64",
		"arm64"
	]
},

Which I pulled from the docs I think (it’s been a while and I originally did it for another project) so that I could build on ARM.

0reactions
Echo4Fcommented, Oct 31, 2021

Can anyone be of help?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows cannot find .exe - Microsoft Community
When I try to open certain Apps, I get an error message as follows: "Windows cannot find 'C:\Program Files (x86)\PAN Livestock Services\ ...
Read more >
How to quickly find a program's EXE file in Windows 10?
1. Use the program’s shortcut. 2. Use the Task Manager. 3. Use the shortcut pinned to the taskbar.
Read more >
How to Quickly Locate a Program's EXE file on ... - How-To Geek
Right-click the “Start” menu shortcut for the application, and select More > Open file location. Finding an application's shortcut location ...
Read more >
How to Find EXE Files for Apps on Windows 10 - groovyPost
Whether you need to modify an application, retrieve its shortcut, or do some advanced troubleshooting, finding the EXE file is easy if you ......
Read more >
Program files (.exe) not found by Windows Search Solved
I noted some other searches also led to 'Windows is still indexing some files'. My Computers.
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