You are here

WinSCPPortable Can't Change PuTTY/terminal client path

3 posts / 0 new
Last post
Jersh
Offline
Last seen: 9 years 4 days ago
Joined: 2015-11-22 22:03
WinSCPPortable Can't Change PuTTY/terminal client path

I can't change the setting for PuTTY/terminal client path in WinSCPPortable. I want to do it point it to PuTTYPortable.exe, but after reopening WinSCPPortable, the setting is overwritten. I don't like the linker program because it requires PuTTY to be running already but PuTTYPortable.exe does not.

http://puu.sh/lvmLh.png

My directory structure is:

PortableApps
-PuTTYPortable
-...
-WinSCPPortable

Looking at the source code, it looks like the code causing this is in WinSCPPortableU.nsi:

RestoreSettings:
WriteINIStr "$SETTINGSDIRECTORY\winscp.ini" "Configuration\Interface" "RandomSeedFile" "%2E%5Cwinscp.rnd"
WriteINIStr "$SETTINGSDIRECTORY\winscp.ini" "Configuration\Interface" "DDTemporaryDirectory" "%2E%5C"
WriteINIStr "$SETTINGSDIRECTORY\winscp.ini" "Configuration\Interface" "PuttySession" "WinSCP%20Portable%20Temporary%20Session"
StrCpy $0 `$PROGRAMDIRECTORY\PuTTYPortableLinker.exe`
;${StrReplace} $1 "\" "%5C" $0
${WordReplace} $0 "\" "%5C" "+" $1
WriteINIStr "$SETTINGSDIRECTORY\winscp.ini" "Configuration\Interface" "PuttyPath" "$1"

John T. Haller
John T. Haller's picture
Offline
Last seen: 13 hours 54 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
By Design

This is by design, because otherwise the two collide with each other and will cause settings to be lost since the two share a registry key which is moved into and out of the registry. You must launch them in that order using that process for it to be effectively portable. You're purposely being prevented from doing it manually and possibly losing your settings for PuTTY Portable if you open and close the apps in the wrong order.

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

Jersh
Offline
Last seen: 9 years 4 days ago
Joined: 2015-11-22 22:03
Oh, darn. Thanks for the

Oh, darn. Thanks for the reply.

Log in or register to post comments