Page 1 of 1
Windows 10 blocking file copy from network
Posted: Wed Oct 07, 2015 6:25 pm
by AdrianGray
I have a section in my installer that compares files on a network location and copies them to the local client if they are missing. On Windows 7 clients, it works without an issue. On a Windows 10, client the files are prevented form being copied. The installer is launched from the network location by the local app and is designed to update the client when newer files become available. What should I be implementing to get around this. Thanks, Adrian.
Re: Windows 10 blocking file copy from network
Posted: Thu Oct 08, 2015 12:28 pm
by FrancescoT
Dear Adrian,
do you have any chance to send me a "very very minimal" project that replicates the issue?
Regards
Re: Windows 10 blocking file copy from network
Posted: Thu Oct 08, 2015 8:43 pm
by AdrianGray
Hi Francesco. This is a section of code that I am using. Since my post, I changed the way it was working to move the files from the network location to the local temp folder first, then to the client path. This did not resolve the issue. This code removes a few .exe's I don't want to copy from the list first. I a using Native Engine but I am not enforcing Administrative rights as some client computer users will not be administrators but are likely to have full rights to the local folder. The way this is designed to work is that our application checks to see if new files have been placed on the network share. If they have, this installer them proceeds to copy them across to the local user. Thanks, Adrian
~InstallAware Clipboard Data~
~Next~
~{444E2619-FC6C-4DC1-8449-9B410E5CA2F6}~
~End~
~{4602F6CA-B4A3-467F-AEB8-50941C968025}~
~Copy/Move Local Files~
~{2419E912-179F-4285-97A4-E8A1FB5A99FA}~
~$WindowsTempFolder$~
~$CurrentFile$~
~$PCSProgramPath$~
~~
~FALSE~
~TRUE|FALSE~
~Copy/Move Local Files~
~{812DB33B-E0B9-4971-A6C0-13DEB0A8683A}~
~$PCSServerProgramsPath$~
~$CurrentFile$~
~$WindowsTempFolder$~
~~
~TRUE~
~FALSE|FALSE~
~Delete Files~
~{194AB2D4-C997-4139-AB6E-3805798507AD}~
~$PCSProgramPath$~
~$CurrentFile$~
~TRUE~
~FALSE~
~If~
~{909CE1D3-B121-4D57-AD92-841003261C58}~
~Newer~
~0~
~TRUE~
~FALSE~
~Comment~
~{733BE752-F2A7-45CE-8042-B6793A239E01}~
~~
~End~
~{9D90FF5D-44EB-41D4-9AA8-E3F570782274}~
~Check File Version~
~{2E971E2C-8DC4-4644-8A3B-93CF729085C2}~
~Newer~
~$PCSServerProgramsPath$$CurrentFile$~
~TRUE~
~$PCSProgramPath$$CurrentFile$~
~~
~Else~
~{70EB4386-424D-465C-9813-9DB71504AB5F}~
~Set Variable~
~{6B27643C-D472-46E9-9013-7439128CEEB3}~
~Newer$MYAH$MYAH$FALSE~
~TRUE~
~If~
~{6978341A-57FE-4134-A3F0-D26D47B8A71F}~
~DownGrade~
~0~
~TRUE~
~FALSE~
~Comment~
~{64DA53B9-6B8A-488A-8725-7A1FED5C1B9B}~
~~
~Extract Path~
~{06D49424-C4E3-40FE-AA19-D6B5B207FB1E}~
~CurrentFile~
~0~
~Mathematics~
~{1D689F0B-5AB4-469B-A36A-F67E9B9AF220}~
~$Progress$~
~2~
~0~
~PROGRESS~
~For Each~
~{F856C1CD-C6B6-4FEC-99E6-3FB22DD50CB8}~
~CurrentFile~
~|~
~$Files$~
~Comment~
~{D16A41AF-A7F5-4186-BEB2-C7CA87A13287}~
~~
~Replace String~
~{697A7BAE-AD21-4001-9CF7-3218C639DA76}~
~Files~
~wsautoup.exe~
~~
~TRUE~
~TRUE~
~Replace String~
~{868E0E29-0FE6-4AFF-8753-E482AC570C68}~
~Files~
~pcstray.exe~
~~
~TRUE~
~TRUE~
~Replace String~
~{C294EBF3-F393-466E-A2C5-7EA8CD940A9E}~
~Files~
~pcsq.exe~
~~
~TRUE~
~TRUE~
~Replace String~
~{2FE8A687-4F85-4390-8704-F5329D467D68}~
~Files~
~"~
~~
~TRUE~
~TRUE~
~Find All Files~
~{3BF9FC2C-B373-42EA-BF28-11093E22F046}~
~$PCSServerProgramsPath$*.exe~
~FALSE~
~FALSE~
~Files~
~Set Variable~
~{9747CC3A-8BD3-4E71-B170-2B5E63171366}~
~Newer$MYAH$MYAH$FALSE~
~FALSE~
~Comment~
~{2479582E-2E7F-4070-8EA3-AC35E5ED2DD9}~
~Remove unnecessary .exe files~
~Comment~
~{BDF7FE75-8E6E-4028-A7D3-6D975760C187}~
~Copy EXE files across - PCSchool and PCSQ~
Re: Windows 10 blocking file copy from network
Posted: Fri Oct 09, 2015 11:50 am
by FrancescoT
I'll check it!
Regards
Re: Windows 10 blocking file copy from network
Posted: Wed Nov 18, 2015 1:02 am
by AdrianGray
Any luck with testing. Thanks.
Re: Windows 10 blocking file copy from network
Posted: Wed Nov 18, 2015 12:13 pm
by FrancescoT
Dear Adrian,
I have done a quick test using the code below, which basically copies a Group of file from a network shared folder.
For what I see it works fine when executed under a limited account context on WIN 10.
The only difference with your code, it's the destination folder I used to copy the files ("C:\Users\<USERNAME>\AppData\Local\myTestFolder") .
Code: Select all
Set Variable NATIVE_ENGINE to TRUE
Set Variable MY_TARGET_FOLDER to C:\Users\<USERNAME>\AppData\Local\myTestFolder
Create Folder $MY_TARGET_FOLDER$
Copy Local Files \\MYSERVER\shared\*.* to $MY_TARGET_FOLDER$
Hope this helps you.
Regards