Hello,
I am a newbie on Microsoft Dynamics NAV. My version is 2013 R2.
I want to Copy a .dll file on C:\Program Files (x86)\Microsoft Dynamics NAV\71\RoleTailored Client\Add-ins Folder
to
C:\Program Files (x86)\Microsoft Dynamics NAV\71\RoleTailored Client\Add-ins folder on Client.
And I use CodeUnit 419 File Management for copying.
FileManagement.DownloadToFile('C:\Program Files (x86)\Microsoft Dynamics NAV\71\RoleTailored Client\Add-ins\EFatura.dll','C:\Program Files (x86)\Microsoft Dynamics NAV\71\RoleTailored Client\Add-ins\EFatura.dll');
When i give Add-ins File to Everyone authentication from Security tab, it copies to Client. But there is 50 Client PC and i dont want to connect and give authentication process to all of them.
How can i copy in proper way from C/AL.
Thanks for your replies.
0
Answers
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
did the file already exists in the folder on the client? If yes, then you can not move it, when the windows client is running on the client. The windows client is using the dll-file in the moment you started the windows client. The windows client loads all dll's, if you start the client.
So in this case your code doesn't make sense. Can you please say, what you want to achieve?
If you want to update the client dll, then you have to make sure, that no client is running at this time. I would suggest that you use clickonce or GPO for updating the dll.
best regards
Robert
Robert's Dynamics NAV Blog - Vom NAV Entwickler für NAV (Navision) Interessierte