*** See below.
Where's dl.vbs? My XP box's C:\ root directory definitely don't have
it, WINDOWS directory and its subs neither. Did search against the
whole drive still to no avail. Your approach sounds good to me, now
let me try to understand your sample code:
*** "dl.vbs" is a the file you create yourself, using whatever lines of
*** VB Code you choose (e.g. the samples I posted in this thread).
*** I chose "dl" because they are your initials but, of course, any
*** name will do!
' Section 1, define the installer to use VBscript
@echo off
wscript.exe c:\dl.vbs
(put your batch file commands here)
' my Main batch control script here, yes?
*** Yes!
'Section 2, initialize the VScripting
iDelay = 60 'seconds
Set oWshShell = CreateObject("WScript.Shell")
iTime = Timer
Do
oWshShell.Popup "Please wait while the PC settles down!", _
iDelay, "Message from your PC", 0
if Timer - iTime >= iDelay then Exit Do
Loop
MsgBox "OK, you can use the PC now, Mum", 6, "Message from your PC"
' 60 seconds, pretty long, why not instead of 30 or even less? Longer
safer?
*** It's your scenario, not mine!
' Section 3, program, components installation, the "meat" section
DQ = """"
sBatch = "c:\My Programs\Batch File.bat"
Set oWshShell = CreateObject("WScript.Shell")
oWshShell.run "cmd.exe /c " & DQ & sBatch & DQ
'DQ for data qeue something?
*** DQ for "Double Quote" but again you can choose your own variable names.
'sBatch, is this guy my Main batch control script or the one at very
top? I'm confused here.
*** sBatch is a variable name that is defined two lines further up.
' also, c:\{My Programs} ' variable directory might be a challenge
since for now I can't care to which directory/folder the user extract
the zipped file to, I'm using generic reference like .\
*** You set it to suit your case at hand.
Another related question, for a bunch of license agreements, the DOS
screen scrolls down fast upon reading, any sort VBscript bringing up a
window that can read them in, then with a label like You Agree to this
Agreement [x] and You Do not Agree to this Agreement [x] , Next
button at bottom would be superb. Doable?
*** Yes, but since you're not telling us what generates this screen
*** I cannot tell. You may need to replace the "Run" method with
*** the "Exec" method.
Also, currently, I have one Main installer for XP OS and another for
Vista OS because each's installer is different (altogether I have over
10 batch files for different compoments or programs).
Two questions in this regard, a) I would still need them even under
VBscripting, correct? b) is there a way that VBscripting can detect
current OS? If so I could use just one Installer for either OS.
*** Yes, VB Script can detect the OS.
Many thanks.
*** You're welcome.
Don
*** Your questions are now getting quite VB Script specific.
*** The newsgroup "microsoft.public.scripting.vbscript is the
*** right place to post them.
*** About your nun-functional .chm file: You need to start a
*** new thread in this newsgroup, under your own name and
*** with its own topic, e.g. "Help file does not work".
*** I will now cease monitoring this thread.