Manually my VB script is running successfully when executing from the Batch file which internally calls VB Script to suppress "HyperionSmartViewforOffice_11.1.2.1.0" add-in
prompts pop up which occurs upon launching MS Excel.
please see the attached files for folder structure (Folderstructure.PNG), add-in pop up error (add in pop up error.PNG).
Batch Script:
@ Echo Off
msiexec /x {62190FC2-D90E-45A8-9ED8-9C523EC426E2} /qn
removeExcelOpenKey.vbs
vb script :
Dim objExcel
Dim addin
On Error Resume Next
Set objWb = objExcel.Workbooks("myAddin.xla")
If Not wb Is Nothing Then
wb.RunAutoMacros xlAutoClose
End If
Set objExcel = CreateObject("Excel.Application")
For i = 0 To objExcel.Addins.Count
Set objAddin= objExcel.Addins.item(i)
If objAddin.Name = "HsTbar.xla" Then
objAddin.Installed = False
End If
Next
objExcel.Quit
Set objExcel = Nothing
tried to fail deploying the package and application (follwed detection method file , registry , windows installer ) as well but no luck.
appreciated help .
thanks,