Are the following dll located in the add-in folder when you register? SolidWorks.Interop.sldworks, SolidWorks.Interop.swconst, SolidWorks.Interop.swpublished, SolidWorksTools
Regards, Artem Taturevych | Snr. Developer | IC3D ANZ
IC3DSteel – New Steel Solution for SolidWorks
I found an article that talked about a similar issue when trying to run regasm on dll's in a network location. The solution was to provide the full UNC path to the dll, and not a mapped drive. While this was NOT my scenario, it suggested some permission issues and using a full path. I was running the .bat file to register my DLL from the same location/directory. So I wasn't specifying a full path.
e.b. my .bat file looked something like this (obviouly variables defined above this bit) and the .bat file iteself lived in the same directory as the DLL.
"%Windir%\Microsoft.NET\Framework64\%FMWK%\regasm" MyDotNetDLL.dll /codebase
This worked on 3 out of 4 machines. Given the note on UNC paths and mapped drives and permissions...I suspected the same difference in security settings, from machine to machine... So changing to use the full path to the dll works OK.
"%Windir%\Microsoft.NET\Framework64\%FMWK%\regasm" "C:\path\to\MyDotNetDLL.dll" /codebase