MartinaL Posted February 18, 2005 Posted February 18, 2005 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?
Alanoll Posted February 18, 2005 Posted February 18, 2005 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.
MartinaL Posted February 18, 2005 Author Posted February 18, 2005 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 itregsvr32 /s msdatgrd.ocxregsvr32 /s msdatlst.ocxregsvr32 /s comcat.dllregsvr32 /s msstdfmt.dllregsvr32 /s mscomct2.ocxregsvr32 /s msadodc.ocxregsvr32 /s ccrpFD6.ocxregsvr32 /s ccrpDtp.ocxregsvr32 /s MSFLXGRD.OCXrem 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)
Alanoll Posted February 18, 2005 Posted February 18, 2005 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 itregsvr32 /s msdatgrd.ocxregsvr32 /s msdatlst.ocxregsvr32 /s comcat.dllregsvr32 /s msstdfmt.dllregsvr32 /s mscomct2.ocxregsvr32 /s msadodc.ocxregsvr32 /s ccrpFD6.ocxregsvr32 /s ccrpDtp.ocxregsvr32 /s MSFLXGRD.OCXrem 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.
MartinaL Posted February 18, 2005 Author Posted February 18, 2005 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??
MartinaL Posted February 18, 2005 Author Posted February 18, 2005 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" /fREG ADD %KEY%\054 /V 1 /D "%systemdrive%\install\AdAware\aawsepersonal.exe /S" /fThis 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?
SiMoNsAyS Posted February 18, 2005 Posted February 18, 2005 REG ADD %KEY%\055 /VE /D "MSDataGrid" /fREG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\MSDataGrid\MSDataGrid.cmd" /fmeaning 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
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now