Topic "INI by default"

Author Message
Guest




Hello

I didn't find a thread with this subject, so sorry if it's been discussed before, but...

I think it would nice to have the WinSCP executable create an INI file on first run as a default, instead of writing to the registry first and then having the user go in to change the preference to write to a local INI. (Unless the executable doesn't write to the registry on first run prior to logon? Not sure~) Great product, though, I've been showing it to various people for a while. Smile
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
I'm trying to adhere to Windows standards as much as possible. And registry is the Windows standard to store configuration.
_________________
Martin Prikryl
Biju

Guest


prikryl wrote:
I'm trying to adhere to Windows standards as much as possible. And registry is the Windows standard to store configuration.

using registry make coding simpler, but because of this, registry is getting bigger and bigger every day. And that increases to time to bootup pc, switch WinXP user etc. And makes every things slow if you have low memory.
It also make it difficult to migrate a usersettings for one pc to other, taking backups etc.

You can do almost every thing using files (or subdir/files) in "All Users" profile and current users "Application Data" dir.

Use of registry can be limited to store things like Application Install dir for upgrade. And unavoidable entries like file/protocol association, ActiveX control registration etc.

I dont know why open source developers not getting this message. Going after MS recommended registry only reduces the freedom users have with out it.

You can get "Application Data" or "All Users" dir by

using register entry HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\AppData

using %APPDATA% and %ALLUSERSPROFILE% env var

or using SHGetSpecialFolderLocation API
Werdhi
[View user's profile]

Joined: 2004-04-06
Posts: 12
I'm too much a novice to get into the ".ini" by default versus Windows registry debate, but I am wondering about it.

I have downloaded WinSCP and begun using it. Very impressive Razz ... I downloaded the stand-alone program rather than the installer. I prefer NOT to have installers run (I like to keep track of what I'm putting on my computer AND I wasn't sure I needed all the Putty stuff as it appears I can connect with SFTP without Putty).

Question If I have run the program and used it to connect BEFORE switching the preference to save all settings to an .ini file in the folder on my PC where the .exe file is located, then what becomes of the settings that have been stored in my registry? Do I now have clutter there that is unnecessary as I have chosen the .ini file for my WinSCP settings? I'd like to keep the registry free of any unnecessary entries.

Thank you for your kind attention and hard work.
_________________
Windows XP Home (SP II)
PIV 2.4 Ghz
1 GB RAM
56k Dial-up
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Werdhi wrote:
Question If I have run the program and used it to connect BEFORE switching the preference to save all settings to an .ini file in the folder on my PC where the .exe file is located, then what becomes of the settings that have been stored in my registry? Do I now have clutter there that is unnecessary as I have chosen the .ini file for my WinSCP settings? I'd like to keep the registry free of any unnecessary entries.

When you swhich to .INI file, the registry settings remains. To clean them, go to "Stored sessions" tab of login dialog, press "Tools" button and select "Clean up".
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License