Help - Search - Members - Calendar
Full Version: Problems with VB Script
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   
Google Internet Forums Unattended CD/DVD Guide
Niels
I use a VB Script to install AdAware and CloneCD on my unattended cd. I'm having this problem during install. A popup tells me Error in Line 3 letter 1. "The specified file was not found" (translated from danish). And that goes for both AdAware and CloneCD.

My AdAware script looks like this:
CODE
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Popup "Dont move mouse or keyboard",5," - Warning - ",48
WshShell.Run ("AdAware6Pro181.exe /S")
WScript.Sleep 5000
WshShell.SendKeys "XXXXXXX"
WScript.Sleep 1000
WshShell.SendKeys "{ENTER}"
WScript.Quit


When I test in windows, it works fine, but when I make the ISO and test in Virtual PC I get the File not found -error. I of course checked that I spelled the filename correctly...

Anyone who have had the same problem and found a solution?

//Niels
DarkBringer
When using .vbs scripts in VirtualPC or VMware, increase the value of 5000 to 10000 in the line "WScript.Sleep 5000". And 1000 to 4000 here: "WScript.Sleep 1000". (Because installing takes longer in virtual machines).

Also, check the path to adaware.exe.
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.