update adboe air and workaround the basic runtimes update problem with zlib1.dll

This commit is contained in:
Mario Fetka 2013-08-05 23:25:40 +02:00
parent 09d4e89d45
commit 425d2db56a
5 changed files with 11 additions and 3 deletions

View File

@ -1 +1,2 @@
AutoUpdateDisable=1

View File

@ -0,0 +1 @@
0894068198eca1d54b7b72cae3a165c248132924 /home/mario/.opsi-dist-cache/sereby.aio-2.0.7.1/X86/air_3.8.0.1040_win.exe

View File

@ -1 +0,0 @@
4dc8f68b1217ec0267a10721fe790292d6170f61 /home/mario/.opsi-dist-cache/sereby.aio-2.0.7.1/X86/air_3.8.0.970_win.exe

View File

@ -56,7 +56,7 @@ DL_WINST_NAME[7]=DotNet81Source
# DL_ARCH[7]="X86"
# DL_WINST_NAME[7]=DotNet81Source
AIRVERSION="3.8.0.970"
AIRVERSION="3.8.0.1040"
DL_FILE[8]="air_${AIRVERSION}_win.exe"
DL_SOURCE[8]="http://labsdownload.adobe.com/pub/labs/flashruntimes/air/air3-8_win.exe"

View File

@ -116,6 +116,12 @@ function create() {
# sed force update on flash
sed -e "s!-install!-force -install!" -i $INST_DIR/CLIENT_DATA/Install/Packages/Flash/package.xml
# Workaround the update bug of the sereby Basic Runtimes
echo "@echo off" >> $INST_DIR/CLIENT_DATA/Install/Packages/BasicRuntimes/CleanUp.bat
echo "del /f /q %WINDIR%\System32\zlib1.dll" >> $INST_DIR/CLIENT_DATA/Install/Packages/BasicRuntimes/CleanUp.bat
echo "" >> $INST_DIR/CLIENT_DATA/Install/Packages/BasicRuntimes/CleanUp.bat
sed 's/.*\t\t<cmd.*/\t\t<cmd path="CleanUp.bat" name="Workaround the update bug" >\n&/' -i $INST_DIR/CLIENT_DATA/Install/Packages/BasicRuntimes/package.xml
# Move Adobe Air and sereby config in place
mv -v $INST_DIR/CLIENT_DATA/X86/air_${AIRVERSION}_win.exe $INST_DIR/CLIENT_DATA/Install/Packages/Air/air3-8_win.exe
mv -v $INST_DIR/CLIENT_DATA/AdobeAIR_package.xml $INST_DIR/CLIENT_DATA/Install/Packages/Air/package.xml
@ -190,8 +196,9 @@ function create() {
# move the opsi wrapper to the right dir (close the error window if nothing needs to be done)
mv -v $INST_DIR/CLIENT_DATA/opsi-WinPKG.exe $INST_DIR/CLIENT_DATA/Install/
# change linefeed of bat files to work correctly
# change linefeed of bat & xml files to work correctly
find $INST_DIR/CLIENT_DATA -name *.bat -print0 | xargs -0 unix2dos
find $INST_DIR/CLIENT_DATA -name package.xml -print0 | xargs -0 unix2dos
# set exec bit on executeables
find $INST_DIR/CLIENT_DATA/Install/ -type f -print0 | xargs -0 chmod +x