Solved

Error 800A400 On Vbscript

Posted on 2014-10-11
1
389 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …

680 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