Import of .REG info

[expired user #6332]'s profile image [expired user #6332] posted 12 years ago in HeidiSQL portable Permalink
When importing the reg info from my computer to the portable version of HeidiSQL the session information does not seem to transfer?
ansgar's profile image ansgar posted 12 years ago Permalink
What did you do/click exactly?
ansgar's profile image ansgar posted 12 years ago Permalink
Ah, I guess you clicked the "Import settings" menu item? Yes, that one just starts regedit.exe with the file provided as parameter. The portable version works in its own registry folder, and the folder in your .reg file obviously has a different root name than the one you need for your portable instance, e.g. "[HKEY_CURRENT_USER\Software\HeidiSQL]". What I should do is creating a copy of that .reg file before the import actually runs, and modifiy the path to the correct one.
[expired user #6332]'s profile image [expired user #6332] posted 12 years ago Permalink
Thanks. Somehow I had got the idea that the portable version didn't alter the reg of the machine it was ran on.
ansgar's profile image ansgar posted 12 years ago Permalink
Well the portable uses registry, but only as long as the process runs, and in a different folder than the non-portable does. You can even start multiple portable instances which all use their own registry folder. When you exit the portable, the registry folder is dumped into the portable_settings.txt file, and the registry folder gets deleted.
ansgar's profile image ansgar posted 12 years ago Permalink
I'm on the way to change the export file format, from a .reg file into the format used for the portable mode. The advantage is we can import into the used registry path, independently of the portable mode. And, you don't need admin privileges to import such files. I'll probably keep backwards compatibility to .reg files, by detecting the file extension. But solving the above issue will only be done with that new settings file format.
Code modification/commit from ansgar.becker, 12 years ago, revision 7.0.0.4128
Use home brown file format for exporting and importing registry settings, as used for portable_settings.txt. Registry dumps cannot be imported into a separate registry key for a portable instance, which is hereby fixed, see http://www.heidisql.com/forum.php?t=10503 .
ansgar's profile image ansgar posted 12 years ago Permalink
File format changed as described above in r4128.
leeoniya's profile image leeoniya posted 12 years ago Permalink
maybe another look at this issue is worthwhile.

http://code.google.com/p/heidisql/issues/detail?id=1805

i found that you don't need admin rights to import non-privilaged registry keys if you use "reg.exe" instead or "regedit.exe"...
ansgar's profile image ansgar posted 12 years ago Permalink
No need for reg.exe nor for regedit.exe any longer, with that new file format.

Please login to leave a reply, or register at first.