Where can I find a description of the inf scripting language?

Suzanne Knapp

Re: .inf scripts by tlviewer

tlviewer
Sat Oct 30 12:02:26 CDT 2004


"Suzanne Knapp" <sc.knapp@verizon.net> wrote in message =
news:KXKgd.269$a24.201@trndny07...
> Where can I find a description of the inf scripting language?
>=20
> Suzanne Knapp=20
>=20
>=20

.INF files are setup scripts.
Its not up-to-date, but you can get started with INF from here

Msbatch.inf Parameters for Setup Scripts:
mk:@MSITStore:rk98book.chm::/wrkappd.htm

this is the old Win98 Resource kit: rk98book.chm

--
tlviewer

Re: .inf scripts by Suzanne

Suzanne
Sat Oct 30 13:22:07 CDT 2004

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
autorun.inf script that tests the level of Windows (e.g. pre- or post- Win98
2nd Edition) and runs a different program based on the result. Is that
possible? If so, where would I find the syntax that does it?

Thanks for your help.

Suzanne Knapp

"tlviewer" <tlviewerSHRUB@yahooCHENEY.com> wrote in message
news:%23ZtnSJqvEHA.3728@TK2MSFTNGP12.phx.gbl...

"Suzanne Knapp" <sc.knapp@verizon.net> wrote in message
news:KXKgd.269$a24.201@trndny07...
> Where can I find a description of the inf scripting language?
>
> Suzanne Knapp
>
>

.INF files are setup scripts.
Its not up-to-date, but you can get started with INF from here

Msbatch.inf Parameters for Setup Scripts:
mk:@MSITStore:rk98book.chm::/wrkappd.htm

this is the old Win98 Resource kit: rk98book.chm

--
tlviewer



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
>

Re: .inf scripts by Suzanne

Suzanne
Sat Oct 30 20:01:14 CDT 2004

Thanks very much!

"tlviewer" <tlviewerSHRUB@yahooCHENEY.com> wrote in message
news:O4fO7SrvEHA.2172@TK2MSFTNGP14.phx.gbl...

"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
> autorun.inf script that tests the level of Windows (e.g. pre- or post-
> Win98
> 2nd Edition) and runs a different program based on the result. Is that
> possible? If so, where would I find the syntax that does it?

---- begin Autorun.inf ---------
[autorun]
open=cscript \path-to\OSCheck.vbs

---- end snip ---------

----- OSCheck.vbs ----------
set WSHShell = createObject("WScript.shell")
sVers =
WSHShell.regread("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\VersionNumber")

select case split(sVers, ".")(2)
case "1998"
'handle sp0
sOut = "sp0"
case "2222"
' got SE
sOut = "SE"
case "3000"
' ME
sOut = "ME"
end select
wscript.echo "vers=", sOut
------- end snip -------

for Win2k and above use regkeys
"HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentVersion";



>
> "tlviewer" <tlviewerSHRUB@yahooCHENEY.com> wrote in message
> news:%23ZtnSJqvEHA.3728@TK2MSFTNGP12.phx.gbl...
>
> "Suzanne Knapp" <sc.knapp@verizon.net> wrote in message
> news:KXKgd.269$a24.201@trndny07...
> > Where can I find a description of the inf scripting language?
> >
> > Suzanne Knapp
> >
> >
>
> .INF files are setup scripts.
> Its not up-to-date, but you can get started with INF from here
>
> Msbatch.inf Parameters for Setup Scripts:
> mk:@MSITStore:rk98book.chm::/wrkappd.htm
>
> this is the old Win98 Resource kit: rk98book.chm
>
> --
> tlviewer
>
>