Quantcast
Channel: Configuration Manager 2012 - Application Management forum
Viewing all articles
Browse latest Browse all 4762

VB Script is not executing when deployig from SCCM 2012

$
0
0

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,



Viewing all articles
Browse latest Browse all 4762

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>