Для Windwos использовал программу Bred
Для клиентов под WinXP и Win7 использую следующий скрипт
Код: Выделить всё
@ECHO OFF
ECHO Ждите окончания процесса запуска корпортивного чата Pandion
ping 127.0.0.1 -n 20 -w %1000 > nul
VER | findstr /l "5.0." > nul
IF %ERRORLEVEL% EQU 0 ECHO Running 2000
VER | findstr /l "5.1." > nul
IF %ERRORLEVEL% EQU 0 ECHO Running Win xp&goto :winXP
VER | findstr /l "5.2." > nul
IF %ERRORLEVEL% EQU 0 ECHO Running Win 2003
VER | findstr /l "6.0." > nul
IF %ERRORLEVEL% EQU 0 ECHO Running Vista
VER | findstr /l "6.0." > nul
IF %ERRORLEVEL% EQU 0 ECHO Running Vista
VER | findstr /l "6.1." > nul
IF %ERRORLEVEL% EQU 0 ECHO Running windows 7&goto :win7
:end
ECHO OS version not supported
exit
:winXP
REM *********** JABBER *********************************************
SET jVersion=0.0.0.0
SET jPath=C:\Documents and Settings\%username%\Application Data
IF EXIST "%jPath%\Pandion\%jVersion%.txt" GOTO end
:install.
RMDIR /S /Q C:\"Program Files"\Pandion
RMDIR /S /Q C:\"Documents and Settings"\%username%\"Local Settings"\"Application Data"\Pandion
DEL /q "C:\Documents and Settings\All Users\Рабочий стол\Pandion.lnk"
RMDIR /S /Q "%jPath%\Pandion"
XCOPY \\192.168.28.2\public\soft\Pandion "%jPath%\Pandion" /Y /E /I
COPY "\\192.168.28.2\public\soft\Pandion\xp\Pandion.lnk" "C:\Documents and Settings\%username%\Рабочий стол" /Y
echo ^<^?xml version="1.0" encoding="UTF-8"?^>^<^settings^>^<^aot^>^false^<^/aot^>^<^authentication^>^normal^<^/authentication^>^<^autologin^>^true^<^/autologin^>^<^encryption^>^optional^<^/encryption^>^<^installupdates^>^yes^<^/installupdates^>^<^language^>^ru^<^/language^>^<^last_address^>^%username%@msk.stniva.ru^<^/last_address^>^<^last_autoupdate^>^0^<^/last_autoupdate^>^<^last_password^>^<^/last_password^>^<^last_password_remember^>^true^<^/last_password_remember^>^<^lastheight^>^560^<^/lastheight^>^<^lastposx^>^400^<^/lastposx^>^<^lastposy^>^20^<^/lastposy^>^<^lastwidth^>^330^<^/lastwidth^>^<^serveraddress^>^192.168.28.2^<^/serveraddress^>^<^serverport^>^<^/serverport^>^<^softwaretrack^>^stable^<^/softwaretrack^>^<^welcomescreen^>^yes^<^/welcomescreen^>^<^welcomesettings^>^true^<^/welcomesettings^>^<^/settings^>^ > "%jPath%\Pandion\global.xml"
GOTO version
:version
cd /D "%jPath%\Pandion\"
echo pwouet > %jVersion%.txt
:end
:START
START /b C:\"Documents and Settings"\%username%\"Application Data"\Pandion\pandion.exe
ECHO Running Pandion on Windows XP
exit
:win7
REM *********** JABBER *********************************************
SET jVersion=0.0.0.0
SET jPath=C:\Users\%username%\AppData\Local
IF EXIST "%jPath%\Pandion\%jVersion%.txt" GOTO end
:install.
RMDIR /S /Q C:\"Program Files"\Pandion
RMDIR /S /Q C:\"C:\Users\%username%\AppData\Local\Pandion"
DEL /q "C:\Users\%username%\Desktop\Pandion.lnk"
RMDIR /S /Q "%jPath%\Pandion"
XCOPY \\192.168.28.2\public\soft\Pandion "%jPath%\Pandion" /Y /E /I
COPY "\\192.168.28.2\public\soft\Pandion\Pandion.lnk" "C:\Users\%username%\Desktop" /Y
echo ^<^?xml version="1.0" encoding="UTF-8"?^>^<^settings^>^<^aot^>^false^<^/aot^>^<^authentication^>^normal^<^/authentication^>^<^autologin^>^true^<^/autologin^>^<^encryption^>^optional^<^/encryption^>^<^installupdates^>^yes^<^/installupdates^>^<^language^>^ru^<^/language^>^<^last_address^>^%username%@msk.stniva.ru^<^/last_address^>^<^last_autoupdate^>^0^<^/last_autoupdate^>^<^last_password^>^<^/last_password^>^<^last_password_remember^>^true^<^/last_password_remember^>^<^lastheight^>^560^<^/lastheight^>^<^lastposx^>^400^<^/lastposx^>^<^lastposy^>^20^<^/lastposy^>^<^lastwidth^>^330^<^/lastwidth^>^<^serveraddress^>^192.168.28.2^<^/serveraddress^>^<^serverport^>^<^/serverport^>^<^softwaretrack^>^stable^<^/softwaretrack^>^<^welcomescreen^>^yes^<^/welcomescreen^>^<^welcomesettings^>^true^<^/welcomesettings^>^<^/settings^>^ > "%jPath%\Pandion\global.xml"
GOTO version
:version
cd /D "%jPath%\Pandion\"
echo pwouet > %jVersion%.txt
:end
:START
start "" "%jPath%\Pandion\pandion.exe"
ECHO Running Pandion on Windows 7
exit