I know the OP is about W7, but I think my initial problems stemmed from a flawed ICommand/IToolBarDef. Well, they DO work, I just wasn't able to register them with ESRIRegAsm and a Setup package.This is silly, but completely on me as to why I could manually "Add From File" the .tlb and the Toolbar would appear. Basically I was missing 2 seperate COM Registration functions, which I *thought* were the same thing, but apparently are not and both are required in the #Region of the IToolBarDef in order for ESRIRegAsm to register it and have it automatically appear after the setup is run.So, just here it is. I already had the "ArcGISCategoryRegistration/Unregistration sub's, but was missing the RegisterFunction/UnRegisterFunction sub's. These were added just below the COM GUID's #Region:#Region "COM Registration Function(s)"
<ComRegisterFunction(), ComVisibleAttribute(False)> _
Public Shared Sub RegisterFunction(ByVal registerType As Type)
' Required for ArcGIS Component Category Registrar support
ArcGISCategoryRegistration(registerType)
'Add any COM registration code after the ArcGISCategoryRegistration() call
End Sub
<ComUnregisterFunction(), ComVisibleAttribute(False)> _
Public Shared Sub UnregisterFunction(ByVal registerType As Type)
' Required for ArcGIS Component Category Registrar support
ArcGISCategoryUnregistration(registerType)
'Add any COM unregistration code after the ArcGISCategoryUnregistration() call
End Sub
#Region "ArcGIS Component Category Registrar generated code"
''' <summary>
''' Required method for ArcGIS Component Category registration -
''' Do not modify the contents of this method with the code editor.
''' </summary>
Private Shared Sub ArcGISCategoryRegistration(ByVal registerType As Type)
Dim regKey As String = String.Format("HKEY_CLASSES_ROOT\CLSID\{{{0}}}", registerType.GUID)
MxCommandBars.Register(regKey)
End Sub
''' <summary>
''' Required method for ArcGIS Component Category unregistration -
''' Do not modify the contents of this method with the code editor.
''' </summary>
Private Shared Sub ArcGISCategoryUnregistration(ByVal registerType As Type)
Dim regKey As String = String.Format("HKEY_CLASSES_ROOT\CLSID\{{{0}}}", registerType.GUID)
MxCommandBars.Unregister(regKey)
End Sub
#End Region
#End Region