https://bugs.winehq.org/show_bug.cgi?id=37268
Bug ID: 37268 Summary: When importing from commandline, wine's regedit gives error "Warning! Unrecognized escape sequence" Product: Wine Version: 1.7.26 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: seann.giffin@gmail.com
I'm trying to get Adobe CS4 to work under wine 1.7.26 (compiled from GIT with MSI patch from bug #18070. I can get the installer to work, and it runs mostly, but some components don't install (like Photoshop). Unsure why. Figured I would just copy from a Windows install, and import registry settings saved from said Windows install (XP). Saved all the Adobe-related keys from Windows to a .REG file (about 4 MB) and attemptted to import, but wine regedit throws "unrecognized escape sequence" errors and the keys are not imported. And yes, I read bug #4495 and I believe this is a different issue.
I can attach the .REG file in question if anybody wants to see it.
https://bugs.winehq.org/show_bug.cgi?id=37268
hanska2@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hanska2@luukku.com
--- Comment #1 from hanska2@luukku.com --- Well you should attach the registery. Can you somehow do difference check with some program how different they are?
https://bugs.winehq.org/show_bug.cgi?id=37268
Seann seann.giffin@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |seann.giffin@gmail.com
--- Comment #2 from Seann seann.giffin@gmail.com --- Created attachment 49568 --> https://bugs.winehq.org/attachment.cgi?id=49568 Adobe CS4 Registry from WinXP Machine (Zipped)
.REG file was too big. Had to ZIP it down.
https://bugs.winehq.org/show_bug.cgi?id=37268
Seann seann.giffin@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #49568|0 |1 is obsolete| |
--- Comment #3 from Seann seann.giffin@gmail.com --- Created attachment 49574 --> https://bugs.winehq.org/attachment.cgi?id=49574 REG files from Clean Install of CS4 in both XP & WINE
I performed a clean install of CS4 on XP, and dumped the reg entries. I also created a clean prefix and did the same in WINE. I used the same Windows Utility to create the registry dumps from XP and WINE, and have zipped both files together (named accordingly) in this attachment. I have tried importing both and I get the same errors from both files:
Warning! Unrecognized escape sequence: \P' regedit: warning: unrecognized line: '"C:\Program Files\Common Files\Adobe\Installers\d2f336b2c5feeb945c28b7a0a45170f\RegLoc\ar_AE"='
The problem as I see it is that Windows has no problem with things like this:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Extended Properties{305CA226-D286-468e-B848-2B2E8E697B74} 2] "C:\Program Files\Common Files\Adobe\Adobe Version Cue CS4\Server\bin\VersionCueCS4.cpl"=dword:00000003
But wine doesn't like single back-slashes. And if I convert each single instance of \ to \ I mess up the registry key.
https://bugs.winehq.org/show_bug.cgi?id=37268
--- Comment #4 from Seann seann.giffin@gmail.com --- On XP, I used WinMerge and I looked at both files side by side. Aside from minor differences caused by the failure of certain apps to install on Wine, the keys in question are all the same on both WINE and XP.
https://bugs.winehq.org/show_bug.cgi?id=37268
--- Comment #5 from Bruno Jesus 00cpxxx@gmail.com --- Can you please export a single of this very long field names using regedit, please? I would just like to confirm that regedit will also not escape the field names.
https://bugs.winehq.org/show_bug.cgi?id=37268
--- Comment #6 from Seann seann.giffin@gmail.com --- Created attachment 49868 --> https://bugs.winehq.org/attachment.cgi?id=49868 Requested Key
https://bugs.winehq.org/show_bug.cgi?id=37268
--- Comment #7 from Bruno Jesus 00cpxxx@gmail.com --- Thank you. I don't really understand why windows exported the line twice, the second line is totally broken =)
As you can see the regedit exported version has \. If I change any of the \ to \ windows will also ignore the line and so will wine.
My current guess is that the software you used to export the registry has a bug.
https://bugs.winehq.org/show_bug.cgi?id=37268
--- Comment #8 from Seann seann.giffin@gmail.com --- I know the second line is broken (which I was curious about), but I used Microsoft's own Regedit on the original XP install to do the export. Importing it back worked on Windows again with Microsoft's own REGEDIT.EXE but not on WINE with WINE's regedit. That's why I opened this ticket. I didn't use any third party applications when working with the regisrty entries. Strictly XP's out-of-the-box stuff, and the same with WINE.
https://bugs.winehq.org/show_bug.cgi?id=37268
--- Comment #9 from Bruno Jesus 00cpxxx@gmail.com --- The files you attached have the header:
3 ; File created by TBackupManager 4 ; Component version: 1.5 5 ; Component used by: jv16 PowerTools 2014 6 ; Program version: 3.2.0.1354 7 ; File Description: 8 ; Date: 14.09.2014 9 ; Time: 21:29:14
A registry line is composed by the name and value. This program will correctly escape the value but not the name, so when imported in windows or wine the line gets ignored.
Comment 6 file is imported correctly in wine for me.
https://bugs.winehq.org/show_bug.cgi?id=37268
--- Comment #10 from Bruno Jesus 00cpxxx@gmail.com --- (In reply to Bruno Jesus from comment #9)
A registry line is composed by the name and value. This program will correctly escape the value but not the name, so when imported in windows or wine the line gets ignored.
By "the program" I mean TBackupManager.
https://bugs.winehq.org/show_bug.cgi?id=37268
--- Comment #11 from Bruno Jesus 00cpxxx@gmail.com --- Created attachment 49869 --> https://bugs.winehq.org/attachment.cgi?id=49869 Invalid reg file
This is the example I tried in both wine and XP and it fails in both (XP will say success but the key will not be created).
https://bugs.winehq.org/show_bug.cgi?id=37268
--- Comment #12 from Seann seann.giffin@gmail.com --- Wow. I'm an idiot. I've been trying so many different things, I think I've forgotten my own name at some point! I guess we can close this then!
Then I need to lodge a bug report with "jv16 PowerTools 2014" I guess.
https://bugs.winehq.org/show_bug.cgi?id=37268
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID
--- Comment #13 from Bruno Jesus 00cpxxx@gmail.com --- Resolving invalid then.
https://bugs.winehq.org/show_bug.cgi?id=37268
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #14 from Austin English austinenglish@gmail.com --- Closing.