![]() |
【转帖】intall .net addin
intall .net addin
i have this install.bat and it works with vb6 .dll now i tried it with .net dll and it doesn't work any ideal why? thx, chris regasm.exe myaddin.dll regedit.exe /s myregister.reg solidworks 2007 (office pro.) sp5.0 testing solidworks 2009 (pro) sp0.0 dell precision t3400 2 cpu (8500) 3.16 ghz, 3.25 gb of ram window xp pro sp2 nvidia fx 570 6.14.11.6262 edited: 10/12/2008 at 02:19 am by chris ch because .net addins need to be registered with regasm.exe thx, luke it's what i have in my new install.bat - see the following 2 lines: regasm.exe myaddin.dll regedit.exe /s myregister.reg any by the way, do i have to copy the while bin dir. or just a main dll file to the install dir. chris solidworks 2007 (office pro.) sp5.0 testing solidworks 2009 (pro) sp0.0 dell precision t3400 2 cpu (8500) 3.16 ghz, 3.25 gb of ram window xp pro sp2 nvidia fx 570 6.14.11.6262 edited: 10/13/2008 at 10:26 am by chris ch just the .dll file unless your library references or uses any other files, which it usually doesn't. you need to run regasm with the /codebase parameter to in order to create the com entry in the registry, unless you are copying the dll to the gac thx, luke plese help me understand this i created an addin using vb.net and ofcourse i saved the project in the local c drive. during the test and debug, i run the addin manually by using the solidworks open files and select addin(*.dll) i finished the project and save the addin dll file in the server so everyone can share. i also created the install.bat in the same dir. on the server i tried to run the install.bat from the server to intall the addin into my solidworks and it works fine however, i checked the location of the addin using tools>addins... and the addin path still shows in the c-drive? chris solidworks 2007 (office pro.) sp5.0 testing solidworks 2009 (pro) sp0.0 dell precision t3400 2 cpu (8500) 3.16 ghz, 3.25 gb of ram window xp pro sp2 nvidia fx 570 6.14.11.6262 edited: 10/14/2008 at 10:25 am by chris ch post the install.bat code here here is th install.bat regasm.exe testaddin.dll /codebase regedit.exe /s register.reg solidworks 2007 (office pro.) sp5.0 testing solidworks 2009 (pro) sp0.0 dell precision t3400 2 cpu (8500) 3.16 ghz, 3.25 gb of ram window xp pro sp2 nvidia fx 570 6.14.11.6262 just delete the entries manually in the registry hkey_local_machine\software\solidworks\addins\ and delete the folder with your class id. then try again luke, i manually deleted all registry in hklm and classid and rerun the install.bat the addin's path is still in c-drive i then uninstall and move the dll in c to different location and run the install again and open solidworks and i got the mesg: sw can find the dll path it's totally weird - never seen some like this with vb6 addin chris solidworks 2007 (office pro.) sp5.0 testing solidworks 2009 (pro) sp0.0 dell precision t3400 2 cpu (8500) 3.16 ghz, 3.25 gb of ram window xp pro sp2 nvidia fx 570 6.14.11.6262 check the comregister and comunregister functions within the dll addin project and post that snippet here here is the reg file - the unreg is similar with an adding (-) sign windows registry editor version 5.00 [hkey_local_machine\software\solidworks\addins\{8553e163-c364-4f47-a745-b5a36829edf9}] @=dword:00000001 "description"="solidworks vb.net 2008 addin " "title"="views" [hkey_classes_root\views.viewsclass] @="views.viewsclass" [hkey_classes_root\views.viewsclass\clsid] @="{8553e163-c364-4f47-a745-b5a36829edf9}" solidworks 2007 (office pro.) sp5.0 testing solidworks 2009 (pro) sp0.0 dell precision t3400 2 cpu (8500) 3.16 ghz, 3.25 gb of ram window xp pro sp2 nvidia fx 570 6.14.11.6262 |
所有的时间均为北京时间。 现在的时间是 11:13 AM. |