Import of .REG info

wolfhnd posted 7 years ago in HeidiSQL portable
When importing the reg info from my computer to the portable version of HeidiSQL the session information does not seem to transfer?
ansgar posted 7 years ago
What did you do/click exactly?
ansgar posted 7 years ago
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.
wolfhnd posted 7 years ago
Thanks. Somehow I had got the idea that the portable version didn't alter the reg of the machine it was ran on.
ansgar posted 7 years ago
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 posted 7 years ago
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.
ansgar posted 7 years ago
File format changed as described above in r4128.
leeoniya posted 7 years ago
maybe another look at this issue is worthwhile.

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 posted 7 years ago
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.