Help - Search - Members - Calendar
Full Version: problem installing a script
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   


Google Internet Forums Unattended CD/DVD Guide
Lost Soul
hi im trying to instal windows X 6.1 and im calling my vbs script from a batch file like this

ECHO.
ECHO Installing Windows X 6.1
ECHO Please wait...
start /wait %systemdrive%\install\Applications\WindowsX\wx.vbs

here is my vbs script and it does work fine when i test it regular.

dim WshShell, iLoopTimeWait
Set WshShell = WScript.CreateObject("WScript.Shell")
iLoopTimeWait = 500

Function Connect2Window(iTime, sWindowName)
Do until WshShell.AppActivate (sWindowName)
WScript.Sleep iTime
loop
End function

WshShell.Run app & "msn61-winx.exe"
connect2window ilooptimewait, "MSN Messenger 6.1 - Windows X"
WshShell.SendKeys "{Tab}"

WshShell.SendKeys "{ENTER}"
Connect2Window iLoopTimeWait, "MSN Messenger 6.1 Setup"
WshShell.SendKeys "{ENTER}"
wscript.sleep 5000

WshShell.SendKeys "%a"

WshShell.SendKeys "{ENTER}"
wscript.sleep 60000

WshShell.SendKeys "{Tab}"

WshShell.SendKeys "{DOWN 10}"
wscript.sleep 5000
WshShell.SendKeys "%a"
wscript.sleep 20000
WshShell.SendKeys "{ENTER}"

WScript.Sleep 1000

WScript.Quit


now by calling it like that from my batch file i get this error to pop up can any one tell me what im doing wrong and how to fix my problem ?

look here to see the error in a bmp image

http://www.geocities.com/crystal_dragon76/error.bmp
Lost Soul
that link didnt work up above so here is the new link and i know this one will work


http://www.geocities.com/crystal_dragon76/error.html

pls some one help me out with this problem
IcemanND
QUOTE
WshShell.Run app & "msn61-winx.exe"


What is the value of 'APP' and when is it set in this line?

should be set to the path to the executable.

%systemdrive%\install\Applications\WindowsX\

or change line to

CODE
WshShell.Run "%systemdrive%\install\Applications\WindowsX\msn61-winx.exe"


should all be on one line.
Lost Soul
thank you im gonna give that a shot i was thinking i needed at complete addy for that .. smile.gif




Google Internet Forums Unattended CD/DVD Guide

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.