Addin doesnt connect to Environment

Pioneer
Pioneer

Hey Guys!  Currently I am creating a wix file, registering the Addin manually. I have build those registry keys successful: (dont really want to use regsvr32 because of security)

 

HKCR\button.MyAddin --> @=Solid Edge Addin Class

HKCR\button.MyAddin\CurVer --> @=buttton.Solid Edge Addin.1

 

HKCR\CLSID\{GUID}\ --> @=Solid Edge Addin Class

                                --> AutoConnect=1

                                -->409="MyAddin"

HKCR\CLSID\{GUID}\InprocSever32 --> @=mydll.dl

                                                        ThreadingModel=Apartment

HKCR\CLSID\{GUID}\ProgID --> @=button.Solid Edge Addin.1

HKCR\CLSID\{GUID}\Programmable

HKCR\CLSID\{GUID}\VersionIndependantProgID

HKCR\CLSID\{GUID}\Environment Categories\{CATID}

HKCR\CLSID\{GUID}\Implemented Categories\{SE CATID}

HKCR\CLSID\{GUID}\Summary\ --> 409=MySummary

 

So the thing is that Solid Edge is listing my Addin successfully at the addin list, but its not connected to the environment. (Its a Command Button in the Ribbonbar)

 

Is my registry right? do I miss something?

 

I am using Visual studio 2015 with c++ and Visual studio project to configure a wxs file to get a msi installer. Further I derived my project from VC sample SDK project, but some changes and no self registering script. (its a mfc/atl COM base project)

 

Thanks!

 

2 REPLIES

Re: Addin doesnt connect to Environment

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

I would start with downloading, compiling and registering the DemoAddin sample on GitHub then take a look at its registry settings. As you say, there are different ways to create an addin but this sample with show the minimum required to get things going.

 

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\CLSID\{3CE1FCC9-6345-4367-94D4-31C701B06AEC}]
@=""
"409"="
Community.DemoAddIn"

[HKEY_CLASSES_ROOT\CLSID\{3CE1FCC9-6345-4367-94D4-31C701B06AEC}\Environment Categories]

[HKEY_CLASSES_ROOT\CLSID\{3CE1FCC9-6345-4367-94D4-31C701B06AEC}\Environment Categories\{26618394-09D6-11D1-BA07-080036230602}]

[HKEY_CLASSES_ROOT\CLSID\{3CE1FCC9-6345-4367-94D4-31C701B06AEC}\Environment Categories\{BAD41B8D-18FF-42C9-9611-8A00E6921AE8}]

[HKEY_CLASSES_ROOT\CLSID\{3CE1FCC9-6345-4367-94D4-31C701B06AEC}\Implemented Categories]

[HKEY_CLASSES_ROOT\CLSID\{3CE1FCC9-6345-4367-94D4-31C701B06AEC}\Implemented Categories\{26B1D2D1-2B03-11D2-B589-080036E8B802}]

[HKEY_CLASSES_ROOT\CLSID\{3CE1FCC9-6345-4367-94D4-31C701B06AEC}\InprocServer32]
@="C:\\git\\SolidEdgeCommunity\\Samples\\AddIn\\DemoAddIn\\cpp\\x64\\Debug\\DemoAddIn.dll"
"ThreadingModel"="Apartment"

[HKEY_CLASSES_ROOT\CLSID\{3CE1FCC9-6345-4367-94D4-31C701B06AEC}\Programmable]

[HKEY_CLASSES_ROOT\CLSID\{3CE1FCC9-6345-4367-94D4-31C701B06AEC}\Summary]
"409"="Solid Edge Community Sample AddIn"

Not sure if it will help but I wrote a Solid Edge ST7 AddIn Architecture Overview on CodeProject awhile back. You might review it and see if anything catches you eye.

 

Jason Newell
Applications Architect
www.jasonnewell.net

Re: Addin doesnt connect to Environment

Pioneer
Pioneer

 had some dependency issues with my dll.. that was the problem.

 

But thanks jason, I also missed some registry entries!