Cannot Add the Specified Assembly to the Global Assembly Cache
Symptoms
The installer for the Sharepoint feature fails with the error Cannot add the specified assembly to the global assembly cache: Atlassian.Confluence.SharePoint.dll.
Cause
The installer is having problems putting the assemblies in the GAC (Global Assembly Cache).
Resolution
Start Confluence as both a local administrator on the machine and as an administrator within the SharePoint farm.
Run
setup_webparts.exeandsetup_search.exeand choose uninstall for each. If it wants to install, just cancel for now as it thinks it is already uninstalled.Go to
C:\Windows\Assemblyand try to physically remove (right click -> uninstall)Atlassian.Confluence.SharePoint.dllandAtlassian.Confluence.SharePoint.Search.dll.Then run the installation for
setup_webparts.exeand thensetup_search.exe.
This problem can also happen if the assemblies were already there and the installer couldn't remove them first or otherwise replace them.
If that fails, take a look at the Manual SharePoint Feature Installation documentation.