https://bugs.winehq.org/show_bug.cgi?id=44755
Bug ID: 44755 Summary: reg.exe: does not provide /reg:64 switch in 64-bit wineprefix Product: Wine Version: 3.4 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: registry Assignee: wine-bugs@winehq.org Reporter: wine@marco-rebhan.de Distribution: ---
In a 64-bit prefix, the reg.exe command line switches /reg:32 and /reg:64 should be available to enable/disable registry redirection.
A command like `wine reg import /reg:64 test.reg` should be perfectly valid, to prevent the imported keys from going somewhere in Wow6432Node, but instead it gives the following error:
reg: Invalid syntax. Type "REG IMPORT /?" for help.
As far as I could figure out, there is no workaround other than manually importing the keys in the regedit GUI (calling regedit from the command line with the registry file as an argument doesn't work), which makes importing keys correctly not automatable.
Using wine-3.4 staging
https://bugs.winehq.org/show_bug.cgi?id=44755
wine@marco-rebhan.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |minor
--- Comment #1 from wine@marco-rebhan.de --- Of course, right after I report this, I find a workaround: instead of `wine reg import ...`, running `wine64 reg import ...` works and imports the keys to the correct location.
https://bugs.winehq.org/show_bug.cgi?id=44755
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|registry |programs
https://bugs.winehq.org/show_bug.cgi?id=44755
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |focht@gmx.net Ever confirmed|0 |1
--- Comment #2 from Anastasius Focht focht@gmx.net --- Hello folks,
confirming.
For consistency/compatibility with native Windows tool it should support both, '/reg:32' and '/reg:64' command line parameters.
--- quote --- ...
/reg:32 : Force REG.exe to write to the 32-bit registry location /reg:64 : Force REG.exe to write to the 64-bit registry location
By default a 32-bit process (such as an SCCM client or a 32 bit MSI installer) on a 64 bit machine, will use a 32-bit view of the registry: HKLM\SOFTWARE\Wow6432Node Use the /REG switch to over-ride this. See Q305097 for more details.
... --- quote ---
https://support.microsoft.com/en-us/help/305097/how-to-view-the-system-regis...
Regards
https://bugs.winehq.org/show_bug.cgi?id=44755
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=44755
tokktokk fdsfgs@krutt.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fdsfgs@krutt.org
https://bugs.winehq.org/show_bug.cgi?id=44755
pattietreutel katyaberezyaka@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |katyaberezyaka@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=44755
xatian@me.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |xatian@me.com
--- Comment #3 from xatian@me.com --- This is still an issue with version 5.15 Many GOG installers use the /reg:32 switch when installing a game and the option not being supported breaks these installers. For example: https://appdb.winehq.org/objectManager.php?sClass=version&iId=31058 I know of many other installers that suffer the same problem since GOG is using this parameter more often nowadays.
So plz add /reg:32 command line switch. It does not have to do something ... just add a stub and print a warning if you like. Thank you!
https://bugs.winehq.org/show_bug.cgi?id=44755
Hugh McMaster hugh.mcmaster@outlook.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hugh.mcmaster@outlook.com
--- Comment #4 from Hugh McMaster hugh.mcmaster@outlook.com --- Thanks for the bug report. I'm intending to add support for these switches in the next week or so.
https://bugs.winehq.org/show_bug.cgi?id=44755
--- Comment #5 from Hugh McMaster hugh.mcmaster@outlook.com --- 2b900e1c38d9bed0901ea036488e896e6df0cbe9 should help.
https://bugs.winehq.org/show_bug.cgi?id=44755
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED Summary|reg.exe: does not provide |reg.exe does not recognize |/reg:64 switch in 64-bit |'/reg:32' and '/reg:64' |wineprefix |switches passed via the | |command line Fixed by SHA1| |2b900e1c38d9bed0901ea036488 | |e896e6df0cbe9
--- Comment #6 from Anastasius Focht focht@gmx.net --- Hello folks,
https://source.winehq.org/git/wine.git/commitdiff/2b900e1c38d9bed0901ea03648... ("reg: Allow /reg:32 and /reg:64 switches to be passed via the command line.") made 'reg.exe' to not fail anymore but it would still import the registry data incorrectly depending on the bitness it was started with.
I don't know if comment #3 is fulfilled with 2b900e1c38d9bed09. If 'reg.exe' is started as 64-bit process within the installer it would be still doing the wrong thing.
Anyway, I've created bug 50962 for actual implementation of those switches. Subscribe there if your installer now puts the registry data into wrong view.
Regards
https://bugs.winehq.org/show_bug.cgi?id=44755
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 6.7.