This *can* be done, with a little work. The following instructions require the use of the free zip archiver 7zip (http://www.7-zip.org/) - adjust steps 7-10 if you prefer to use something else to make your archives.
1. Create your desired config file - I simply saved my desired settings from an existing install of KAV. Note that I've found you must use different saved configs for Vista and XP installs (and possibly 32-bit and 64-bit as well) - there are certain functions that are only supported on one platform or the other, and these will be set to defaults on the wrong platform.
2. Run the installer you downloaded to extract the install files to a temporary directory ("C:\KAV" by default) - you *don't* need to complete the installation, just cancel after extraction and the files will still be there.
3. Copy your saved config file to "C:\KAV" (or wherever your extracted the install files) - and name it "install.cfg".
4. In "C:\KAV", edit the file "install.ini" (or create it if it doesn't exist) to contain the following:
CODE
[Settings]
Components=00000bff
Location=
CfgFile=install.cfg
5. In "C:\KAV", create a new file called "install.cmd" containing the following:
CODE
@echo off
title Installing...
start /wait msiexec /i kav6ws.en.msi /qr /forcerestart /log KasperskyInstall.log
title Installation Succeeded
echo.
echo The installation process has completed successfuly. Kaspersky Anti-Virus
echo protection will be active the next time you restart your computer.
echo.
echo Please save your work and restart as soon as it is convenient to ensure
echo you are protected.
echo.
pause
This will run the .msi installer in passive mode (no input required from user), but displaying an informative progress window, and will prompt to restart the system when it completes. If the user clicks "No" at the restart prompt, they will still be reminded that KAV is not active yet and to restart as soon as possible.
6. Copy your .key file to "C:\KAV" (this was supplied to me by Kaspersky when I signed up for a trial version - I'm still evaluating so I'm not sure how you get your key file when you purchase).
7. Using 7zip, add the following files to a new archive called "kavarchive.7z" (you can use whatever compression settings you like, but *don't* create an SFX yet):
CODE
install.cmd
install.ini
install.cfg
<keyfile>.key
kav6ws.en.msi
8. Download the file called "7z###_extra.tar.bz2" (it's referred to as "7z Library, SFXs for installers, Plugin for FAR Manager") from
http://www.7-zip.org/download.html. Using 7zip, open this file and extract the file called "7zS.sfx" to "C:\KAV".
9. In "C:\KAV", create a new file called "sfxconfig.txt" containing the following:
CODE
;!@Install@!UTF-8!
Title="Kaskpersky Anti-Virus 6.0 Unattended Installer"
ExecuteFile="install.cmd"
;!@InstallEnd@!
Make sure you use those exact characters in the first and last line.
10. Open a command prompt, go to "C:\KAV", and run the following:
CODE
copy /b 7zs.sfx + sfxconfig.txt + kavarchive.7z installer.exe
11. Rename "installer.exe" to whatever you would like, and you're ready to distribute.