Windows 10 blocking file copy from network
-
- Posts: 32
- Joined: Fri Jul 25, 2014 5:21 am
Windows 10 blocking file copy from network
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.
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Windows 10 blocking file copy from network
Dear Adrian,
do you have any chance to send me a "very very minimal" project that replicates the issue?
Regards
do you have any chance to send me a "very very minimal" project that replicates the issue?
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
-
- Posts: 32
- Joined: Fri Jul 25, 2014 5:21 am
Re: Windows 10 blocking file copy from network
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~
~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~
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Windows 10 blocking file copy from network
I'll check it!
Regards
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
-
- Posts: 32
- Joined: Fri Jul 25, 2014 5:21 am
Re: Windows 10 blocking file copy from network
Any luck with testing. Thanks.
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Windows 10 blocking file copy from network
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") .
Hope this helps you.
Regards
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
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Who is online
Users browsing this forum: No registered users and 236 guests