Script Install MOSS 2007 with SQL Express
All installation files will be in C:\Build\Packages\MOSS
1. Create C:\Build\Packages\MOSS folder structure
2. Copy Microsoft SharePoint Server 2007 installation files in C:\Build\Packages\MOSS\Server12
3. Copy SQL Server files to C:\Build\Packages\MOSS\SQLExpress
4. Create C:\Build\Packages\MOSS\Scripts
5. Copy Config.xml from C:\Build\Packages\MOSS\Server12\Files\SetupSilent\ to C:\Build\Packages\MOSS\Server12\
6. Edit this config.xml and replace with your MOSS product key. Leave the rest as is.
Then run C:\Build\Packages\MOSS\Server12\setup.exe /config “C:\Build\Packages\MOSS\Server12\config.xml”
This post was expanded on from the following source; alpesh.nakars.com/blog/script-to-install-moss-with-sql-express/