Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

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. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


Sign in to follow this  
swgreed

Create oeminfo.ini containing date of installation

Recommended Posts

@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.

Just tried it - works perfectly!!!!!

thanks so much!

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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:

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...