Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a portable version of WinSCP. After unzipping the archive and moving it to C:\Program Files (x86)\Dev\WinSCP it turns out that when I run the WinSCP.exe file, it does not have permissions to write to its WinSCP.ini file, that sits in the same folder as the application.

I can probably solve this temporarily by running WinSCP.exe as an Administrator, but this feels like the wrong approach in the long run.

share|improve this question

closed as off topic by joeqwerty, Dave M, Greg Askew, Alex, mdpc Jan 15 '13 at 19:12

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1  
It's portable. There's no reason it needs to be in Program Files. Move it to its own folder somewhere outside of Program Files (like in the root). –  joeqwerty Jan 15 '13 at 17:05

1 Answer 1

up vote 2 down vote accepted

The Program Files folders are protected, meaning that only Administrators can change their contents for security reasons.

Typically the application does not write to the Windows registry or store its configuration files in the user's profile. Instead, it stores its configuration files in it's own directory.

The idea behind the portable apps platform is simply to run applications in a user's home directory.

Wikipedia: About Program Files

share|improve this answer
    
Good stuff. So it looks like it's not a good practice to allow the application to write to the contents of the Program Files directory under any circumstance. Thanks. –  Tom Auger Jan 15 '13 at 18:40

Not the answer you're looking for? Browse other questions tagged or ask your own question.