Copying exe files from server to pc

RAG

New member
Local time
7:53 PM
Messages
2
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 Computer

Computer Manufacturer/Model Number
Hewlett-Packard / HPE-410f
OS
Windows 7 Home Premium 64bit
CPU
AMD Phenom II X6 1045T Processor 2.70GHz
Memory
8.00 GB
Graphics Card(s)
ATI Radeon HD 5570
Monitor(s) Displays
LG E2350 (HDMI) / 2
Hard Drives
Hitachi HDS7210CLA332 SATA
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 Computer

OS
Windows 7 Ultimate 64-bit
CPU
AMD Phenom II X6 1090T 3.2GHZ
Motherboard
MSI 890FXA-GD70
Memory
G.SKILL RipJaw 3x2GB DDR3-1066
Graphics Card(s)
2x HIS Radeon HD 6850 1 GB
Sound Card
VIA 8-channel
Monitor(s) Displays
2x 20 inch Acer LCDs, 1x 32" Sony LCD TV
Screen Resolution
4480x900
Hard Drives
1x Crucial 64GB SSD
3x 1TB HDDs (WD, Seagate, Hitatchi)
1x 500GB Seagate External
PSU
Kingwin 1000W Modular
Case
Coolermaster HAF 932
Cooling
1x 120mm, 3x 200mm, CoolerMaster Hyper 212+
Keyboard
Microsoft Wireless Keyboard 1000
Mouse
Microsoft Wiresless Mouse 5000
Internet Speed
20mbps
Other Info
Samsung BD-ROM/DVD-RW
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 Computer

Computer Manufacturer/Model Number
Hewlett-Packard / HPE-410f
OS
Windows 7 Home Premium 64bit
CPU
AMD Phenom II X6 1045T Processor 2.70GHz
Memory
8.00 GB
Graphics Card(s)
ATI Radeon HD 5570
Monitor(s) Displays
LG E2350 (HDMI) / 2
Hard Drives
Hitachi HDS7210CLA332 SATA
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 Computer

OS
Windows 7 Ultimate 64-bit
CPU
AMD Phenom II X6 1090T 3.2GHZ
Motherboard
MSI 890FXA-GD70
Memory
G.SKILL RipJaw 3x2GB DDR3-1066
Graphics Card(s)
2x HIS Radeon HD 6850 1 GB
Sound Card
VIA 8-channel
Monitor(s) Displays
2x 20 inch Acer LCDs, 1x 32" Sony LCD TV
Screen Resolution
4480x900
Hard Drives
1x Crucial 64GB SSD
3x 1TB HDDs (WD, Seagate, Hitatchi)
1x 500GB Seagate External
PSU
Kingwin 1000W Modular
Case
Coolermaster HAF 932
Cooling
1x 120mm, 3x 200mm, CoolerMaster Hyper 212+
Keyboard
Microsoft Wireless Keyboard 1000
Mouse
Microsoft Wiresless Mouse 5000
Internet Speed
20mbps
Other Info
Samsung BD-ROM/DVD-RW
Back
Top