How to Properly Modify Registry During Addin Installation

Hello,

I have recently built an addin for SolidWorks, and I am working on an installer.
The goal is to let SolidWorks 'know' of the addin during installation; I want SolidWorks to recognize and load the addin the first time SolidWorks is run, post-installation, without any additional clicks from the end user.

I know to modify:

Software\\SolidWorks\\Addins\\{class guid} in LOCAL MACHINE

Software\\SolidWorks\\AddInsStartup\\{class guid} in CURRENT USER

and to register the assembly for COM.

It seems as if SW still doesn't recognize the addin. Can someone let me know what I am doing wrong?

Thanks,

Philip

SolidworksApi/macros