Solved

Error 800A400 On Vbscript

Posted on 2014-10-11
1
378 Views
Last Modified: 2014-10-11
hi
 how do i get rid of this error 800A400 please


 
Set objShell = WScript.CreateObject ("WScript.Shell")
Set objEnv = objShell.Environment("PROCESS")

Visual2010X86 = "SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5}"
2010X86 = """\\share\vcredist_x86_2010.exe"" /q /norestart"


objEnv("SEE_MASK_NOZONECHECKS") = 1

If KeyExists(HKLM, Visual2010X86) = False Then
                objShell.Run 2010X86,0,1
            End If


Function KeyExists(Key, KeyPath)
          Set objReg = GetObject("winmgmts:!root/default:StdRegProv")
          If objReg.EnumKey(Key, KeyPath, arrSubKeys) = 0 Then
              KeyExists = True
    Else
              KeyExists = False
   End If
End Function
0
Comment
Question by:David Regev
1 Comment
 
LVL 17

Accepted Solution

by:
vb_elmar earned 500 total points
ID: 40374855
1) object names may not begin with a number.
-Please try to name 2010X86 to aaa2010X86 .

2) the term objEnv("SEE_MASK_NOZONECHECKS") returns a path in string format.
-To get the path try :
myString = objEnv("SEE_MASK_NOZONECHECKS")
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
A short article about problems I had with the new location API and permissions in Marshmallow
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question