Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

problem for addin uninstall (solidworks API)

316 views
Skip to first unread message

beans

unread,
Dec 12, 2007, 11:20:53 AM12/12/07
to
Hi All:

I finished a project with solidworks addin with wizard,they are
"CreateCube" and "PMP". and it is very simple.

the project has referenced "sldworks.tlb","swconst.tlb" etc., then I
add a install project,use install wizard, after I have finished my
install project, I get the program "setup.exe" etc, it is my program
for install.

I begin to install my solidworks addin,there is no problem. in
solidworks system,I can find my addin. it is OK.

but after I uninstall my addin, In vs2005 , I find many errors, the
system cann't find the information of "sldworks.tlb" etc register
table.

I think that the uninstall program do it automaticly.

my problem is:
In my install project, what must I do, or write some code,in order to
"sldworks.tlb" register information cann't be deleted.

thanks a lot.

That70sTick

unread,
Dec 12, 2007, 12:19:54 PM12/12/07
to
Never include the SW references in your install packages. Distribute
your addin with the assumption that these are already present on the
computer.

How to fix? Not so sure. On Eng-Tips.com, Scott Baugh posted a
procedure to repair corrupt SW installs in the SW forum FAQ section.
See also <http://www.scottjbaugh.com/Tips_Tricks/Reinstall_Tip.htm>

If your SW DLL's have actually been erased, you may need to
reinstall. If they have only unregistered themselves, you may be able
to re-register them from a command prompt.

jnc...@yahoo.com

unread,
Dec 18, 2007, 11:21:52 AM12/18/07
to
Have you tried running regasm with the /unregister option? Also, if
you don't want to redistribute the "redistributables" with your
application, then you should use late binding and let COM resolve all
of the object references for you It is a slignt performance hit and
you lose intellisense but if you do it after you are "finished"
developing then it shouldn't be a big deal. It will give you the
added advantage of not having to worry quite as much (you will still
have to worry a little bit) about SolidWorks versioning.
0 new messages