Register  Login   Search
 Latest Posts Minimize

RE: Solid edge reports using an excel macro ?
Solid Edge Programming
09/07/2010 9:49 AM
jason.newell

Creating StructuralFrame - SE20, VB6
Solid Edge Programming
09/07/2010 9:27 AM
Nirantar.Vidyarthee

Solid edge reports using an excel macro ?
Solid Edge Programming
09/06/2010 5:02 PM
jvizi

RE: Remove unused Linestyles
Solid Edge Programming
09/03/2010 7:45 AM
jr199

Remove unused Linestyles
Solid Edge Programming
09/02/2010 1:25 PM
kmwolf

How to read block in a dft file without opening the dft file?
Solid Edge Programming
09/02/2010 9:02 AM
assassin.007

Inquire Element - Measure Diameter by VBA
Solid Edge Programming
09/02/2010 6:40 AM
JM

dissolve Reference to SubASM - how to??
Solid Edge Programming
09/02/2010 2:23 AM
LIHE

RE: Using Insight on a 64 bit Computer
Solid Edge General
08/31/2010 7:47 AM
Atom

Using Insight on a 64 bit Computer
Solid Edge General
08/30/2010 3:06 PM
Atom

RE: File Properties using VB.NET leave file locked
Solid Edge Programming
08/30/2010 9:57 AM
JBZ

RE: File Properties using VB.NET leave file locked
Solid Edge Programming
08/30/2010 3:20 AM
jr199

File Properties using VB.NET leave file locked
Solid Edge Programming
08/27/2010 4:36 PM
JBZ

RE: XLS link to the part
Solid Edge Programming
08/27/2010 4:11 PM
JBZ

RE: Save As for each view -- how 2 wait for SE !
Solid Edge Programming
08/27/2010 3:27 AM
jr199

vb6 se20 - solid edge Part - Hole size
Solid Edge Programming
08/26/2010 9:42 PM
cadraw

vb6 se20 - how to Drawing View Depth
Solid Edge Programming
08/26/2010 9:24 PM
cadraw

RE: Problem while getting the objects using "SelectSet" property.
Solid Edge Programming
08/26/2010 7:35 AM
jr199

RE: About the "Callout"!
Solid Edge Programming
08/26/2010 3:42 AM
fatkids

RE: Save As for each view -- how 2 wait for SE !
Solid Edge Programming
08/25/2010 3:28 AM
ErWo

RE: help to transfer C# codes as following to C++ codes?
Solid Edge Programming
08/24/2010 10:12 PM
assassin.007

RE: FamilyMembers Panel problem (refreshing)
Solid Edge Programming
08/24/2010 3:47 PM
peter6396

Save As for each view -- how 2 wait for SE !
Solid Edge Programming
08/24/2010 4:09 AM
LIHE

RE: FamilyMembers Panel problem (refreshing)
Solid Edge Programming
08/24/2010 1:28 AM
ErWo

help to transfer C# codes as following to C++ codes?
Solid Edge Programming
08/23/2010 10:34 PM
assassin.007

Problem while getting the objects using "SelectSet" property.
Solid Edge Programming
08/22/2010 7:59 AM
pratap

FamilyMembers Panel problem (refreshing)
Solid Edge Programming
08/20/2010 4:12 AM
peter6396

RE: AddLoftedFlange in SheetMetal
Solid Edge Programming
08/19/2010 4:33 AM
jason.newell

RE: PartList Positioning
Solid Edge Programming
08/19/2010 2:10 AM
ErWo

RE: Alternate Assemblies
Solid Edge Programming
08/18/2010 4:54 PM
peter6396


  
 Forums Minimize

Subject: Solid Edge Libraries being Uninstalled
Prev Next
You are not authorized to post a reply.

Author Messages
Tom HarrisUser is Offline
New Member
New Member
Posts:7

01/26/2010 6:29 PM  

Hi all,

Am looking for some help with setting up my VB 2008 Add-In for Solid Edge.  At the moment it installs fine, runs fine and uninstalls fine, except when it uninstalls it takes with it the solid edge copies of the libraries that it references from the Solid Edge Directory and yet leaves the copies in the Addin directory.  It also seems to unregister them.  I would like to be able to leave the SE directories as they were and the COM registration...

The libraries are referenced under My Project, References as a COM object, with the options being Copy Local - True and Isolated - False.

In the Deployment Project under Detected Dependencies the Options are:

for *.TLBs (added automatically from the references)
Exclude - False, Folder - Application Folder, Hidden - False, PackageAs - Default, Permanent - False, ReadOnly - False, Register - vsdrfCOM, SharedLegacyFile - False, System - False, Transitive - False, Vital - False

for *.dlls (added automatically from the references)
Condition - blank, Dependancies - (Dependancies), Exclude - False, Files - (Files), Folder - Application Folder, Hidden - False, ReadOnly - False, Register - vsdraDoNotRegister, SharedLegacyFile - False, System - False, Vital - False

I feel that it is one of these settings however can't seem to work out which one.  Can anyone assist?

R.D. HollandUser is Offline
Solid Edge Developer
Site Member
Site Member
Posts:36

02/03/2010 2:37 PM  
Not sure I understand all of that as I have not worked with deployment. However, you should be building your add-in by referencing the solid edge .tlb files. Never reference the "interop" assemblies in the edge directory. You should be getting a "copy local" copy of each interop DLL and they should be in your bin directory with your addin server (DLL).

You should never install your add-in into the Edge program directory if that is what you are doing. Instead, you should be registering your addin using the "/codebase" option and installing it into its own setup directory.

Alternatively (I have not personally done this), you can sign your assembly and install it into the Windows GAC. Edge should then be able to use COM to CoCreate your add-in. I always just used the /codebase option of regasm.exe when generating my .reg file. The registry might "warn" that that is dangerous. I guess they think it can lead to DLL hell, which in my opinion is not much better than "where in the hell do I put my DLL" or "where in the hell is my DLL" hell.

I use

regasm.exe /regfile:myaddin.reg /codebase myaddin.dll

to generate a .reg file. An msi install guru takes that file and does the magic that creates an install program. Since your DLL and all dependencies are totally ignorant of edge (and vica versa), there should be no issue with uninstalling (of either program).
You are not authorized to post a reply.
Forums > Solid Edge > Programming > Solid Edge Libraries being Uninstalled



ActiveForums 3.7

  

 Users Online Minimize

Membership Membership:
Latest New User Latest: lumpypumpkin
New Today New Today: 2
New Yesterday New Yesterday: 2
User Count Overall: 1972

People Online People Online:
Visitors Visitors: 1
Members Members: 0
Total Total: 1

Online Now Online Now:

  

The Code Project

Spatial Freedom Astroid

Use OpenDNS

Copyright 2010 JasonNewell.NET   Terms Of Use  Privacy Statement