Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Copying exe files from server to pc

18 Dec 2010   #1
RAG

Windows 7 Home Premium 64bit
 
 
Copying exe files from server to pc

We update our client's software *.exe programs by storing the update code in a blob record in a server based MySQL database.

When the user logs on to the main program on his PC, if there are updates, a dialog message displays and the updates are written from the server to the local directory -- the same directory as the main program resides.

This has worked very well on XP (where we used *program files\* as the directory).
It has also worked fine in vista and 32bit windows 7 (where we use the user's app data\roaming directory.

On Windows 7 64-bit however, the update fails. It opens the file name of the updated program with zero bytes and then displays the message:

"Could not write to... c:\Users\[user]\AppData\Roaming\.. etc."

I've tried running the main program as administrator.
I've turned off UAC.
I suspect this is a security issue, but is there any workaround?

Help!

R Greene


My System SpecsSystem Spec
.

18 Dec 2010   #2
Johnathan Lyman

Windows 7 Ultimate 64-bit
 
 

That app has to have permission to write to that user's folder. If it's running under their user name it shouldn't be a problem. If it runs under a different username or group (like Network Service, etc etc) make sure that group can write to said destination.
My System SpecsSystem Spec
18 Dec 2010   #3
RAG

Windows 7 Home Premium 64bit
 
 

The main program is run by the user (via shortcut on desktop) and the program is located in the user's appData\roaming folder.

How do I track down what is blocking the write?
My System SpecsSystem Spec
.


18 Dec 2010   #4
Johnathan Lyman

Windows 7 Ultimate 64-bit
 
 

Quote   Quote: Originally Posted by RAG View Post
The main program is run by the user (via shortcut on desktop) and the program is located in the user's appData\roaming folder.

How do I track down what is blocking the write?
I'm not an expert on Active Directory or anything like that BUT if you are using that, make sure the user has permission to write to the drive:\Users\USERNAME\AppData\Roaming folder. System processes usually do, as with network services, but if the user doesn't, any program they run won't either. Sometimes even if UAC is ignored when it's run as an admin.

In regards to your second question, I'm really not sure.
My System SpecsSystem Spec
Reply

 Copying exe files from server to pc




Thread Tools





Similar help and support threads
Thread Forum
My external HDD not copying certain files
I am trying to copy some files to my external hard disk but some certain files doesn't want to move or copy at all no matter how many times I have tried. I also formatted my HDD to NTFS but no result. I also use TeraCopy but it won't help to.
Hardware & Devices
Copying Files Bug?
I am not sure if this is a bug or if I have to "turn something on" or what. I didn't see it in the lists of things that are missing: I was moving some files from one drive to another. Identical files. What I discovered is Windows 7 defaults to making a copy (adding -copy at the end of the file...
General Discussion
Permission copying files bug
Hi I have two parititions an XP and a Windows 7 I have files in my XP that I would like to copy to my windows 7 however I have trouble copying them. The funny thing is I can delete and modify them but I cant seem to copy them. I have done all "take ownership" and "grant permission" jazz but...
Network & Sharing
Copying files
When ever i try to transfer or copy a file to my desktop or another to another file, my computer completly freezes up, no ctrl alt del fuction, nothing, complete freeze, but when i do a hard restart, its perfectly fine when it starts back up
BSOD Help and Support
Copying Large Files
I am having some problems copying large files to my computer from an external hard drive. The copying process starts but then seems to freeze after a couple of minutes. Is this happening to anyone else and is there anything I can do?
General Discussion
copying files to mydocs or program files
I tried doing this. Example.... game files/data from my XPdocs on C: to my win7 docs on D:.... couldnt do it, just gave me a chime, no dialogue box or anything. Also tried to move a file from my desktop to either mydocs or to program files folder, same thing. After that, even took ownership of...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 21:13.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App