You are here

PuTTY: Import of configuration from a non-portable installation

16 posts / 0 new
Last post
arbonne5
Offline
Last seen: 11 years 2 weeks ago
Joined: 2007-03-01 20:59
PuTTY: Import of configuration from a non-portable installation

Hello,

Is there a way to import the configuration from a non-portal installation of putty?

Thanks

John T. Haller
John T. Haller's picture
Online
Last seen: 35 min 36 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Yup

You just need to create a .reg backup of your current setup:

1. Open Regedit by clicking START - RUN. Enter regedit and click OK.
2. Browse to the key HKEY_CURRENT_USER\Software\SimonTatham and select the SimonTatham piece in the right hand pane
3. Click File - Export and save it as putty.reg
4. Copy that file to your PuTTYPortable\Data\settings directory

I should write this up and put it on the support page...

Sometimes, the impossible can become possible, if you're awesome!

NiMhurchu
Offline
Last seen: 2 years 4 months ago
Joined: 2007-03-04 03:20
Registry export/import

Hi,
this is not quite true.
First, it's the left hand pane, or did I miss something? Wink
Second, I exported the registry entry, which results in a 116kB .reg file, which I saved as putty.reg in the settings directory. When I start PuttyPortable now, it only recognizes like the first five of 20 original entries (given below, entries listed on PortablePutty marked with asterisks).

Edit: I just checked the registry with PortablePutty started. Registry keys (SimonTatham and -Backup) are the same, so all putty.reg values were imported. Exported both keys, compared them with ExamDiff, no difference. Display problem?

Using rev 2 on Windows XP SP 2.

Default Settings
***Cisco1721 LockAndKey
***Cisco1721 lokal
***Linuxproxy
Router_FH1
Router_FH1-Entwicklung
Router_H118
Z-Server
Tunnel Datenbank Fürth
Tunnel Datenbank Fürth Release
Tunnel Datenbank Fürth neu
***lux09505
***lux09670(Releaseumgebung)
methodenk.com
ovmaster
rdiagsh
sgpt806x
srsacc1
use_merlin_proxy_120
use_merlin_proxy_123
use_merlin_proxy_234

arbonne5
Offline
Last seen: 11 years 2 weeks ago
Joined: 2007-03-01 20:59
Similar result for me. Only

Similar result for me. Only a part of my old entries are shown.

NiMhurchu
Offline
Last seen: 2 years 4 months ago
Joined: 2007-03-04 03:20
Can we give more input to

Can we give more input to solve this issue?

arbonne5
Offline
Last seen: 11 years 2 weeks ago
Joined: 2007-03-01 20:59
Maybe a timing problem?

I realise that the entries which are shown in portable putty are the first ones in the reg file. Can you confirm that this is the case for you as well NiMhurchu?

Furthermore the number of entries vary between 4 to 6 between different runs of portable putty. Also if I start portable putty immidiatly after closing it with the cancel button from the configuration dialog then I have all my entries.

Is it possible that this is a timing problem that putty starts before all the registry entries are written?

I use WinXP SP2 with PuTTY Portable 0.59 Revision 2

Hope this helps to solve the problem.

John T. Haller
John T. Haller's picture
Online
Last seen: 35 min 36 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Hmm... that is a possibility...

That is a possibility. I think a long list of sites may take a tad longer. Give this launcher a try:
https://portableapps.com/temp/PuTTYPortablePause.exe

It adds in a longer pause between the registry import and the launch of PuTTY.

Sometimes, the impossible can become possible, if you're awesome!

arbonne5
Offline
Last seen: 11 years 2 weeks ago
Joined: 2007-03-01 20:59
Better but not complete

Now I got 7 to 11 entries within putty. So it is getting better. Is the delay customizeable (configfile, commandline option)? My reg file is about 150k large with 25 entries.

Thanks for the fast help.

John T. Haller
John T. Haller's picture
Online
Last seen: 35 min 36 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
It's Windows

The issue is that it's Windows that's being slow about it. The import is done and reported done by Windows to NSIS. You're using XP right? Perhaps regedit isn't doing it's job well anymore for large imports. Maybe reg.exe would be better.

I'm already giving it a full second pause. Which should be more than enough.

Let me try a reg.exe-based importer for you...

Sometimes, the impossible can become possible, if you're awesome!

NiMhurchu
Offline
Last seen: 2 years 4 months ago
Joined: 2007-03-04 03:20
No, I can't, see my first

arbonne5, no, I can't, see my first post above, I marked the imported entries.

But nevertheless, I got 15 of 19 entries now with PuttyPause. Unfortunately, playing around with rev. 2, I deleted 9 entries from the original set, so I can't confirm functionality with more than 19 entries right now.
(This is on a 3GHz P4 HT with 2G of RAM, with "DisablePagingExecutive" and "LargeSystemCache" set to "1").

John T. Haller
John T. Haller's picture
Online
Last seen: 35 min 36 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Pausing Take 2

Ok, here's another possibility. This one keeps the pause but uses the newer import setup (Win2K and up) first. Try it out with lots of entries:
https://portableapps.com/temp/PuTTYPortablePause2.exe

BTW - I tested it out on my XP machine and it imports/exports 30 entries without a hiccup even using the original non-pausing launcher so I'm not quite sure what could be causing this on other's systems.

Sometimes, the impossible can become possible, if you're awesome!

arbonne5
Offline
Last seen: 11 years 2 weeks ago
Joined: 2007-03-01 20:59
You did it !!!

All my entries are shown correctly. Great work. Thanks alot.

I do not know why my PC behaves differently than yours. A P4 2.8Ghz 1GB RAM should be more than enough to do the job ...

John T. Haller
John T. Haller's picture
Online
Last seen: 35 min 36 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Excellent - One More Test

Excellent. Figured that might help. Ok, if you'll indulge me... let's test one more thing. Try this one:
https://portableapps.com/temp/PuTTYPortableNoPause2.exe

This is back to the original with no pause, but using the newer import method. That way we can nail down that it's a regedit issue and I'll use reg.exe on Win2K and up. I'll see if I can help the NSIS folks update the registry.dll plugin, too.

Sometimes, the impossible can become possible, if you're awesome!

arbonne5
Offline
Last seen: 11 years 2 weeks ago
Joined: 2007-03-01 20:59
This works as well

If you like to test more to nail down the problem I am happy to help. This way I can at least contribute a tiny bit Smile

John T. Haller
John T. Haller's picture
Online
Last seen: 35 min 36 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Back n Forth

Try both the new NoPause2 and then the original Pause to see if it still works with NoPause2 and not with Pause. That will verify that it is infact regedit vs reg and it's officially nailed.

Thanks for testing Wink

Sometimes, the impossible can become possible, if you're awesome!

arbonne5
Offline
Last seen: 11 years 2 weeks ago
Joined: 2007-03-01 20:59
Back n Forth

After using it now for two days and several tries of all starters the behaviour is consistent:
PuTTYPortable.exe and PuTTYPortablePause.exe do not import all entries while PuTTYPortablePause2.exe and PuTTYPortableNoPause2.exe do.
I guess we can close this case then :-).

Thanks again for all the nice portable apps (not just putty).

Log in or register to post comments