Jump to content
MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. ×

Auto installation date in Oeminfo.ini


 Share

Recommended Posts

this is my problem,

when after installing windows i automattically add oeminfo, (this is build in) but i want to put in the installation date in oeminfo.ini (persanol reseaons) This i do by hand.

But i want to do this autmatically, so the date of installation is added auto so i don't have to do it myself.

Can this be done? is it possible ?

Link to comment
Share on other sites


interesting thing . this can be usefull for me too .

i think you need to made a small program ,

who read the system date , and edit oeminfo.ini ,

inserting system date where you want ,

when windows is installed , as a last task .

     autoit , java ... who can help with this .. ?

Link to comment
Share on other sites

How I make my auto date & list all hotfixes + some text in Oeminfo.ini

cmdow @ /HID
@ECHO OFF
SET D=%SYSTEMROOT%\system32\
REM delete oeminfo.ini if exists
if exist "%D%oeminfo.ini" del   "%D%oeminfo.ini" /q
FOR %%d IN (c: d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: x: y: z:) DO IF EXIST %%d\WIN51IP SET CDROM=%%d


echo [General] >> "%D%oeminfo.ini"
echo Manufacturer=Unattendet Win. XP sp2 Pro >> "%D%oeminfo.ini"
echo Model=Slim Slipstream Version >> "%D%oeminfo.ini"
echo [Support Information] >> "%D%oeminfo.ini"
echo Line1=Dato for installation: %date% >> "%D%oeminfo.ini"
echo Line2= >> "%D%oeminfo.ini"
echo Line3=Slipstreamed Hotfix:>> "%D%oeminfo.ini"
echo Line4= >> "%D%oeminfo.ini"

REM Line Number
SET i=5

REM List  quickfixes without exe extension
For /F "TOKENS=1 delims=.exe"  %%j in ( 'dir /B %CDROM%\I386\svcpack\KB*.exe' )do ( ( set kbname=%%j ) & (call :myprint) )
GOTO :EOF

:myprint
echo Line%i%=%kbname%   >> "%D%oeminfo.ini"
SET /A i+=1

:EOF

Run at cmdlines.

It´s not my work, found somewhere in this forum, just rebuilt for danish lang.

Link to comment
Share on other sites

How I make my auto date & list all hotfixes  + some text in Oeminfo.ini

cmdow @ /HID
@ECHO OFF
SET D=%SYSTEMROOT%\system32\
REM delete oeminfo.ini if exists
if exist "%D%oeminfo.ini" del   "%D%oeminfo.ini" /q
FOR %%d IN (c: d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: x: y: z:) DO IF EXIST %%d\WIN51IP SET CDROM=%%d


echo [General] >> "%D%oeminfo.ini"
echo Manufacturer=Unattendet Win. XP sp2 Pro >> "%D%oeminfo.ini"
echo Model=Slim Slipstream Version >> "%D%oeminfo.ini"
echo [Support Information] >> "%D%oeminfo.ini"
echo Line1=Dato for installation: %date% >> "%D%oeminfo.ini"
echo Line2= >> "%D%oeminfo.ini"
echo Line3=Slipstreamed Hotfix:>> "%D%oeminfo.ini"
echo Line4= >> "%D%oeminfo.ini"

REM Line Number
SET i=5

REM List  quickfixes without exe extension
For /F "TOKENS=1 delims=.exe"  %%j in ( 'dir /B %CDROM%\I386\svcpack\KB*.exe' )do ( ( set kbname=%%j ) & (call :myprint) )
GOTO :EOF

:myprint
echo Line%i%=%kbname%   >> "%D%oeminfo.ini"
SET /A i+=1

:EOF

Run at cmdlines.

It´s not my work, found somewhere in this forum, just rebuilt for danish lang.

I use a similar cmd file, and run it right at the end, after the defrag, before reboot, works a treat.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.


×
×
  • Create New...