MSFN Forum: Unattended Windows Cd - Ocx's And Dll's - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Unattended Windows Cd - Ocx's And Dll's Rate Topic: -----

#1 User is offline   MartinaL 

  • Newbie
  • Group: Members
  • Posts: 45
  • Joined: 17-February 05

  Posted 17 February 2005 - 06:18 PM

I am in the process of creating an unattended windows XP installation CD and I need to add to have this cd load some ocx's and dll's for MSDataGrid's, these will need to be copied to the system32 folder and then registered.

I currently have a bat file that does this when run locally on a PC, but how do I go about adding this to the unattended CD?


#2 User is offline   Alanoll 

  • CODE tags people, CODE tags!
  • Group: Patrons
  • Posts: 5,496
  • Joined: 25-September 03

Posted 17 February 2005 - 07:02 PM

Add the files to $OEM$\$$\system32. They will get copied over to your system32 directory. If you prefer to do it another way, then just have your batch file copy them over before registering.

Then add the batch file to your unattended install routine.

#3 User is offline   MartinaL 

  • Newbie
  • Group: Members
  • Posts: 45
  • Joined: 17-February 05

Posted 17 February 2005 - 07:21 PM

Ok, i have added the oxc's etc to the $OEM$\$$\system32 folder.

I have also added the batch file to the $OEM$ folder and this is what is in it

regsvr32 /s msdatgrd.ocx
regsvr32 /s msdatlst.ocx
regsvr32 /s comcat.dll
regsvr32 /s msstdfmt.dll
regsvr32 /s mscomct2.ocx
regsvr32 /s msadodc.ocx
regsvr32 /s ccrpFD6.ocx
regsvr32 /s ccrpDtp.ocx
regsvr32 /s MSFLXGRD.OCX
rem regsvr32 /s softphone.ocx
@Echo Operation Completed.

Is there any other other code that needs to go in this bat file?? Also I renamed it to a .cmd file as the other ones in the $OEM$ where in that file format (example RunOnceEx.cmd)

#4 User is offline   Alanoll 

  • CODE tags people, CODE tags!
  • Group: Patrons
  • Posts: 5,496
  • Joined: 25-September 03

Posted 17 February 2005 - 07:52 PM

MartinaL, on Feb 17 2005, 07:21 PM, said:

Ok, i have added the oxc's etc to the $OEM$\$$\system32 folder.

I have also added the batch file to the $OEM$ folder and this is what is in it

regsvr32 /s msdatgrd.ocx
regsvr32 /s msdatlst.ocx
regsvr32 /s comcat.dll
regsvr32 /s msstdfmt.dll
regsvr32 /s mscomct2.ocx
regsvr32 /s msadodc.ocx
regsvr32 /s ccrpFD6.ocx
regsvr32 /s ccrpDtp.ocx
regsvr32 /s MSFLXGRD.OCX
rem regsvr32 /s softphone.ocx
@Echo Operation Completed.

Is there any other other code that needs to go in this bat file?? Also I renamed it to a .cmd file as the other ones in the $OEM$ where in that file format (example RunOnceEx.cmd)
<{POST_SNAPBACK}>

No, but remember the file doesn't get executed unless YOU TELL IT TO somewhere. Perhaps via RunOnceEX or other.

#5 User is offline   MartinaL 

  • Newbie
  • Group: Members
  • Posts: 45
  • Joined: 17-February 05

Posted 17 February 2005 - 08:10 PM

Thanks for that, i am working on a previously set up (by the person in the job before me) unattended build and am not sure where runonceex even gets called from.
Do you know where this may be called from??

#6 User is offline   MartinaL 

  • Newbie
  • Group: Members
  • Posts: 45
  • Joined: 17-February 05

Posted 17 February 2005 - 08:23 PM

Also what would the line have to be to be called from the runonceex.cmd file.

At the moment for example there is a a command to install ad-aware which looks like this

REG ADD %KEY%\054 /VE /D "Adware SE Personal" /f
REG ADD %KEY%\054 /V 1 /D "%systemdrive%\install\AdAware\aawsepersonal.exe /S" /f


This shows in a box that pops up.

So to run the .bat file to register the ocx's and dll's what would the code need to look like?

#7 User is offline   SiMoNsAyS 

  • C'mon you apes! You wanna live forever!?
  • Group: Patrons
  • Posts: 3,455
  • Joined: 17-May 04

Posted 17 February 2005 - 08:39 PM

REG ADD %KEY%\055 /VE /D "MSDataGrid" /f
REG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\MSDataGrid\MSDataGrid.cmd" /f

meaning you placed "MSDataGrid.cmd" on "$1\install\MSDataGrid". this is just an example, you can run the file from the cd from cmdlines.txt or you can call it later at the first reboot. is your own decission ;)

#8 User is offline   MartinaL 

  • Newbie
  • Group: Members
  • Posts: 45
  • Joined: 17-February 05

Posted 17 February 2005 - 09:44 PM

Worked great - thanks :)

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy