This section describes how to remove files from the release image. Create a batch file in your development system to do the customization. The easiest way is to copy the script, paste it into a file, and then name the file custom.bat. Open a command prompt to the folder containing the release image, and then run the batch file from that directory. The batch file asks a few questions, and then deletes any files that are unnecessary.
@echo off
echo Creating Enterprise Release
echo This will delete files in the current directory to create the release.
echo Press Ctrl+C now if this is not what you want to do
pause
SET /P FAX="Include FAX? [Y|N] "
SET /P PLATFORM="32 bit, 64 bit, or Both? [32|64|Both] "
SET /P LANGUAGE="Specify Language ID or All? [{LanguageID}|All] "
rmdir /Q /S Optional
rmdir /Q /S HP
rmdir /Q /S Microsoft
rmdir /Q /S Toolbar
rmdir /Q /S Required
rmdir /Q /S licensing
del /F /Q Full_*.cab
del /F Setup.exe
del /F HP-DQEX5.exe
del /F autorun.inf
del /F ReadMe.chm
if "%FAX%"=="N" (
pushd Drivers
rmdir /Q /S Fax
popd
del /F /Q HP*_fax.inf
del /F /Q HP*_fax*.cat
) ELSE (
REM The nullfax driver might be inside of the MSI in K3.5/K4, but we'll try to remove it anyway
del /F /Q HP*_nullfax*.inf
del /F /Q HP*_nullfax*.cat
)
if "%PLATFORM%"=="32" (
del /F /Q *x64.msi
del /F /Q *x64.cab
del /F /Q *x64_*.mst
)
if "%PLATFORM%"=="64" (
del /F /Q *x86.msi
del /F /Q *x86.cab
del /F /Q *x86_*.mst
)
if "%LANGUAGE%"=="All" GOTO :SKIP_LANGUAGES
FOR %%F in (*%LANGUAGE%*.mst) DO ren "%%F" "%%~nF._mst"
del /F /Q *.mst
FOR %%F in (*._mst) DO ren "%%F" "%%~nF.mst"
:SKIP_LANGUAGES
echo All Done!
©2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. The only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting an additional warranty. HP shall not be liable for technical or editorial errors or omissions contained herein.