Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows 7 issues?
Message
From
12/03/2010 18:37:25
 
 
To
10/03/2010 07:34:44
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01452056
Message ID:
01454271
Views:
119
>Hi Don.
>
>>Hmm. . . I can fully read/write/delete to both locations (local is win7, remote is winserver 2008). I have full administrator access and the copy is being done outside of VFP (just a plain windows copy), so I don't see where it would make a difference.
>
>It does make a difference. While you may think you have full admin access, unless Win 7 has displayed the UAC dialog (i.e. you elevated), you are NOT running with an admin security token even though you logged in as an admin. As a result, when you try to write to a file in a protected folder (such as one in Program Files), Win 7 "virtualizes" the write, sending it off to another, writable, folder instead. The file in the protected folder is never written to. If you then copy the file from an elevated process (i.e. the UAC dialog did appear), it doesn't see the virtualized copy and instead copies the original file that hasn't been written to.
>
>Here are some resources you might want to look at that describe this fully and what to do about it:
>
>http://advisor.com/doc/18897
>http://my.advisor.com/doc/19195
>http://doughennig.blogspot.com/2007/12/where-should-data-go-in-vista.html
>
>Doug

Hi Doug -
Thanks for the reply. My IT guy did find a a paper at http://windowsconnected.com/blogs/jerry/archive/2005/12/19/86.aspx that explained it pretty well. \groan\ This all means I will have to rewrite every app I have out there and reinstall every user because I have some still using XP and others moving to Vista and Win7. If I build the exe to look in \ProgramData for the file pointers, the XP users won't have those folders. I suppose the other option would be to have 2 versions of the exe but that will be a pain also. Or optionally don't install into Program Files at all. But either way I will need to reconfigure everybody.

- Don
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform