Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Create oeminfo.ini containing date of installation

- - - - -

  • Please log in to reply
21 replies to this topic

#1
swgreed

swgreed

    Unofficial Service Pack & Codec Pack maintainer

  • Member
  • PipPipPip
  • 454 posts
  • Joined 18-August 03
remember the date of your last unattended installation?
add this to your installation batch (oeminfo.ini must not exist yet)

quick'n'dirty:

SET D=%SYSTEMROOT%\system32\
echo [General] >> "%D%oeminfo.ini"
echo Manufacturer=Unattended XP-SP2 Installation >> "%D%oeminfo.ini"
echo Model=Professional Edition >> "%D%oeminfo.ini"
echo [Support Information] >> "%D%oeminfo.ini"
echo Line1=XP SP2 Professional Edition >> "%D%oeminfo.ini"
echo Line2=Unattended version (v1.0a) >> "%D%oeminfo.ini"
echo Line3= >> "%D%oeminfo.ini"
echo Line4=Date of installation: %date% >> "%D%oeminfo.ini"



How to remove advertisement from MSFN

#2
mmarable

mmarable

    Advanced Member

  • Member
  • PipPipPip
  • 377 posts
  • Joined 01-November 03
Not bad. I like it. I'm ususally wondering how long ago I've built a machine.

Nice tidbit.
"There are three classes of men; lovers of wisdom, lovers of honor, and lovers of gain." - Plato
"Winning is not everything, but wanting to win is." - Vince Lombardi - "If you wait, all that happens is that you get older." - Mario Andretti
"Do it no matter what. If you believe in it, it is something very honorable. If somebody around you or your family does not understand it, then that's their problem. But if you do have a passion, an honest passion, just do it." - Mario Andretti

#3
benners

benners

    Senior Member

  • Member
  • PipPipPipPip
  • 693 posts
  • Joined 29-December 03
Thanks for the info, I added a few things to mine
cmdow @ /HID

set file=%systemroot%\system32\oeminfo.ini

if exist %file% del %file% /s

goto %computername%



:Batcave

echo [General] >> %file%

echo Manufacturer=Wayne Enterprises >> %file%

echo Model=%computername% >> %file%

echo [Support Information] >> %file%

echo line1=Your Installer Today Was >>. >> %file%

echo line2=Benners >> %file%

echo line3= >> %file%

echo line4=Vocation .............................. >> %file%

echo line5=Supreme Unattended Overlord :-)  >> %file%

echo line6= >> %file%

echo line7=Windows Version ..................... >> %file%

echo line8=XP Professional with Service Pack 2 >> %file%

echo line9= >> %file%

echo line10=Support Link ................. >> %file%

echo line11=Email addy here >> %file%

echo line12=Before Mithering Me,  STFW @ http://www.google.co.uk >> %file%

echo line13= >> %file%

echo line14=Installation Date >> %file%

echo line15=%date% @ %time% >> %file%

goto end



:Batcave2

; different details here

goto end



:Batcave3

; different details here

goto end



:Minky

; different details here

goto end



:Stacey

; different details here



:end

I never let school interfere with my education

#4
Radimus

Radimus

    Advanced Member

  • Member
  • PipPipPip
  • 309 posts
  • Joined 14-June 04
I like using copy

SET D=%SYSTEMROOT%\system32\
echo Line4=Date of installation: %date% >> "%D%pt2.txt"
copy "%D%pt1.txt"+"%D%pt2.txt"+"%D%pt3.txt" "%D%oeminfo.ini"

#5
lilweirddude

lilweirddude

    Senior Member

  • Member
  • PipPipPipPip
  • 573 posts
  • Joined 24-August 04
interesting guys....thanks

#6
KNARZ

KNARZ

    Junior

  • Member
  • Pip
  • 89 posts
  • Joined 20-August 04
im not that good in cmd commands so please help..

how to create that if no computername matches that than will run something generell?

e.g. maybe the name of the PC is 'HELLO' gut in cmd only

:PC1

:PC2

are in the cmd - how to do that HELLO get's something generell witch is in the CMD

(i know i can create OEM before with $$\System32\ - but the timestamp wouldn't be in present)

#7
venim

venim

    Member

  • Member
  • PipPip
  • 218 posts
  • Joined 31-August 03
Thanx for it.But I got this problem when creating the oeminfo the date is displayed as :?œ £ 20/01/2005 @ 0:12:56,21 ?œ?œ?œ?œ

with 2 squares before the £.

What might be the problem?

#8
SiMoNsAyS

SiMoNsAyS

    C'mon you apes! You wanna live forever!?

  • Patrons
  • 3,455 posts
  • Joined 17-May 04
never had the time to say thanks, great script, using it right now :)

#9
Martin Zugec

Martin Zugec

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,373 posts
  • Joined 24-January 04
I am using oeminfo.ini for information about "build" - on my server I got sheet with differences on every build - so if there is problem on 100 PCs with same build, I know where to look :)
Like my opinions? Read Deployment/scripting blog
Like my scripts? They are under DrinkWare license :)

#10
LaptoniC

LaptoniC

    Member

  • Member
  • PipPip
  • 125 posts
  • Joined 23-September 04
