Hello everybody,
I have a problem creating a custom Sophos AV package (Version 10.8.2.363). When I embed the configuration for Sophos AV (ExportConfig.exe -type SAV...) into the custom package, Windows 7 freezes when I try to install the package. If I do not embed the configuration, then everything works without problems?
I used the following script to create the package:
@ECHO OFF
RMDIR /S /Q "%TEMP%\savinst"
MKDIR "%TEMP%\savinst"
robocopy.exe "C:\ProgramData\Sophos\Update Manager\Update Manager\CIDs\S000\SAVSCFXP" "%TEMP%\savinst\SAVSCFXP" /MIR
robocopy.exe "%TEMP%\savinst\SAVSCFXP" "%TEMP%\savinst\SAVSCFXPXML" /MIR
"C:\Program Files (x86)\Sophos\Enterprise Console\ExportConfig.exe" -type AU -policy "HomeUse" -output "%TEMP%\savinst\SAVSCFXPXML\sau\sauconf.xml"
REM Without the next line, Sophos AV will be installed without problems.
"C:\Program Files (x86)\Sophos\Enterprise Console\ExportConfig.exe" -type SAV -policy "HomeUse" -output "%TEMP%\savinst\SAVSCFXPXML\savxp\savconf.xml"
"C:\Program Files (x86)\Sophos\Update Manager\ConfigCID.exe" "%TEMP%\savinst\SAVSCFXPXML"
(ECHO "%%~dp0SAVSCFXP\setup.exe" -ni -mng no -crt R -updp "%%~dp0SAVSCFXPXML")> "%TEMP%\savinst\Setup.cmd"
RMDIR /S /Q "%TEMP%\savinst\SAVSCFXP\ntp"
RMDIR /S /Q "%TEMP%\savinst\SAVSCFXP\ntp64"
RMDIR /S /Q "%TEMP%\savinst\SAVSCFXP\RMS"
RMDIR /S /Q "%TEMP%\savinst\SAVSCFXP\SAVXP"
RMDIR /S /Q "%TEMP%\savinst\SAVSCFXP\SCF"
RMDIR /S /Q "%TEMP%\savinst\SAVSCFXP\sed"
RMDIR /S /Q "%TEMP%\savinst\SAVSCFXP\sed64"
RMDIR /S /Q "%TEMP%\savinst\SAVSCFXP\spa"
RMDIR /S /Q "%TEMP%\savinst\SAVSCFXP\spa64"
RMDIR /S /Q "%TEMP%\savinst\SAVSCFXP\ssp"
DEL "%TEMP%\savinst\SAVSCFXPXML\setup*.*"
RMDIR /S /Q "%TEMP%\savinst\SAVSCFXPXML\crt"
RMDIR /S /Q "%TEMP%\savinst\SAVSCFXPXML\ntp"
RMDIR /S /Q "%TEMP%\savinst\SAVSCFXPXML\ntp64"
RMDIR /S /Q "%TEMP%\savinst\SAVSCFXPXML\rms"
RMDIR /S /Q "%TEMP%\savinst\SAVSCFXPXML\scf"
RMDIR /S /Q "%TEMP%\savinst\SAVSCFXPXML\sed"
RMDIR /S /Q "%TEMP%\savinst\SAVSCFXPXML\sed64"
RMDIR /S /Q "%TEMP%\savinst\SAVSCFXPXML\spa"
RMDIR /S /Q "%TEMP%\savinst\SAVSCFXPXML\spa64"
RMDIR /S /Q "%TEMP%\savinst\SAVSCFXPXML\ssp"
explorer.exe "%TEMP%\savinst"
PAUSE
This thread was automatically locked due to age.