I am trying to deploy some 3rd party DLLS to the GAC folder of client machines to reduce the install size of my apps…the problem I have is, when I run the installer on client machines I get the error…’Error writing to the file:xxxx.dll. Verify that you have access to that directory”…I happen to trace this error back to mean…duplicate files in deployment package.
In my VS2010 Setup project, when looking at the details of the special folder “Global Assembly Cache Folder” I do see some items underlines in red which are duplicate names, however, in the project files there is only one of each dlls…no duplicated.
I believe some of the dlls are dependent on each othere…how do I remove the duplicates without removing the dlls from the project?
I tried “right-mouse-click” on one of the items underlines and click delete, but that removes the dll from my project entirely.
I found a similar question here but this doesn’t help.
Here is how I am creating my setup project
- Create a new VS2010 Setup project
- Add a Special Folder (Global Assembly Cache Folder) to “File System
on Target Machine”- Right-mouse-click on Global Assembly Cache Folder and choose “Add
File”- Select my multiple DLLS
- Build project
Found the solution…just exclude the items in the dependency folder.