I tweaked the batch file little bit and came up with below.It listes fixes under the svcpack directory so you could know which hotfixes you installed.
@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=Windows XP-SP2 Setup >> "%D%oeminfo.ini"
echo Model=Professional Version >> "%D%oeminfo.ini"
echo [Support Information] >> "%D%oeminfo.ini"
echo Line1=Installation Date: %date% >> "%D%oeminfo.ini"
echo Line2= >> "%D%oeminfo.ini"
echo Line3=Installed Hotfixes:>> "%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

Posted Image
Posted Image

#11
bek

bek

    Newbie

  • Member
  • 34 posts
  • Joined 10-August 04
Of just run SRVINFO (Reskit)
It gives the date time as well as SP, fixes, and HAL type....

#12
Vadikan

Vadikan

    MSFT MVP Windows Expert: Consumers

  • Member
  • PipPipPip
  • 349 posts
  • Joined 22-February 04
  • OS:Windows 8 x64
  • Country: Country Flag
Never thought of it. Interesting info, thanks to all contributors.
What we know is not much. What we do not know is immense. Pierre-Simon Laplace
--
Unattended Installation in Russian

#13
a06lp

a06lp

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 976 posts
  • Joined 19-August 04
@LaptoniC:

That is an awesome script.
2 suggestions though:

1) Can you make it delete any prior info in OEMInfo?
2) Can you make it display ONLY the hotfix name, and not the extension (".exe"), so that the info displayes "KB832414" rather than "KB832414.exe"?

thanks!!!

#14
jfmartel

jfmartel

    Member

  • Member
  • PipPip
  • 195 posts
  • Joined 01-December 04
Thank you for this info. This might be useful when you corporate environment has tons of computer.

#15
LaptoniC

LaptoniC

    Member

  • Member
  • PipPip
  • 125 posts
  • Joined 23-September 04
@a06lp
I am newbie at batch programming but I guess I have done what you want.I have edited my previous post Try it and hope it works for you.
Posted Image
Posted Image

#16
a06lp

a06lp

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 976 posts
  • Joined 19-August 04

@a06lp
I am newbie at batch programming but I guess I have done what you want.I have edited my previous post Try it and hope it works for you.

<{POST_SNAPBACK}>


Just tried it - works perfectly!!!!!
thanks so much!

#17
BoardBabe

BoardBabe

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,419 posts
  • Joined 04-October 04
Edit: Question rephrased.

I'd like to include non-integrated updates installed with Windows aswell in oeminfo.ini.

I have a dir on CDROM root called WINDOWSUPDATE where media connect etc. is placed. I'd like the script to not only list hotfixes from %CDROM%\I386\SVCPACK but also %CDROM%\WINDOWSUPDATE\.

The below is an illustration of how I would like it, but does not work.
Is something similar possible?

for /f "tokens=1 delims=.exe"  %%j in ( ( 'dir /B %CDROM%\I386\SVCPACK\KB*.exe' ) & ( 'dir /B %CDROM%\WINDOWSUPDATE\KB*.exe' ) ) do ( ( set kbname=%%j 

) & (call :myprint) )
goto :eof

:myprint
echo line%i%=%kbname%   >> "%oeminfo%"
set /a i+=1

:eof


Please help me out here guys :hello:

Edited by BoardBabe, 21 August 2005 - 06:59 AM.

BoardBabe

#18
BoardBabe

BoardBabe

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,419 posts
  • Joined 04-October 04
burp
BoardBabe

#19
nakira

nakira

    Member

  • Member
  • PipPip
  • 118 posts
  • Joined 18-July 04
Try this
for /f %%j in ('dir /B %CDROM%\I386\SVCPACK\KB*.exe') do call :myprint %%~nj
for /f %%j in ('dir /B %CDROM%\WINDOWSUPDATE\KB*.exe') do call :myprint %%~nj
goto :eof

:myprint
(echo line%i%=%1 >> "%oeminfo%" && set /a i+=1)
:eof


#20
BoardBabe

BoardBabe

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,419 posts
  • Joined 04-October 04
thnx. worked
BoardBabe

#21
smurdock

smurdock
  • Member
  • 7 posts
  • Joined 24-March 04
I create registry keys for everything I install like service packs, hotfixes, tweaks, misc programs, and utils so when I put my unattend windows cd into the computer the autorun interface gives me a report on what is installed on the computer. This also doubles as a kind of protection in that other people I work with use my unattend cds for deploying systems. They can also use the unattend cd to install stand alone apps. If they try to install custom made things like utils, the autorun will see the reg entry and warn the user that the util is already installed on the system.
:blink:

#22
icemanx

icemanx
  • Member
  • 6 posts
  • Joined 07-October 07

I create registry keys for everything I install like service packs, hotfixes, tweaks, misc programs, and utils so when I put my unattend windows cd into the computer the autorun interface gives me a report on what is installed on the computer. This also doubles as a kind of protection in that other people I work with use my unattend cds for deploying systems. They can also use the unattend cd to install stand alone apps. If they try to install custom made things like utils, the autorun will see the reg entry and warn the user that the util is already installed on the system.
:blink:


I know how to do the oeminfo.ini and the bmp for a logo
what about the oemlink.lnk one that I have seen
that can be added after like oeminfo.ini etc

anyone done that as yet ?

or do i ask in a new thread!

thanks




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users