http://bugs.winehq.org/show_bug.cgi?id=29529
Bug #: 29529 Summary: Magical Jelly Bean Keyfinder: Cannot load Hive, says "path not found". Product: Wine Version: 1.3.35 Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: jthomas97411@yahoo.com Classification: Unclassified
Simply run Magical Jelly Bean keyfinder in Wine 1.3.35 (or any version before that, I'm pretty sure), and try to load a hive (A hive is a binary file that Windows uses to store registry keys, as opposed to a text file such as a *.reg file containing registry keys in ASCII text.). It won't work. This is using Magical Jelly Bean Keyfinder version 2.0.8.
Click on tools, and then go to "Load Hive..." An error message pops up saying "Can't load registry hive from: ... Path not found"
No terminal output.
The goal is to get Keyfinder to load /WINDOWS/System32/config/SOFTWARE.
Note: when you tell it to load a hive, it automatically appends system32\config\software to the path you give. So if you tell it to load ~\windows\system32\config, it will look for ~\windows\system32\config\system32\config\software (which doesn't exist, or at least shouldn't).
I have tried copying the config folder to the desktop and renaming everything in the path to be all lowercase (the error message prints the path in all lowercase, so I thought that might help it.), doesn't help.
Cheers, Jake
http://bugs.winehq.org/show_bug.cgi?id=29529
Jake Thomas jthomas97411@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |http://www.magicaljellybean | |.com/downloads/keyfinder.zi | |p
http://bugs.winehq.org/show_bug.cgi?id=29529
Vitaliy Margolen vitaliy-bugzilla@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |WONTFIX
--- Comment #1 from Vitaliy Margolen vitaliy-bugzilla@kievinfo.com 2012-01-04 08:34:38 CST --- Wine does not support native binary registry hives. And there are no plans to support it in the future.
http://bugs.winehq.org/show_bug.cgi?id=29529
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |00cpxxx@gmail.com
--- Comment #2 from Bruno Jesus 00cpxxx@gmail.com 2012-01-22 13:02:31 CST --- When you're running a real windows there is a folder called repair which contains the backup of the registry hive. To get past the NOT FOUND error you need to have both "system32\config\software" and a backup in "repair\software". But that will only make it go a bit further and say "privledge not held". I'm not sure what debug channels can be used to debug that. IMO the application is able to work in wine if it gets past that error. The application simply opens the binary file and reads it.
http://bugs.winehq.org/show_bug.cgi?id=29529
--- Comment #3 from Jake Thomas jthomas97411@yahoo.com 2012-01-22 16:57:43 CST --- I upgraded to Wine 1.3.37. Now when I run the Magical Jelly Bean Keyfinder, I get a pop-up with the error "Range check error." when the program first starts up. The program window doesn't appear until I click "OK" to the error pop-up.
When I click "Microsoft Windows XP" in the left pane, that message appears again. It doesn't show anything in the right pane for clicking "Microsoft Windows XP". In 1.3.36, this was not the case. See the "Windows Info" screenshot: http://appdb.winehq.org/screenshots.php?iAppId=13809&iVersionId= .
And Bruno Jesus, where exactly is this repair folder? In Linux, I made a folder named "repair" in System32 and put a copy of SOFTWARE (the hive file) in there. That didn't make the keyfinder any happier. I also tried moving the folder right into the WINDOWS folder. I also put it in the config folder. Same results. I didn't see any repair folders anywhere until I made one. I do have a RegBack folder, though. So did you personally get past the "Hive load failed." message? How exactly did you do it?
Jake
http://bugs.winehq.org/show_bug.cgi?id=29529
--- Comment #4 from Jake Thomas jthomas97411@yahoo.com 2012-01-22 17:03:31 CST --- My bad, Bruno Jesus. You said how to get past the "not found" error, not the "Hive load failed." I'm running 1.3.37 now, and so far I haven't gotten a "not found" error. I'm getting "Hive load failed.", even when I copy the SOFTWARE file to my desktop and then tuck it into a "Windows" folder and then a "System32" folder and then a "config" folder (so that the Windows folder I select is on my desktop in Linux).
http://bugs.winehq.org/show_bug.cgi?id=29529
--- Comment #5 from Jake Thomas jthomas97411@yahoo.com 2012-01-22 17:07:39 CST --- I suppose this bug is technically solved. It doesn't yield "path not found" any more. The error is just replaced with another one: "Hive load failed." Before this bug gets marked as "solved", let's see what other people think about it (i.e, does this count as "solved"?). I would think so. It looks like we have a new separate bug now.
Jake
http://bugs.winehq.org/show_bug.cgi?id=29529
--- Comment #6 from Bruno Jesus 00cpxxx@gmail.com 2012-01-22 17:33:38 CST --- What I mean is that the path not found error is not only related to c:\windows\system32\config\software but also to c:\windows\repair\software (which is a backup).
If you have only one of them the program will say path not found, as stated in your first comment.
http://bugs.winehq.org/show_bug.cgi?id=29529
--- Comment #7 from Jake Thomas jthomas97411@yahoo.com 2012-01-22 17:44:12 CST --- Well, my Windows side doesn't have such a backup, (no repair folder in the Windows folder, except when I put one there), and whether it's there or not, in 1.3.37, Magical Jelly Bean Keyfinder says "Hive load failed.", which seems to imply that it finds it just fine, but then can't load it. So I think the "path not found" bug is behind us for now.
Jake
http://bugs.winehq.org/show_bug.cgi?id=29529
--- Comment #8 from Bruno Jesus 00cpxxx@gmail.com 2012-01-22 17:49:49 CST --- Please, post a screenshot of the error message.
http://bugs.winehq.org/show_bug.cgi?id=29529
--- Comment #9 from Jake Thomas jthomas97411@yahoo.com 2012-01-22 17:58:54 CST --- They're coming...hold on.
http://bugs.winehq.org/show_bug.cgi?id=29529
--- Comment #10 from Jake Thomas jthomas97411@yahoo.com 2012-01-22 18:00:46 CST --- Created attachment 38500 --> http://bugs.winehq.org/attachment.cgi?id=38500 This pop-up error appears when I launch the Magical Jelly Bean Keyfinder in Wine 1.3.37. It's new to me (didn't see it happen in any previous Wine versions).
http://bugs.winehq.org/show_bug.cgi?id=29529
--- Comment #11 from Jake Thomas jthomas97411@yahoo.com 2012-01-22 18:03:31 CST --- Created attachment 38501 --> http://bugs.winehq.org/attachment.cgi?id=38501 No Windows Information given. Windows information was given in Wine 1.3.36.
Compare to: http://appdb.winehq.org/appimage.php?iId=37902
http://bugs.winehq.org/show_bug.cgi?id=29529
--- Comment #12 from Bruno Jesus 00cpxxx@gmail.com 2012-01-22 18:07:42 CST --- The application works as before here. Retry in a new wineprefix. Also I don't have that range check error. The screenshot I would like is from the registry hive load error.
http://bugs.winehq.org/show_bug.cgi?id=29529
--- Comment #13 from Jake Thomas jthomas97411@yahoo.com 2012-01-22 18:07:46 CST --- Created attachment 38502 --> http://bugs.winehq.org/attachment.cgi?id=38502 Error comes up everytime "Microsoft Windows [version]" is selected in left pane.
Note that this isn't any different that the initial error pop-up on launch. On launch, by default, it selects "Microsoft Windows [version]" in the left pane. So it makes sense that it gives the error on launch too.
It's just that on launch, the main window doesn't appear until you say "OK" to the pop-up. Whereas later, when you select "Windows" in the left pane, the window is already loaded, so you see both the main window and the error.
Jake
http://bugs.winehq.org/show_bug.cgi?id=29529
--- Comment #14 from Jake Thomas jthomas97411@yahoo.com 2012-01-22 18:09:08 CST --- Created attachment 38503 --> http://bugs.winehq.org/attachment.cgi?id=38503 Hive Load Fails
http://bugs.winehq.org/show_bug.cgi?id=29529
--- Comment #15 from Jake Thomas jthomas97411@yahoo.com 2012-01-22 18:09:51 CST --- Created attachment 38504 --> http://bugs.winehq.org/attachment.cgi?id=38504 Step 1 of Loading Hive
http://bugs.winehq.org/show_bug.cgi?id=29529
--- Comment #16 from Jake Thomas jthomas97411@yahoo.com 2012-01-22 18:10:19 CST --- Created attachment 38505 --> http://bugs.winehq.org/attachment.cgi?id=38505 Selecting Hive Folder
http://bugs.winehq.org/show_bug.cgi?id=29529
--- Comment #17 from Jake Thomas jthomas97411@yahoo.com 2012-01-22 18:11:12 CST --- Created attachment 38506 --> http://bugs.winehq.org/attachment.cgi?id=38506 Range Check Error Occurs in both XP mode and Win7.
http://bugs.winehq.org/show_bug.cgi?id=29529
--- Comment #18 from Jake Thomas jthomas97411@yahoo.com 2012-01-22 18:13:32 CST --- Same story with new prefix. What Wine version are you using?
http://bugs.winehq.org/show_bug.cgi?id=29529
--- Comment #19 from Bruno Jesus 00cpxxx@gmail.com 2012-01-22 18:13:53 CST --- We are using different program versions. As I downloaded it today my version is 2.0.8. You're using 2.0.1.
http://bugs.winehq.org/show_bug.cgi?id=29529
--- Comment #20 from Jake Thomas jthomas97411@yahoo.com 2012-01-22 18:16:53 CST --- Sneaky. Let me fix that.
http://bugs.winehq.org/show_bug.cgi?id=29529
--- Comment #21 from Jake Thomas jthomas97411@yahoo.com 2012-01-22 18:23:16 CST --- Yep. Same behavior as you report with version 2.0.8. I got too excited to test the Magical Jellybean Keyfinder with the new Wine version and didn't notice that I was using an older version of Keyfinder. Good catch, Bruno Jesus. Thanks.
Still says "path not found" and I don't get the "Range Check Error." Either. And is successfully gets Windows Information.
I really missed that one.
Jake
http://bugs.winehq.org/show_bug.cgi?id=29529
--- Comment #22 from Bruno Jesus 00cpxxx@gmail.com 2012-01-22 18:28:52 CST --- So, to reach the same error I'm now you have to create the \windows\repair\software. If you run with WINEDEBUG=+file you will notice these lines:
trace:file:wine_nt_to_unix_file_name L"\??\C:\as\windows\system32\config\software" -> "/tmp/LKK/dosdevices/c:/as/windows/system32/config/SOFTWARE"
trace:file:wine_nt_to_unix_file_name L"\??\C:\as\windows\repair\software" -> "/tmp/LKK/dosdevices/c:/as/windows/repair/SOFTWARE"
The application is now checking for both files. The message should say: Privledge not held.
Maybe the problem is how to run wine as administrator to get past this privledge error.
http://bugs.winehq.org/show_bug.cgi?id=29529
--- Comment #23 from Jake Thomas jthomas97411@yahoo.com 2012-01-22 18:31:28 CST --- Ok. I had a second bone-head moment. I had my Windows partition mounted to a folder named "windows". I have been selecting that instead of the Windows folder in the Windows folder. Now that I figured out I was doing that and corrected my method, I get the "privilege not held" error like you.
Thanks again, Jake
http://bugs.winehq.org/show_bug.cgi?id=29529
--- Comment #24 from Jake Thomas jthomas97411@yahoo.com 2012-01-22 18:34:06 CST --- I remember reading on the forums, I think it might have been James McKenzie that said this (a Wine dev), that all programs ran in Wine are supposed to think they are running with admin rights.
Jake
http://bugs.winehq.org/show_bug.cgi?id=29529
--- Comment #25 from Jake Thomas jthomas97411@yahoo.com 2012-01-22 18:38:41 CST --- I still get "privilege not held" when I make a Windows folder on my desktop in Linux and put a repair folder and a System32 folder in that Windows folder. Then I put a copy of SOFTWARE in the repair folder and put a config folder in the System32 folder. Then I put a copy of SOFTWARE in the config folder.
Yeah, didn't work. I thought it might have privileges to my desktop, given that I am running Wine as my user.
Jake
http://bugs.winehq.org/show_bug.cgi?id=29529
--- Comment #26 from Bruno Jesus 00cpxxx@gmail.com 2012-01-22 18:45:44 CST --- Maybe it's related to:
trace:ntdll:NtOpenProcessTokenEx (0xffffffff,0x00000028,0x00000000,0x32f978) trace:ntdll:NtAdjustPrivilegesToken (0x4c,0x00000000,0x32f964,0x00000010,0x32f954,0x32f974)
http://bugs.winehq.org/show_bug.cgi?id=29529
--- Comment #27 from Jake Thomas jthomas97411@yahoo.com 2012-01-22 18:47:17 CST --- And in delayed response to Vitaliy Margolen's comment:
It is possible for a program to have it's own binary-file-reading code, as opposed on depending on operating-system-provided APIs.
I know this because the MiTec Registry Viewer can actually view Windows hive files in Wine (like RegEdit). So if Vitaliy Margolen is saying that Wine doesn't have those APIs, that must be how that program is able to do that.
I think I went through about 13 different registry browsing programs before I found one that works in Wine (that can load a hive). Now I know why. Most depend on those APIs. At least I'm guessing that that is the reason.
But the MiTec Registry Viewer can't edit the registry. It can only browse it. But if coupled with chntpw (a Linux-native CLI Windows registry editor), you have a powerful pair, because last time I used chntpw, it lacks tree viewing functionality, and is poor as a browser. But the two make a complete unit.
Jake
http://bugs.winehq.org/show_bug.cgi?id=29529
--- Comment #28 from Jake Thomas jthomas97411@yahoo.com 2012-01-22 18:57:24 CST --- Tried putting the files/folders into the actual Wine prefix. Nope. That didn't work either.
Jake
http://bugs.winehq.org/show_bug.cgi?id=29529
--- Comment #29 from Jake Thomas jthomas97411@yahoo.com 2012-01-22 19:00:57 CST --- Hey - I have a question. Bruno Jesus, are you using a GUI other than Gnome? Or anyone out there? I have a question that I can't answer because I only have Gnome (and have been too lazy to make a VM with something other than Gnome to try it out). It's about Wine, the GUI, and the Magical Jelly Bean Keyfinder: http://forum.winehq.org/viewtopic.php?p=71000&sid=09f7a23be4f4b3a37e09f2... .
Jake
http://bugs.winehq.org/show_bug.cgi?id=29529
--- Comment #30 from Jake Thomas jthomas97411@yahoo.com 2012-01-23 02:24:00 CST --- Bruno Jesus, thank you for getting back on my GUI question at the forum. That's one less potential Wine bug. I'll have to play around with that Nirsoft program myself and take a peak.
Jake
http://bugs.winehq.org/show_bug.cgi?id=29529
Vitaliy Margolen vitaliy-bugzilla@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #31 from Vitaliy Margolen vitaliy-bugzilla@kievinfo.com 2012-01-23 08:37:26 CST --- This bug is closed. If you want to talk about editing windows registry - use forum.
http://bugs.winehq.org/show_bug.cgi?id=29529
Saulius K. saulius2@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |saulius2@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=29529
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net URL|http://www.magicaljellybean |https://web.archive.org/web |.com/downloads/keyfinder.zi |/20150422100930/http://www. |p |magicaljellybean.com/downlo | |ads/keyfinder.zip Component|-unknown |ntdll