?
Solved

Error 800A400 On Vbscript

Posted on 2014-10-11
1
Medium Priority
?
432 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 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This is about my first experience with programming Arduino.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
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…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

741 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