WinSCP Portable does not create INI file, instead REGISTRY

Advertisement

davidnelson
Joined:
Posts:
3
Location:
San Diego, CA, U.S.A.

WinSCP Portable does not create INI file, instead REGISTRY

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! :D

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
29,540
Location:
Prague, Czechia

Re: WinSCP Portable does not create INI file, instead REGISTRY

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.

Reply with quote

davidnelson
Joined:
Posts:
3
Location:
San Diego, CA, U.S.A.

Registry

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.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
29,540
Location:
Prague, Czechia

Re: Registry

And what about HKEY_LOCAL_MACHINE\SOFTWARE\Martin Prikryl\WinSCP 2?
_________________
Martin Prikryl

Reply with quote

davidnelson
Joined:
Posts:
3
Location:
San Diego, CA, U.S.A.

It worked...

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! :D

Reply with quote

Advertisement

You can post new topics in this forum