Configuration updates not saving after importing winscp.ini

Advertisement

itsgood
Joined:
Posts:
2

Configuration updates not saving after importing winscp.ini

Log debug 1 shows that my .ini file is saved at:
Configuration: C:\Program Files (x86)\WinSCP\WinSCP.ini

That file hasn't been updated since I imported the winscp.ini file from another computer. I can't switch back to the registry as my primary configuration (error 5).

How do I have WinSCP remember configuration changes that I make, post import?

Using WinSCP Version 5.1.4 (Build 3020) (OS 6.1.7601 Service Pack 1)

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: Configuration updates not saving after importing winscp.ini

You probably do not have a write access to C:\Program Files (x86)\WinSCP\.
It would help, if you post a complete error, not just "error 5". But I suppose that WinSCP is able to copy configuration from INI file to registry, but needs to delete the INI file afterwards, what obviously fails (no permissions).

Some solutions:
- Delete the INI yourself (make back up). This would work providing the import to registry succeeded.
- Run WinSCP as administrator for the INI to registry switch.
- Use WinSCP 5.2 beta that allows importing configuration from INI file located anywhere:
https://winscp.net/eng/docs/config#import

Reply with quote

itsgood
Joined:
Posts:
2

Re: Configuration updates not saving after importing winscp.ini

Thanks, Martin. I tried Beta 5.2 and that solved the problem. I have full admin rights to the folder, and I can edit the .ini file so it wasn't a write access issue. Regardless, the issue is fixed with 5.2. Thanks!! Keep up the great work with the product.

martin wrote:

You probably do not have a write access to C:\Program Files (x86)\WinSCP\.
It would help, if you post a complete error, not just "error 5". But I suppose that WinSCP is able to copy configuration from INI file to registry, but needs to delete the INI file afterwards, what obviously fails (no permissions).

Some solutions:
- Delete the INI yourself (make back up). This would work providing the import to registry succeeded.
- Run WinSCP as administrator for the INI to registry switch.
- Use WinSCP 5.2 beta that allows importing configuration from INI file located anywhere:
https://winscp.net/eng/docs/config#import

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: Configuration updates not saving after importing winscp.ini

itsgood wrote:

Thanks, Martin. I tried Beta 5.2 and that solved the problem. I have full admin rights to the folder, and I can edit the .ini file so it wasn't a write access issue.
Right, but as you are using Windows 7, WinSCP runs probably in unpriviledged mode by default, no matter that your account is an admin. You may need to run it explicitly "as admin" to grant it access to system folders.

Reply with quote

JDJ
Guest

Thanks for the assistance

I've just had an identical problem with a newly installed copy of WinSCP on Windows 8.
Switching from .INI config to the Registry worked fine after running the program as Administrator.

It would be helpful if this could be documented somewhere!

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Re: Thanks for the assistance

JDJ wrote:

It would be helpful if this could be documented somewhere!
What do you mean? To document fact that you cannot have a configuration file in a folder, where you do not have a write permissions to?

Reply with quote

Advertisement

You can post new topics in this forum