Solved

Error 800A400 On Vbscript

Posted on 2014-10-11
1
404 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

732 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