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

[BUG] 86Box.exe not found even when it should be #112

Open
Usalabs opened this issue Dec 24, 2022 · 6 comments
Open

[BUG] 86Box.exe not found even when it should be #112

Usalabs opened this issue Dec 24, 2022 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@Usalabs
Copy link

Usalabs commented Dec 24, 2022

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Open 86box manager
  2. Click on Settings
  3. Click on Browse at 86box path
  4. Navigate to 86box folder
  5. click 'Select' to select the folder where 86box.exe is located
  6. 86box manager then reports that 86Box.exe is not found

Expected behavior
A clear and concise description of what you expected to happen.
The version of 86box I have is the most recent one I downloaded from github 3.11 64bit version for windows, the 86box manager should be able to see 86box.exe in c:\users<username>\86box path, but it doesn't.

Screenshots
If applicable, add screenshots to help explain your problem.
Screenshot 1 shows the location where 86Box is found.
Screenshot 2 shows when browse is pressed in the 86Box manager path
Screenshot 3 shows 86Box.exe not found even though it shows the right path.

Environment (please complete the following information):

  • Host OS: [e.g. WIndows 10 Home version 22H2
  • 86Box build number 86Box-Windows-64-b4311
  • 86Box Manager Version 1.7.4
  • VM config file (86box.cfg) if applicable
  • VM name and full path if applicable

Additional context
Add any other context about the problem here.
86box-location
86box-manager-requesting-location
86box-manager-error

@Usalabs Usalabs added the bug Something isn't working label Dec 24, 2022
@daviunic
Copy link
Contributor

I am unable to reproduce the issue on my system (Win10 x64 22H2, same 86Box and 86Box manager versions as you reported). Are there any non-ASCII characters in your username? Should not be a problem, but asking just in case. I assume permissions on this folder are fine as well. Have you tried using any other folder to see if that works?

@Usalabs
Copy link
Author

Usalabs commented Dec 27, 2022

No unusual characters, just plain ASCII in lowercase, and only 7 characters in length. I do have folder protection enabled, and access to that folder is allowed in the exception list, otherwise I would get a warning from MS defender.

I even tried not using nested folders and tried directly from the C drive root, IE, C:\x86Box (uppercase is irrelevant for windows), and even put the manager in the same folder, and I still get the same result.

I'm wondering if the path is hardwired, because even though I put in the path to 86box.exe, when I close the settings and re-open it, the default path 'C:\Program Files (x86)\86Box' is still there.

ADDENDUM
I found the problem, no matter what path is entered, the program is literally looking at 'C:\Program Files (x86)\86Box' and if 86box.exe is not there then it shows not found, I tested this by creating a folder at 'C:\Program Files (x86)\86Box' and copied 86box.exe in there and the screenshot is the result, it actually found 86box.exe at that location, and being that the zip file that was downloaded didn't have an installer, it is supposed to be unzipped in any folder, and the manager is supposed to look at the location entered, but it doesn't, the manager is expecting 86box.exe at: 'C:\Program Files (x86)\86Box' regardless of any entry in the custom path.
86box-found

@daviunic
Copy link
Contributor

daviunic commented Dec 28, 2022

Can you verify what the EXEdir registry value in the HKEY_CURRENT_USER\SOFTWARE\86Box key contains? It should be the directory you chose and that's the value used, unless said registry key doesn't exist, at which point it does default to program files.

Your problem implies there's a problem with reading and/or writing that key. By default every user can write to their own CURRENT_USER hive, unless you've made some changes to the permissions there I guess.

EDIT: I see that if an exception happens when trying to parse that registry key, we silently fallback to default values. Perhaps an error should be shown instead to let the user know there's a problem. I'll probably do this for the 1.7.5 update regardless of what turns out to be the problem in your case.

@Usalabs
Copy link
Author

Usalabs commented Dec 28, 2022 via email

@daviunic
Copy link
Contributor

I'm preparing an update that will handle registry issues a bit better to help avoid weird issues like this. In the mean time, have you tried deleting the 86Box key entirely? This will wipe all the settings and VMs (backup the subkey if you want to keep those), perhaps something's just bugged out.

@daviunic daviunic changed the title [BUG] [BUG] 86Box.exe not found even when it should be Dec 30, 2022
@Usalabs
Copy link
Author

Usalabs commented Dec 30, 2022

I tried the removal of the EXEdir, key, and tried setting the path in the manager settings and it showed the not found error, and when I checked for the key in the registry, it wasn't there, but when I re-added the key: EXEdir=<proper path to 86Box.exe> the manager then showed the version and compatibility.

After removing the value EXEdir, I created a registry file 'exedir-path.reg' with these values:-

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\86Box]
"EXEdir"="C:\86box\"

Then I double clicked it to add it from the file and then opened the settings in the 86box manager and it showed the 86Box version and compatibility, it does seem that for some reason, the manager doesn't write to the registry, I don't have any 3rd party antivirus, only using defender, with ransomware protection enabled, with the 86box folder allowed to be written to, but then again, the manager my be attempting to write to the registry but failing silently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants