
Set fso = WScript.CreateObject("Scripting.FileSystemObject")
' CurrentDir = fso.GetAbsolutePathName("")
' Or use the following syntax:
OldPath = fso.GetAbsolutePathName(".")

ScrPath = WScript.ScriptFullName
ScrPath = Left(ScrPath, InstrRev(ScrPath, "\"))

Set WshShell = WScript.CreateObject("WScript.Shell")

WshShell.CurrentDirectory = ScrPath

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_ComputerSystem",,48)
For Each objItem in colItems
    Model = objItem.Model
Next

ModelArray=Split(Model,"/")
Model = ModelArray(0)

ModelArray=Split(Model,"_")
Model = ModelArray(0)




install = 0

if(InStr(Model, "VGN-NW11Z") <> 0) then install =1
if(InStr(Model, "VGN-NW11S") <> 0) then install =1
if(InStr(Model, "VGN-NW12Z") <> 0) then install =1
if(InStr(Model, "VGN-NW11ZR") <> 0) then install =1
if(InStr(Model, "VGN-NW11SR") <> 0) then install =1
if(InStr(Model, "VGN-NW21ZF") <> 0) then install =1
if(InStr(Model, "VGN-NW21SF") <> 0) then install =1
if(InStr(Model, "VGN-NW21MF") <> 0) then install =1
if(InStr(Model, "VGN-NW2ZRF") <> 0) then install =1
if(InStr(Model, "VGN-NW2SRF") <> 0) then install =1
if(InStr(Model, "VGN-NW2MRE") <> 0) then install =1
if(InStr(Model, "VGN-NW2ERE") <> 0) then install =1
if(InStr(Model, "VGN-NW20SF") <> 0) then install =1
if(InStr(Model, "VGN-NW2STF") <> 0) then install =1
if(InStr(Model, "VGN-NW2MTF") <> 0) then install =1
if(InStr(Model, "VGN-NW20ZF") <> 0) then install =1

if(install = 1) then
	Call WshShell.Run("install.bat", 0, true)
end if


WshShell.CurrentDirectory = OldPath
