For openoffice you can use this:
These files goes into \INSTALL\OpenOffice on CD:
install.cmd
cmdow @ /HID
start autoit3.exe openoffice.au3
setup.exe -d "%programfiles%\OpenOffice" -r response.txt -noexit
md "%programfiles%\OpenOffice\share\registry\data\org\openoffice\Office"
copy /Y "*.xcu" "%programfiles%\OpenOffice\share\registry\data\org\openoffice\Office"
del /f /q "%userprofile%\Menu Start\Programma's\Opstarten\OpenOffice.org 1.1.4.lnk"
cacls "%programfiles%\OpenOffice" /E /T /P Gebruikers:C
EXIT
openoffice.au3
AutoItSetOption("WinTitleMatchMode", 4)
WinWaitActive("classname=SALFRAME")
Send("{ENTER}")
response.txt
[Environment]
InstallationMode=INSTALL_NORMAL
InstallationType=STANDARD
StartProcedure=StartSetup
EndProcedure = PostSetup
[Windows_Desktop_Integration]
Register4MsWord=FALSE
Register4MsExcel=FALSE
Register4MsPowerPoint=FALSE
RegisterAsDefaultHtmlEditor=TRUE
[Java]
JavaSupport=preinstalled_or_none
[Procedures]
Sub StartSetup
ShowSetup()
End Sub
Sub PostSetup
SetReboot( False )
End Sub
jobs.xcu
<?xml version="1.0" encoding="UTF-8"?>
<Jobs state="modified" cfg:package="org.openoffice.Office" xmlns="http://openoffice.org/2000/registry/components/Jobs" xmlns:cfg="http://openoffice.org/2000/registry/instance" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance">
<Jobs cfg:element-type="Job">
<Job cfg:name="AddressBookSourcePilot">
<UserTime cfg:type="string">1.1.2001/11:11:11</UserTime>
</Job>
<Job cfg:name="RegistrationRequest">
<UserTime cfg:type="string">1.1.2001/11:11:11</UserTime>
</Job>
</Jobs>
</Jobs>
These files goes into \$OEM$ dir:
RunOnceEx.cmd
@echo off
cmdow @ /HID
For %%i 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 %%i:\win51ip.SP2 set CDDRIVE=%%i:
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
REG ADD %KEY%\001 /VE /D "OpenOffice.org 1.1.4" /f
REG ADD %KEY%\001 /V 1 /D "CMD.exe /C start /B /wait /D%CDDRIVE%\install\openoffice %CDDRIVE%\install\openoffice\install.cmd" /f
cmdlines.txt
[COMMANDS]
"RUNonceEx.cmd"
"rundll32.exe iernonce.dll,RunOnceExProcess"
Make sure you also make proper winnt.sif entries
Have fun with it