Register  Login   Search
 Latest Posts Minimize

RE: Through the program to create a square tube???
Solid Edge Programming
03/10/2010 2:58 AM
fatkids

RE: .Net: print of dwg files as pdf scaling problem
Solid Edge Programming
03/09/2010 3:55 AM
wksyspro

SEpartX crashs VB6
Solid Edge Programming
03/08/2010 8:38 AM
ara

Assembly instances not supported
Solid Edge General
03/07/2010 8:10 PM
cadourian

RE: .Net: print of dwg files as pdf scaling problem
Solid Edge Programming
03/06/2010 2:44 PM
tirolerover40

RE: .Net: print of dwg files as pdf scaling problem
Solid Edge Programming
03/06/2010 4:06 AM
wksyspro

RE: .Net: print of dwg files as pdf scaling problem
Solid Edge Programming
03/05/2010 2:35 PM
tirolerover40

RE: .Net: print of dwg files as pdf scaling problem
Solid Edge Programming
03/05/2010 11:36 AM
wksyspro

How to add menu to the QuickAccessToolbar
Solid Edge Programming
03/05/2010 4:57 AM
TomasV

Save sketched profile
Solid Edge Programming
03/04/2010 9:42 AM
Autoit

Use Isotable.dll with ST2 64bits
Solid Edge Programming
03/04/2010 7:22 AM
sinex

.Net: print of dwg files as pdf scaling problem
Solid Edge Programming
03/03/2010 3:03 PM
tirolerover40

How to get the threadFeature information from CopiedPart?
Solid Edge Programming
03/01/2010 5:36 AM
Julia

RE: How to read, from a draft, the file properties of the part / assembly
Solid Edge Programming
02/26/2010 8:18 AM
mdrummond

Assy Oeration Property
Solid Edge Programming
02/26/2010 8:13 AM
mdrummond

How the expansion of the Engineering Reference?
Solid Edge Programming
02/25/2010 8:35 PM
fatkids

RE: problems with creating toolbar
Solid Edge Programming
02/25/2010 11:39 AM
Nika_Neugier

Crash editing blocklabeloccurrence value
Solid Edge Programming
02/25/2010 2:55 AM
Tymen

problems with creating toolbar
Solid Edge Programming
02/24/2010 5:43 AM
Nika_Neugier

RE: Convert .dft to .dxf
Solid Edge Programming
02/23/2010 1:11 PM
jvelasco

RE: Internal Error: Invalid Status 0x248
Solid Edge General
02/22/2010 8:46 AM
catamayo

how to get mouse click event of the view of the SEPreview.ocx
Solid Edge Programming
02/21/2010 7:29 PM
wei

how to use the SEPreview.ocx
Solid Edge Programming
02/20/2010 2:41 AM
wei

Solid Edge / Insight BOM Extraction
Solid Edge Programming
02/18/2010 9:14 AM
alspaughja

How to set FaceStyle for face in occurrence?
Solid Edge Programming
02/18/2010 1:08 AM
jurajjoob

How to set Occurrence.FaceStyle to (Use Part Style) or (None)?
Solid Edge Programming
02/17/2010 2:42 PM
jurajjoob

RE: Exception when calling....
Solid Edge Programming
02/17/2010 8:03 AM
boman

Edit occurrence in place
Solid Edge Programming
02/17/2010 5:35 AM
Tymen

Getting part surface from assembly surface
Solid Edge Programming
02/16/2010 3:18 AM
Serge

RE: Need basic CNC info please
Solid Edge General
02/16/2010 12:20 AM
jr199


  
 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:6

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: simoned
New Today New Today: 0
New Yesterday New Yesterday: 5
User Count Overall: 1779

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

Online Now Online Now:

  

Siemens PLM Connection

JasonNewell.NET on Facebook

The Code Project

Spatial Freedom Astroid

Use OpenDNS

Copyright 2008 JasonNewell.NET   Terms Of Use  Privacy Statement