Re: .inf scripts by tlviewer
tlviewer
Sat Oct 30 14:14:27 CDT 2004
"Suzanne Knapp" <sc.knapp@verizon.net> wrote in message =
news:jZQgd.177$Z22.25@trndny04...
> Thanks for your response. I found Msbatch.inf on the Win 98 CD but it =
> doesn't seem to have the information I am seeking. I want to produce =
an=20
> autorun.inf script that tests the level of Windows (e.g. pre- or post- =
Win98=20
> 2nd Edition) and runs a different program based on the result. Is =
that=20
> possible? If so, where would I find the syntax that does it?
---- begin Autorun.inf ---------
[autorun]
open=3Dcscript \path-to\OSCheck.vbs
---- end snip ---------
----- OSCheck.vbs ----------
set WSHShell =3D createObject("WScript.shell")
sVers =3D =
WSHShell.regread("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\VersionN=
umber")
select case split(sVers, ".")(2)
case "1998"
'handle sp0
sOut =3D "sp0"
case "2222"
' got SE
sOut =3D "SE"
case "3000"
' ME
sOut =3D "ME"
end select
wscript.echo "vers=3D", sOut
------- end snip -------
for Win2k and above use regkeys
"HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentVersion";
>=20
> "tlviewer" <tlviewerSHRUB@yahooCHENEY.com> wrote in message=20
> news:%23ZtnSJqvEHA.3728@TK2MSFTNGP12.phx.gbl...
>=20
> "Suzanne Knapp" <sc.knapp@verizon.net> wrote in message=20
> news:KXKgd.269$a24.201@trndny07...
> > Where can I find a description of the inf scripting language?
> >
> > Suzanne Knapp
> >
> >
>=20
> .INF files are setup scripts.
> Its not up-to-date, but you can get started with INF from here
>=20
> Msbatch.inf Parameters for Setup Scripts:
> mk:@MSITStore:rk98book.chm::/wrkappd.htm
>=20
> this is the old Win98 Resource kit: rk98book.chm
>=20
> --
> tlviewer=20
>=20
>