chupacabra Posted January 30, 2010 Share Posted January 30, 2010 (edited) hi people i need help with batch file , i dont know how to write batch files at all.what i need is for someone of you to edit batch file,this is locatio of file i need to run..C:\Win xp Test\$OEM$\$1\install\Applications\Office2003\PRO11.msican any of you edit it for me plz...cmdow @ /HID@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installeren van Software" /fREG ADD %KEY%\001 /VE /D "Office2003" /fREG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\Applications\Office2003\PRO11.msi /QB" /fEXIT Edited January 30, 2010 by chupacabra Link to comment Share on other sites More sharing options...
strel Posted January 30, 2010 Share Posted January 30, 2010 Seems OK to me. Link to comment Share on other sites More sharing options...
chupacabra Posted January 30, 2010 Author Share Posted January 30, 2010 (edited) Seems OK to me.yeah strell, but is destination ok in the batch file ?when i created iso , during VMware test , got error that destination could not be found... so i was not able to start office 2003 installation Edited January 30, 2010 by chupacabra Link to comment Share on other sites More sharing options...
Guest Posted January 30, 2010 Share Posted January 30, 2010 Make certain the following lines exist in WinNT.sif after running nLite. Otherwise your OEM distribution folders will not copy.[Unattended]OemPreinstall="Yes" Link to comment Share on other sites More sharing options...
chupacabra Posted January 30, 2010 Author Share Posted January 30, 2010 Make certain the following lines exist in WinNT.sif after running nLite. Otherwise your OEM distribution folders will not copy.[Unattended]OemPreinstall="Yes"it already exists Link to comment Share on other sites More sharing options...
Ponch Posted January 30, 2010 Share Posted January 30, 2010 I see people using "shortfilenames=true" as well as your "/qb". I have no idea if this should be your case so this is just a shot in the dark. Sorry. Link to comment Share on other sites More sharing options...
Guest Posted January 30, 2010 Share Posted January 30, 2010 (edited) Here's another shot in the dark. Try calling the MSI properly using MSIExec.exe.REG ADD %KEY%\001 /V 1 /D "MSIExec.exe /i \"%systemdrive%\install\Applications\Office2003\PRO11.msi\" /qb" /fHowever, it seems more likely that you'll need a transforms file to automate the installation. A guide exists to create this file. Edited January 30, 2010 by 5eraph Link to comment Share on other sites More sharing options...
chupacabra Posted January 30, 2010 Author Share Posted January 30, 2010 Here's another shot in the dark. Try calling the MSI properly using MSIExec.exe.REG ADD %KEY%\001 /V 1 /D "MSIExec.exe /i \"%systemdrive%\install\Applications\Office2003\PRO11.msi\" /qb" /fHowever, it seems more likely that you'll need a transforms file to automate the installation. A guide exists to create this file.ok i made unattended.mstnow what , what do i need to place into batch file , plz help , what command do i need to copy ? Link to comment Share on other sites More sharing options...
strel Posted January 30, 2010 Share Posted January 30, 2010 Have you checked that you correctly placed all files you need under $OEM$ folders for the batch you're using? That is:$OEM$\$$\System32\CMDOW.EXE and what's in the image Link to comment Share on other sites More sharing options...
chupacabra Posted January 30, 2010 Author Share Posted January 30, 2010 (edited) Have you checked that you correctly placed all files you need under $OEM$ folders for the batch you're using? That is:$OEM$\$$\System32\CMDOW.EXE and what's in the imagethis is where files are located$OEM$\$1\install\applications\ofice2003dunn maybe i still need to change somethingRunOnceEx.cmd is located at $OEM$ Edited January 30, 2010 by chupacabra Link to comment Share on other sites More sharing options...
strel Posted January 30, 2010 Share Posted January 30, 2010 (edited) As you're using this install method I hope you can check whether you forgot something.Check:$OEM$\$$\System32\CMDOW.EXEand your cmdlines.txt file. Edited January 30, 2010 by strel Link to comment Share on other sites More sharing options...
chupacabra Posted January 30, 2010 Author Share Posted January 30, 2010 As you're using this install method I hope you can check whether you forgot something.Check:$OEM$\$$\System32\CMDOW.EXEand your cmdlines.txt file.there is noo need for CMDOW.exeand this is what i got inside cmdlines.txtcmdlines.txt file[Commands]"RunOnceEx.cmd""rundll32 advpack.dll,LaunchINFSection nLite.inf,U" Link to comment Share on other sites More sharing options...
Yzöwl Posted January 30, 2010 Share Posted January 30, 2010 there is noo need for CMDOW.exeOf course there iscmdow @ /HIDit's used in the first line of your batch file! Link to comment Share on other sites More sharing options...
chupacabra Posted January 30, 2010 Author Share Posted January 30, 2010 (edited) there is noo need for CMDOW.exeOf course there is…cmdow @ /HID…it's used in the first line of your batch file!hahaah , ok sorry man its not my batch file i got it from Somewhere.... ok ill check it out Edited January 30, 2010 by chupacabra Link to comment Share on other sites More sharing options...
Yzöwl Posted January 30, 2010 Share Posted January 30, 2010 When you've done that, try reading this! Link to comment Share on other sites More sharing options...
Recommended Posts