Topic "WinSCP Portable does not create INI file, instead REGISTRY"

Author Message
davidnelson
[View user's profile]

Joined: 2014-11-21
Posts: 3
Location: San Diego, CA, U.S.A.
The documentation states that when running the portable version, if no .INI file exists "...it tries to create one with default configuration (if it fails to do so it uses registry, preventing portable use)." Why would it "fail to do so"? In my case it does not create an INI but instead writes to the HKEY_CURRENT_USER registry hive. I can then go into the GUI and switch to INI under the Storage preference and that works no problem. I just wanted a way to run this so it never writes to the registry in the first place.

I just downloaded the latest version today (5.5.6 build 4746). I am running on Windows 7. Thanks! Very Happy
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
Well the description on Portable Use article is not complete, I have added a link to Auto-selecting Configuration Storage article:
https://winscp.net/eng/docs/config#auto

Your problem can actually be that you already had configuration stored in registry.
davidnelson
[View user's profile]

Joined: 2014-11-21
Posts: 3
Location: San Diego, CA, U.S.A.
Thank you for the quick response! I actually double-checked for the existence of the registry key [HKEY_CURRENT_USER\Software\Martin Prikryl] PRIOR to running the executable. However, when I launched WinSCP.exe it did not create an empty INI file as stated in the "Auto-selecting Storage" but instead created the registry key above.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
And what about HKEY_LOCAL_MACHINE\SOFTWARE\Martin Prikryl\WinSCP 2?
_________________
Martin Prikryl
davidnelson
[View user's profile]

Joined: 2014-11-21
Posts: 3
Location: San Diego, CA, U.S.A.
I found and deleted HKEY_LOCAL_MACHINE\SOFTWARE\Martin Prikryl and also HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Martin Prikryl.

After deleting the above keys and the original HKEY_CURRENT_USER\Software\Martin Prikryl, I ran the executable and it did in fact create and populate the WinSCP.ini file as documented.

Thanks for your help! Very Happy
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