安装Excel AddIn时popup“插入智能卡”窗口

我的Excel AddIn是用C#编写的,它使用Excel DNA,AddIn Express RTD,使用Advanced Installer创buildNetOffice Installer,再加上VBA,VBA代码在install.xls中

Private Sub Workbook_Open() Dim quit As Integer Dim added As Boolean Add_Addin If Workbooks.Count = 1 Then Application.quit Else Me.Close End If End Sub Private Sub Add_Addin() On Error GoTo ERR_ Dim addinFile As String addinFile = ThisWorkbook.Path & "\" & "MyAddIn.xll" If Len(addinFile) > 0 Then Dim LEA As AddIn Set LEA = Application.AddIns.Add(addinFile) If (Not LEA Is Nothing) Then LEA.Installed = True Else MsgBox "Failed to add XLL" End If Else MsgBox "XLL file not found" End If Exit Sub ERR_: MsgBox ("Error " & Err.Number & " " & Err.Description) End Sub 

一切工作正常。 我没有更改安装程序现在,当一个用户安装我的插件的新版本,当在Excel中运行install.xls时,popup一个窗口说“插入智能卡”

我认为,并认为唯一改变的东西(与以前的版本相比)是install.xls b / c的数字签名以前的签名文件最近过期我用新的证书签署了install.xls

现在安装过程中会popup一个奇怪的窗口。
有谁知道如何解决这个问题?

谢谢

也许您可以尝试按照以下链接中的说明添加受信任的位置。

http://office.microsoft.com/en-us/word-help/add-remove-or-modify-a-trusted-location-for-your-files-HA010354311.aspx#BM1

这是我正在寻求类似问题的解决scheme。