You are here

PuTTY: change exe name not working? (John, read this)

5 posts / 0 new
Last post
obenhodc
Offline
Last seen: 17 years 7 months ago
Joined: 2006-03-13 19:20
PuTTY: change exe name not working? (John, read this)

i'm having trouble getting PuTTYPortable to work with different settings in the ini file. all that i have changed is the PuTTYExecutable line, and i also changed the name of putty.exe to puttyTest.exe.

[PuTTYPortable]
PuTTYDirectory=App\putty
SettingsDirectory=Data\settings
PuTTYExecutable=puttyTest.exe
AdditionalParameters=
DisableSplashScreen=false

is there something else i'm doing wrong?

obenhodc
Offline
Last seen: 17 years 7 months ago
Joined: 2006-03-13 19:20
Installer not reading all of ini file?

John,
I decided to look through the nsi file for the installer for PuTTYPortable. Within the ReadINI section, it only reads the app directory and the settings directory. I compared this to the nsi for firefox where the ReadINI section is much longer, and has entries for each item in the ini file.
I'm going to see if i can get the compiler working....

Your signature will be publicly displayed at the end of your comments.

obenhodc
Offline
Last seen: 17 years 7 months ago
Joined: 2006-03-13 19:20
I win.

Well, taking a cue from the firefox nsi, i added these 2 lines to the ReadINI section.

ReadINIStr $0 "$INIPATH\${NAME}.ini" "${NAME}" "${APP}Executable"
StrCpy "$PROGRAMEXECUTABLE" $0

and recompiled. Now it works.

with a little more testing, the additional parameters and disable splash screen options do work in the original. so it looks like it is just those 2 lines missing.

Your signature will be publicly displayed at the end of your comments.

yozif
Offline
Last seen: 16 years 7 months ago
Joined: 2008-04-19 09:55
...

hi, well done! pls can u send me the recompiled PuTTYPortable.exe? thnx
yoz
critical.error@seznam.cz

m-p-3
m-p-3's picture
Offline
Last seen: 7 months 20 hours ago
Joined: 2006-06-17 21:25
We should have the

We should have the PortableApp launcher updated on the website, might save some searching to new users.

Log in or register to post comments