Академический Документы
Профессиональный Документы
Культура Документы
'link="http://10.24.126.25/Documents/ftp/miscellaneous/Antiviru
s/antivirus-software/DLP/DLPAgentInstaller.x86.zip"
link="http://10.154.0.232:8585/Content/docs/software/Firefox%20
Setup%2019.0.2.zip"
sFile="DLPAgentInstaller.zip"
downloadfromHTTP link,sFile
WScript.Echo"File downloaded sucessfully to:" & ScriptPath+"\"
objLog.WriteLine Now & " File downloaded successfully! to: " & S
criptPath+"\"
zipSource=ScriptPath+"\"+sFile
zipDest=ScriptPath+"\"
WindowsUnZip zipSource,zipDest
objLog.WriteLine Now & " - Unzipped sucessfully to:" & zipDest
Set oExec=wshShell.Exec("mshta.exe ""about:<input type=file id=F
ILE><script>FILE.click();new ActiveXObject('Scripting.FileSystemObject').GetStan
dardStream(1).WriteLine(FILE.value);close();resizeTo(0,0);</script>""")
runFile = oExec.StdOut.ReadLine
runFile = chr(34) & runFile & chr(34)
wshShell.Run runFile,0,True
'link="http://10.24.126.25/Documents/ftp/miscellaneous/Antiviru
s/antivirus-software/VSE/VSE880LMLRP6.Zip"
link="http://10.154.0.232:8585/Content/docs/software/Firefox%20
Setup%2019.0.2.zip"
sFile="VSE880LMLRP6.zip"
downloadfromHTTP link,sFile
WScript.Echo"File downloaded sucessfully to:" & ScriptPath+"\"
objLog.WriteLine Now & " File downloaded successfully! to: " & S
criptPath+"\"
zipSource=ScriptPath+"\"+sFile
zipDest=ScriptPath+"\"
WindowsUnZip zipSource,zipDest
objLog.WriteLine Now & " - Unzipped sucessfully to:" & zipDest
Set oExec=wshShell.Exec("mshta.exe ""about:<input type=file id=F
ILE><script>FILE.click();new ActiveXObject('Scripting.FileSystemObject').GetStan
dardStream(1).WriteLine(FILE.value);close();resizeTo(0,0);</script>""")
runFile = oExec.StdOut.ReadLine
runFile = chr(34) & runFile & chr(34)
wshShell.Run runFile,0,True
objLog.WriteLine Now & " - Application installed successfully"
If Err.Number <> 0 Then
objLog.WriteLine Now & " - Error : " & Err.Numbe
r & ": " & Err.Description
End If
ElseIf Is64BitOS Then
createLogFile
checkLAN
'link="http://10.24.126.25/Documents/ftp/miscellaneous/Antivirus
/antivirus-software/Mcafee%20Agent/FramePkg%205.0.3.exe"
link="http://10.154.0.232:8585/Content/docs/software/npp.6.2.1.I
nstaller.exe"
sFile="FramPkg-205.0.3.exe"
downloadfromHTTP link,sFile
WScript.Echo "File downloaded sucessfully to:" & ScriptPath+"\"
objLog.WriteLine Now & " File downloaded successfully! to: " & S
criptPath+"\"
runFile = chr(34) & sFile & chr(34)
'msgbox(runFile)
wshShell.Run runFile,0,True
'link="http://10.24.126.25/Documents/ftp/miscellaneous/Antiviru
s/antivirus-software/DLP/DLPAgentInstaller.x86.zip"
link="http://10.154.0.232:8585/Content/docs/software/Firefox%20
Setup%2019.0.2.zip"
sFile="DLPAgentInstaller.zip"
downloadfromHTTP link,sFile
WScript.Echo "File downloaded sucessfully to:" & ScriptPath+"\"
objLog.WriteLine Now & " File downloaded successfully! to: " & S
criptPath+"\"
zipSource=ScriptPath+"\"+sFile
zipDest=ScriptPath+"\"
WindowsUnZip zipSource,zipDest
objLog.WriteLine Now & " - Unzipped sucessfully to:" & zipDest
Set oExec=wshShell.Exec("mshta.exe ""about:<input type=file id=F
ILE><script>FILE.click();new ActiveXObject('Scripting.FileSystemObject').GetStan
dardStream(1).WriteLine(FILE.value);close();resizeTo(0,0);</script>""")
runFile = oExec.StdOut.ReadLine
runFile = chr(34) & runFile & chr(34)
'msgbox(runFile)
wshShell.Run runFile,0,True
'link="http://10.24.126.25/Documents/ftp/miscellaneous/Antiviru
s/antivirus-software/VSE/VSE880LMLRP6.Zip"
link="http://10.154.0.232:8585/Content/docs/software/Firefox%20
Setup%2019.0.2.zip"
sFile="VSE880LMLRP6.zip"
downloadfromHTTP link,sFile
WScript.Echo "File downloaded sucessfully to:" & ScriptPath+"\"
objLog.WriteLine Now & " File downloade successfully! to: " & Sc
riptPath+"\"
zipSource=ScriptPath+"\"+sFile
zipDest=ScriptPath+"\"
WindowsUnZip zipSource,zipDest
objLog.WriteLine Now & " - Unzipped sucessfully to:" & zipDest
Set oExec=wshShell.Exec("mshta.exe ""about:<input type=file id=F
ILE><script>FILE.click();new ActiveXObject('Scripting.FileSystemObject').GetStan
dardStream(1).WriteLine(FILE.value);close();resizeTo(0,0);</script>""")
runFile = oExec.StdOut.ReadLine
runFile = chr(34) & runFile & chr(34)
'msgbox(runFile)
wshShell.Run runFile,0,True
objLog.WriteLine Now & " - Application installed successfully"
If Err.Number <> 0 Then
objLog.WriteLine Now & " - Error : " & Err.Number & " "
& "--" & Err.Description
End If
Else
WScript.Echo"Unable to detect the system configuraton"
If Err.Number <> 0 Then
objLog.WriteLine Now & " - Error : " & Err.Numbe
r & " " & "--" & Err.Description & " --->Unable to detect the system configura
ton 32/64 bit"
End if
End If