Based on Excel 2010 you need to:
Run Excel with Administrator privileges
Connect to your add-in instead of setting
.Installed property
in this way:Application.COMAddIns("NativeShim.InquireConnector.1").Connect = True
Setting
.Connect property
to false will obviously turncom add-in
off.