Bump sereby

This commit is contained in:
Mario Fetka 2013-09-20 07:37:37 +02:00
parent 60f195827d
commit 3c43fd46f5
20 changed files with 374 additions and 340 deletions

1
2 Normal file
View File

@ -0,0 +1 @@

View File

@ -1 +1 @@
9537e817a99b2a1e2522fd60dbb85a3f4c5037c8 /home/mario/.opsi-dist-cache/sereby.aio-2.0.7.1/X86/Silverlight-5.1.20513.0.exe 9537e817a99b2a1e2522fd60dbb85a3f4c5037c8 /home/mario/.opsi-dist-cache/sereby.aio-2.0.8.1/X86/Silverlight-5.1.20513.0.exe

View File

@ -1 +1 @@
5791a4f1e1a399947079a2582046e6167ddb040d /home/mario/.opsi-dist-cache/sereby.aio-2.0.7.1/X86/Silverlight_x64-5.1.20513.0.exe 5791a4f1e1a399947079a2582046e6167ddb040d /home/mario/.opsi-dist-cache/sereby.aio-2.0.8.1/X86/Silverlight_x64-5.1.20513.0.exe

View File

@ -1 +0,0 @@
d7280a90f0e2d174f64222fc8841ce4de78c5704 /home/mario/.opsi-dist-cache/sereby.aio-2.0.7.1/X86/aio-runtimes_v2.0.7.1.7z

View File

@ -0,0 +1 @@
6aa39c2789ca479833f6a033907b7d99c8fd6c2a /home/mario/.opsi-dist-cache/sereby.aio-2.0.8.1/X86/aio-runtimes_v2.0.8.1.7z

View File

@ -1 +0,0 @@
0354a988909d13ffab696e48652f1f2188009e0e /home/mario/.opsi-dist-cache/sereby.aio-2.0.7.2/X86/air_3.9.0.790_win.exe

View File

@ -0,0 +1 @@
50fb14efa3733d857db00c07495e72174fd5f8ca /home/mario/.opsi-dist-cache/sereby.aio-2.0.8.1/X86/air_3.9.0.880_win.exe

View File

@ -5,7 +5,7 @@ VENDOR="sereby.org"
PN="sereby.aio" PN="sereby.aio"
NAME="All in One Runtimes" NAME="All in One Runtimes"
DESCRIPTION="Das All in One Runtimes Paket buendelt alle wichtigen Runtime Pakete die benoetigt werden um sicherzustellen, dass alle Programme auch reibungslos funktionieren." DESCRIPTION="Das All in One Runtimes Paket buendelt alle wichtigen Runtime Pakete die benoetigt werden um sicherzustellen, dass alle Programme auch reibungslos funktionieren."
VERSION="2.0.7.3" VERSION="2.0.8.1"
RELEASE="1" RELEASE="1"
PRIORITY="0" PRIORITY="0"
ADVICE="" ADVICE=""
@ -20,13 +20,13 @@ CREATENEWSEREBY=1
# Adobe Air Verison # Adobe Air Verison
# ================================== # ==================================
AIRVERSION="3.9.0.790" AIRVERSION="3.9.0.880"
# ================================== # ==================================
# Update Java # Update Java
# ================================== # ==================================
JREUPDATE="1" JREUPDATE="0"
JREUVERSION="40" JREUVERSION="40"
JREVERSION="7.0.400.43" JREVERSION="7.0.400.43"
@ -34,28 +34,29 @@ JREVERSION="7.0.400.43"
# Update Adobe Flash # Update Adobe Flash
# ================================== # ==================================
FLASHUPDATE="1" FLASHUPDATE="0"
FLASHVERSION="11.8.800.168" FLASHVERSION="11.8.800.168"
FLASHAXVERSION="11.8.800.174"
# ================================== # ==================================
# Update Adobe Schockave # Update Adobe Schockave
# ================================== # ==================================
SHOCKUPDATE="1" SHOCKUPDATE="1"
SHOCKVERSION="12.0.4r144" SHOCKVERSION="12.0.4.144"
# ================================== # ==================================
# Update Microsoft Silverlight # Update Microsoft Silverlight
# ================================== # ==================================
SILVERUPDATE="1" SILVERUPDATE="0"
SILVERVERSION="5.1.20513.0" SILVERVERSION="5.1.20513.0"
# ================================== # ==================================
# Take Parts of Ricktendo Update # Take Parts of Ricktendo Update
# ================================== # ==================================
RICKTENDOJSHARPUPDATE="1" RICKTENDOJSHARPUPDATE="0"
RICKTENDOAIO="2013.8.22" RICKTENDOAIO="2013.8.22"
# ================================== # ==================================
@ -69,13 +70,14 @@ RICKTENDONET="2013.9.18"
# ================================== # ==================================
# General Runtimes Verison # General Runtimes Verison
# ================================== # ==================================
GENERALUPDATE="1" GENERALUPDATE="1"
GENERALVERSION="1.1.0.5-go1" GENERALVERSION="1.1.0.7-go1"
# ================================== # ==================================
# MSVC Runtimes Verison # MSVC Runtimes Verison
# ================================== # ==================================
MSVCUPDATE="1" MSVCUPDATE="0"
MSVCVERSION="2013.09.17-go2" MSVCVERSION="2013.09.17-go2"
@ -96,7 +98,7 @@ DL_SOURCE[0]="http://www.chip.de/ii/102791693_ff1cd10758.jpg"
## 1: 32 & 64 Bit Runtimes ## 1: 32 & 64 Bit Runtimes
DL_FILE[5]="aio-runtimes_v${VERSION}.7z" DL_FILE[5]="aio-runtimes_v${VERSION}.7z"
DL_SOURCE[5]="http://www.computerbase.de/downloads/system/all-in-one-runtimes/64076/?download" DL_SOURCE[5]="http://www.computerbase.de/downloads/system/all-in-one-runtimes/66247/?download"
DL_ARCH[5]="X86" DL_ARCH[5]="X86"
DL_EXTRACT_FORMAT[5]="7zip" DL_EXTRACT_FORMAT[5]="7zip"
DL_EXTRACT_TO[5]="sereby" DL_EXTRACT_TO[5]="sereby"
@ -151,8 +153,8 @@ DL_SOURCE[12]="http://fpdownload.macromedia.com/get/flashplayer/pdc/${FLASHVERSI
DL_ARCH[12]="X86" DL_ARCH[12]="X86"
DL_WINST_NAME[12]=InstallFlashExe DL_WINST_NAME[12]=InstallFlashExe
DL_FILE[13]="install_flash_player_ax-${FLASHVERSION}.exe" DL_FILE[13]="install_flash_player_ax-${FLASHAXVERSION}.exe"
DL_SOURCE[13]="http://fpdownload.macromedia.com/get/flashplayer/pdc/${FLASHVERSION}/install_flash_player_ax.exe" DL_SOURCE[13]="http://fpdownload.macromedia.com/get/flashplayer/pdc/${FLASHAXVERSION}/install_flash_player_ax.exe"
DL_ARCH[13]="X86" DL_ARCH[13]="X86"
DL_WINST_NAME[13]=InstallFlashIeExe DL_WINST_NAME[13]=InstallFlashIeExe

View File

@ -20,19 +20,19 @@
############################################################################## ##############################################################################
function cleanup() { function cleanup() {
echo "Cleanup" echo "Cleanup"
builder_cleanup builder_cleanup
} }
function retrieve() { function retrieve() {
echo "Retrieve" echo "Retrieve"
# work around big file download for verison change # work around big file download for verison change
local olddir=`echo $DIST_CACHE_DIR | sed -e "s/\/[^\/]*$//"` local olddir=`echo $DIST_CACHE_DIR | sed -e "s/\/[^\/]*$//"`
echo $olddir echo $olddir
mv $olddir/${PN}-* tempsereby mv $olddir/${PN}-* tempsereby
mv tempsereby $DIST_CACHE_DIR mv tempsereby $DIST_CACHE_DIR
builder_retrieve builder_retrieve
} }
write_svcpack_file() { write_svcpack_file() {
@ -45,307 +45,338 @@ write_svcpack_file() {
} }
function create() { patch_package_xml() {
echo "Create" local xml_file=$1
builder_create local xml_path=$2
local xml_value=$3
# ========================================================================================================== mv ${xml_file} ${xml_file}.old
# create directories and extract the runtime packages cat ${xml_file}.old | tidy -utf8 -xml -w 255 -i -c -q -asxml | xmlstarlet ed -O -u "${xml_path}" -v "${xml_value}" | sed -e 's!&gt;!>!g' -e 's!&lt;!<!g' > ${xml_file}
# ========================================================================================================== rm ${xml_file}.old
}
mkdir -p $INST_DIR/CLIENT_DATA/{Install/Packages/BasicRuntimes,Install/Packages/Air,Config}
mkdir -p $INST_DIR/CLIENT_DATA/UnInstall/Packages/{Flash,Shockwave,Silverlight} tidy_xml() {
7z x -o$INST_DIR/CLIENT_DATA/Install $INST_DIR/CLIENT_DATA/X86/sereby/svcpack/aio-runtimes.exe local xml_file=$1
local xml_path=$2
# ========================================================================================================== local xml_value=$3
# sed everything to disabled
# ========================================================================================================== echo ${xml_file}
mv ${xml_file} ${xml_file}.old
sed -e "s!\"1\"!\"0\"!g" -e "s!maximized=\"0\"!maximized=\"1\"!" $INST_DIR/CLIENT_DATA/X86/sereby/WinPKG.xml > $INST_DIR/CLIENT_DATA/Config/WinPKG.xml cat ${xml_file}.old | tidy -utf8 -xml -w 255 -i -c -q -asxml | sed -e 's!&gt;!>!g' -e 's!&lt;!<!g' > ${xml_file}
rm ${xml_file}.old
# ========================================================================================================== }
# extract .net 8.0 & 8.1 now so the unix2dos dont change the extracted files
# ==========================================================================================================
function create() {
mkdir -p $INST_DIR/CLIENT_DATA/X86/win8xdotnet35 echo "Create"
7z x -o$INST_DIR/CLIENT_DATA/X86/win8xdotnet35 $INST_DIR/CLIENT_DATA/X86/${DL_FILE[6]} builder_create
7z x -y -o$INST_DIR/CLIENT_DATA/X86/win8xdotnet35 $INST_DIR/CLIENT_DATA/X86/${DL_FILE[7]}
# move the Windows 8 dotnet 2 - 3.5 in place # ==========================================================================================================
mv -v $INST_DIR/CLIENT_DATA/X86/win8xdotnet35/sources/sxs $INST_DIR/CLIENT_DATA/Install/NET/WIN8.X # create directories and extract the runtime packages
# ==========================================================================================================
# ==========================================================================================================
# extract Ricktendo AIO now so the unix2dos dont change the extracted files mkdir -p $INST_DIR/CLIENT_DATA/{Install/Packages/BasicRuntimes,Install/Packages/Air,Config}
# ========================================================================================================== mkdir -p $INST_DIR/CLIENT_DATA/UnInstall/Packages/{Flash,Shockwave,Silverlight}
7z x -o$INST_DIR/CLIENT_DATA/Install $INST_DIR/CLIENT_DATA/X86/sereby/svcpack/aio-runtimes.exe
mkdir -p $INST_DIR/CLIENT_DATA/X86/Ricktendo
7z x -o$INST_DIR/CLIENT_DATA/X86/Ricktendo $INST_DIR/CLIENT_DATA/X86/${DL_FILE[18]} # ==========================================================================================================
# sed everything to disabled
# ========================================================================================================== # ==========================================================================================================
# Integrate .net for win 8.0 into winpkg
# ========================================================================================================== sed -e "s!\"1\"!\"0\"!g" -e "s!maximized=\"0\"!maximized=\"1\"!" $INST_DIR/CLIENT_DATA/X86/sereby/WinPKG.xml > $INST_DIR/CLIENT_DATA/Config/WinPKG.xml
for NETVER in 2.0 3.0 3.5 # ==========================================================================================================
do # extract .net 8.0 & 8.1 now so the unix2dos dont change the extracted files
# convert all the cmd's to axept check entities # ==========================================================================================================
sed '/_Install.bat/ s/\/>/>\n\t\t<\/cmd>/' -i $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/package.xml
sed '/NET Framework/ s/\/>/>\n\t\t<\/cmd>/' -i $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/package.xml mkdir -p $INST_DIR/CLIENT_DATA/X86/win8xdotnet35
# force a check on os verison for every cmd command 7z x -o$INST_DIR/CLIENT_DATA/X86/win8xdotnet35 $INST_DIR/CLIENT_DATA/X86/${DL_FILE[6]}
sed 's/.*\t<\/cmd>.*/\t\t<check type="os" condition="<" value="6.2.9200.0" \/>\n&/' -i $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/package.xml 7z x -y -o$INST_DIR/CLIENT_DATA/X86/win8xdotnet35 $INST_DIR/CLIENT_DATA/X86/${DL_FILE[7]}
# remove the installer and package end tags # move the Windows 8 dotnet 2 - 3.5 in place
sed -e '/^\t<\/install>/d' -i $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/package.xml mv -v $INST_DIR/CLIENT_DATA/X86/win8xdotnet35/sources/sxs $INST_DIR/CLIENT_DATA/Install/NET/WIN8.X
sed -e '/^<\/package>/d' -i $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/package.xml
# ==========================================================================================================
# append the win 8.x install cmd via a cmd script that runs it # extract Ricktendo AIO now so the unix2dos dont change the extracted files
echo "<cmd path=\"_Install8X.bat\" >" >> $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/package.xml # ==========================================================================================================
echo "<check type=\"os\" condition=\">\" value=\"6.2.9200.0\" />" >> $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/package.xml
echo "</cmd>" >> $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/package.xml mkdir -p $INST_DIR/CLIENT_DATA/X86/Ricktendo
7z x -o$INST_DIR/CLIENT_DATA/X86/Ricktendo $INST_DIR/CLIENT_DATA/X86/${DL_FILE[18]}
# add back the install and package end tags
echo "</install>" >> $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/package.xml # ==========================================================================================================
echo "</package>" >> $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/package.xml # Integrate .net for win 8.0 into winpkg
# ==========================================================================================================
# create the needed install cmd script for win 8.x
echo "@echo off" >> $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/_Install8X.bat for NETVER in 2.0 3.0 3.5
echo "SET NETDIR=%~dp0" >> $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/_Install8X.bat do
echo "cd %NETDIR%\.." >> $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/_Install8X.bat # convert all the cmd's to axept check entities
echo "SET NETPARENTDIR=%cd%" >> $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/_Install8X.bat sed '/_Install.bat/ s/\/>/>\n\t\t<\/cmd>/' -i $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/package.xml
echo "echo Installing .NET Framwork $NETVER" >> $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/_Install8X.bat sed '/NET Framework/ s/\/>/>\n\t\t<\/cmd>/' -i $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/package.xml
echo "dism /online /enable-feature /featurename:NetFx3 /All /Source:%NETPARENTDIR%\WIN8.X /LimitAccess" >> $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/_Install8X.bat # force a check on os verison for every cmd command
echo "" >> $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/_Install8X.bat sed 's/.*\t<\/cmd>.*/\t\t<check type="os" condition="<" value="6.2.9200.0" \/>\n&/' -i $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/package.xml
done # remove the installer and package end tags
sed -e '/^\t<\/install>/d' -i $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/package.xml
# ========================================================================================================== sed -e '/^<\/package>/d' -i $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/package.xml
# Replace the General Runtimes with the Msi version off GeosOne
# ========================================================================================================== # append the win 8.x install cmd via a cmd script that runs it
echo "<cmd path=\"_Install8X.bat\" >" >> $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/package.xml
if [ "$GENERALUPDATE" = "1" ]; then echo "<check type=\"os\" condition=\">\" value=\"6.2.9200.0\" />" >> $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/package.xml
rm -rf $INST_DIR/CLIENT_DATA/Install/Packages/BasicRuntimes echo "</cmd>" >> $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/package.xml
mv -v $INST_DIR/CLIENT_DATA/X86/Basic $INST_DIR/CLIENT_DATA/Install/Packages/BasicRuntimes/
fi # add back the install and package end tags
echo "</install>" >> $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/package.xml
# ========================================================================================================== echo "</package>" >> $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/package.xml
# integrate Adobe AIR
# ========================================================================================================== # create the needed install cmd script for win 8.x
echo "@echo off" >> $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/_Install8X.bat
mv -v $INST_DIR/CLIENT_DATA/X86/air_${AIRVERSION}_win.exe $INST_DIR/CLIENT_DATA/Install/Packages/Air/air3-9_win.exe echo "SET NETDIR=%~dp0" >> $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/_Install8X.bat
mv -v $INST_DIR/CLIENT_DATA/AdobeAIR_package.xml $INST_DIR/CLIENT_DATA/Install/Packages/Air/package.xml echo "cd %NETDIR%\.." >> $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/_Install8X.bat
mv -v $INST_DIR/CLIENT_DATA/AdobeAIR_7zip_config.txt $INST_DIR/CLIENT_DATA/Install/Packages/Air/7zip_config.txt echo "SET NETPARENTDIR=%cd%" >> $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/_Install8X.bat
sed 's/.*<\/settings>.*/\t<set component="AdobeAir" checked="0" \/>\n&/' -i $INST_DIR/CLIENT_DATA/Config/WinPKG.xml echo "echo Installing .NET Framwork $NETVER" >> $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/_Install8X.bat
sed "s!.\..\..\....!${AIRVERSION}!" -i $INST_DIR/CLIENT_DATA/Install/Packages/Air/package.xml echo "dism /online /enable-feature /featurename:NetFx3 /All /Source:%NETPARENTDIR%\WIN8.X /LimitAccess" >> $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/_Install8X.bat
echo "" >> $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/_Install8X.bat
# Adobe AIR Installer not working very good from network share so create a sfx file that places the installer into a temp and let it run locally done
7z a $INST_DIR/CLIENT_DATA/Install/Packages/Air/AdobeAIR.7z $INST_DIR/CLIENT_DATA/Install/Packages/Air/air3-9_win.exe
cat $INST_DIR/CLIENT_DATA/X86/7ZipSFX/7zsd_All.sfx $INST_DIR/CLIENT_DATA/Install/Packages/Air/7zip_config.txt $INST_DIR/CLIENT_DATA/Install/Packages/Air/AdobeAIR.7z > $INST_DIR/CLIENT_DATA/Install/Packages/Air/AdobeAIR.exe # ==========================================================================================================
rm $INST_DIR/CLIENT_DATA/Install/Packages/Air/air3-9_win.exe $INST_DIR/CLIENT_DATA/Install/Packages/Air/7zip_config.txt $INST_DIR/CLIENT_DATA/Install/Packages/Air/AdobeAIR.7z # Replace the General Runtimes with the Msi version off GeosOne
# ==========================================================================================================
# ==========================================================================================================
# Update Java if [ "$GENERALUPDATE" = "1" ]; then
# ========================================================================================================== rm -rf $INST_DIR/CLIENT_DATA/Install/Packages/BasicRuntimes
mv -v $INST_DIR/CLIENT_DATA/X86/Basic $INST_DIR/CLIENT_DATA/Install/Packages/BasicRuntimes/
if [ "$JREUPDATE" = "1" ]; then fi
rm -rf $INST_DIR/CLIENT_DATA/Install/Packages/JRE/*/jre.exe
mv $INST_DIR/CLIENT_DATA/X86/jre7u${JREUVERSION}-x86.exe $INST_DIR/CLIENT_DATA/Install/Packages/JRE/x86/jre.exe # ==========================================================================================================
mv $INST_DIR/CLIENT_DATA/X86/jre7u${JREUVERSION}-x64.exe $INST_DIR/CLIENT_DATA/Install/Packages/JRE/x64/jre.exe # integrate Adobe AIR
sed "s!Update ..!Update ${JREUVERSION}!" -i $INST_DIR/CLIENT_DATA/Install/Packages/JRE/package.xml # ==========================================================================================================
sed "s!.\..\....\...!${JREVERSION}!" -i $INST_DIR/CLIENT_DATA/Install/Packages/JRE/package.xml
fi mv -v $INST_DIR/CLIENT_DATA/X86/air_${AIRVERSION}_win.exe $INST_DIR/CLIENT_DATA/Install/Packages/Air/air3-9_win.exe
sed "s!/s!/s REBOOT=Suppress!" -i $INST_DIR/CLIENT_DATA/Install/Packages/JRE/package.xml mv -v $INST_DIR/CLIENT_DATA/AdobeAIR_package.xml $INST_DIR/CLIENT_DATA/Install/Packages/Air/package.xml
mv -v $INST_DIR/CLIENT_DATA/AdobeAIR_7zip_config.txt $INST_DIR/CLIENT_DATA/Install/Packages/Air/7zip_config.txt
# ========================================================================================================== sed 's/.*<\/settings>.*/\t<set component="AdobeAir" checked="0" \/>\n&/' -i $INST_DIR/CLIENT_DATA/Config/WinPKG.xml
# Update Flash
# ========================================================================================================== patch_package_xml $INST_DIR/CLIENT_DATA/Install/Packages/Air/package.xml "/package/check[@type='file']/@value" "${AIRVERSION}"
patch_package_xml $INST_DIR/CLIENT_DATA/Install/Packages/Air/package.xml "/package[@id='AdobeAir']/@name" "Adobe AIR v${AIRVERSION}"
if [ "$FLASHUPDATE" = "1" ]; then
rm -f $INST_DIR/CLIENT_DATA/Install/Packages/Flash/*.exe
mv $INST_DIR/CLIENT_DATA/X86/install_flash_player-${FLASHVERSION}.exe $INST_DIR/CLIENT_DATA/Install/Packages/Flash/install_flash_player.exe # Adobe AIR Installer not working very good from network share so create a sfx file that places the installer into a temp and let it run locally
mv $INST_DIR/CLIENT_DATA/X86/install_flash_player_ax-${FLASHVERSION}.exe $INST_DIR/CLIENT_DATA/Install/Packages/Flash/install_flash_player_ax.exe 7z a $INST_DIR/CLIENT_DATA/Install/Packages/Air/AdobeAIR.7z $INST_DIR/CLIENT_DATA/Install/Packages/Air/air3-9_win.exe
sed "s!..\..\....\....!${FLASHVERSION}!" -i $INST_DIR/CLIENT_DATA/Install/Packages/Flash/package.xml cat $INST_DIR/CLIENT_DATA/X86/7ZipSFX/7zsd_All.sfx $INST_DIR/CLIENT_DATA/Install/Packages/Air/7zip_config.txt $INST_DIR/CLIENT_DATA/Install/Packages/Air/AdobeAIR.7z > $INST_DIR/CLIENT_DATA/Install/Packages/Air/AdobeAIR.exe
sed "s!.._._..._...!${FLASHVERSION//./_}!" -i $INST_DIR/CLIENT_DATA/Install/Packages/Flash/package.xml rm $INST_DIR/CLIENT_DATA/Install/Packages/Air/air3-9_win.exe $INST_DIR/CLIENT_DATA/Install/Packages/Air/7zip_config.txt $INST_DIR/CLIENT_DATA/Install/Packages/Air/AdobeAIR.7z
fi
# sed force update on flash # ==========================================================================================================
sed -e "s!-install!-force -install!" -i $INST_DIR/CLIENT_DATA/Install/Packages/Flash/package.xml # Update Java
# ==========================================================================================================
# ==========================================================================================================
# Update Shockwave if [ "$JREUPDATE" = "1" ]; then
# ========================================================================================================== rm -rf $INST_DIR/CLIENT_DATA/Install/Packages/JRE/*/jre.exe
mv $INST_DIR/CLIENT_DATA/X86/jre7u${JREUVERSION}-x86.exe $INST_DIR/CLIENT_DATA/Install/Packages/JRE/x86/jre.exe
if [ "$SHOCKUPDATE" = "1" ]; then mv $INST_DIR/CLIENT_DATA/X86/jre7u${JREUVERSION}-x64.exe $INST_DIR/CLIENT_DATA/Install/Packages/JRE/x64/jre.exe
rm -f $INST_DIR/CLIENT_DATA/Install/Packages/Shockwave/*.msi patch_package_xml $INST_DIR/CLIENT_DATA/Install/Packages/JRE/package.xml "/package/variable[@name='NAME']/@value" "Java Runtime Environment 7 Update ${JREUVERSION}"
mv $INST_DIR/CLIENT_DATA/X86/sw_lic_full_installer-${SHOCKVERSION}.msi $INST_DIR/CLIENT_DATA/Install/Packages/Shockwave/sw_lic_full_installer.msi patch_package_xml $INST_DIR/CLIENT_DATA/Install/Packages/JRE/package.xml "/package/variable[@name='BUILD']/@value" "${JREVERSION}"
sed "s!..\..\..r...!${SHOCKVERSION}!" -i $INST_DIR/CLIENT_DATA/Install/Packages/Shockwave/package.xml fi
sed "s!v12!v${SHOCKVERSION//r/.}!" -i $INST_DIR/CLIENT_DATA/Install/Packages/Shockwave/package.xml sed "s!/s!/s REBOOT=Suppress!" -i $INST_DIR/CLIENT_DATA/Install/Packages/JRE/package.xml
fi
# ========================================================================================================== # ==========================================================================================================
# Update Silverlight # Update Flash
# ========================================================================================================== # ==========================================================================================================
if [ "$SILVERUPDATE" = "1" ]; then if [ "$FLASHUPDATE" = "1" ]; then
rm -f $INST_DIR/CLIENT_DATA/Install/Packages/Silverlight/*.exe rm -f $INST_DIR/CLIENT_DATA/Install/Packages/Flash/*.exe
mv $INST_DIR/CLIENT_DATA/X86/Silverlight-${SILVERVERSION}.exe $INST_DIR/CLIENT_DATA/Install/Packages/Silverlight/Silverlight.exe mv $INST_DIR/CLIENT_DATA/X86/install_flash_player-${FLASHVERSION}.exe $INST_DIR/CLIENT_DATA/Install/Packages/Flash/install_flash_player.exe
mv $INST_DIR/CLIENT_DATA/X86/Silverlight_x64-${SILVERVERSION}.exe $INST_DIR/CLIENT_DATA/Install/Packages/Silverlight/Silverlight_x64.exe mv $INST_DIR/CLIENT_DATA/X86/install_flash_player_ax-${FLASHAXVERSION}.exe $INST_DIR/CLIENT_DATA/Install/Packages/Flash/install_flash_player_ax.exe
sed "s!.\..\......\..!${SILVERVERSION}!" -i $INST_DIR/CLIENT_DATA/Install/Packages/Silverlight/package.xml patch_package_xml $INST_DIR/CLIENT_DATA/Install/Packages/Flash/package.xml "/package/variable[@name='VERSION']/@value" "${FLASHVERSION}"
sed "s!v5!v${SILVERVERSION}!" -i $INST_DIR/CLIENT_DATA/Install/Packages/Silverlight/package.xml patch_package_xml $INST_DIR/CLIENT_DATA/Install/Packages/Flash/package.xml "/package/variable[@name='VERSION_FILE']/@value" "${FLASHVERSION//./_}"
fi patch_package_xml $INST_DIR/CLIENT_DATA/Install/Packages/Flash/package.xml "/package/variable[@name='VERSION_FILE_AX']/@value" "${FLASHAXVERSION//./_}"
fi
# ========================================================================================================== # sed force update on flash
# Update J Sharp and add F Sharp sed -e "s!-install!-force -install!" -i $INST_DIR/CLIENT_DATA/Install/Packages/Flash/package.xml
# ==========================================================================================================
# ==========================================================================================================
if [ "$RICKTENDOJSHARPUPDATE" = "1" ]; then # Update Shockwave
rm -rf $INST_DIR/CLIENT_DATA/Install/Packages/jsredist # ==========================================================================================================
mv $INST_DIR/CLIENT_DATA/X86/Ricktendo/vjsharp $INST_DIR/CLIENT_DATA/Install/Packages/jsredist/
mv -v $INST_DIR/CLIENT_DATA/Ricktendo_JS_package.xml $INST_DIR/CLIENT_DATA/Install/Packages/jsredist/package.xml sed 's!<install>!<install>' -i $INST_DIR/CLIENT_DATA/Install/Packages/Shockwave/package.xml
else sed 's/.*<install>.*/\t<variable name="VERSION_FILE" value="1204144" \/>\n&/' -i $INST_DIR/CLIENT_DATA/Install/Packages/Shockwave/package.xml
rm $INST_DIR/CLIENT_DATA/Ricktendo_JS_package.xml sed "s!SwHelper_.*\.exe!SwHelper_%VERSION_FILE%.exe!" -i $INST_DIR/CLIENT_DATA/Install/Packages/Shockwave/package.xml
fi
if [ "$SHOCKUPDATE" = "1" ]; then
mv $INST_DIR/CLIENT_DATA/X86/Ricktendo/fsharp $INST_DIR/CLIENT_DATA/Install/Packages/fsredist/ rm -f $INST_DIR/CLIENT_DATA/Install/Packages/Shockwave/*.msi
mv -v $INST_DIR/CLIENT_DATA/Ricktendo_FS_package.xml $INST_DIR/CLIENT_DATA/Install/Packages/fsredist/package.xml mv $INST_DIR/CLIENT_DATA/X86/sw_lic_full_installer-${SHOCKVERSION}.msi $INST_DIR/CLIENT_DATA/Install/Packages/Shockwave/sw_lic_full_installer.msi
sed 's/.*<\/settings>.*/\t<set component="msfsharp" checked="0" \/>\n&/' -i $INST_DIR/CLIENT_DATA/Config/WinPKG.xml patch_package_xml $INST_DIR/CLIENT_DATA/Install/Packages/Shockwave/package.xml "/package/variable[@name='VERSION_FILE']/@value" "${SHOCKVERSION//./}"
patch_package_xml $INST_DIR/CLIENT_DATA/Install/Packages/Shockwave/package.xml "/package[@id='AdobeShock']/@name" "Adobe Shockwave Player v${SHOCKVERSION}"
fi
# ==========================================================================================================
# Update .NET 4.0 & 4.5 with Ricktendo
# ========================================================================================================== # ==========================================================================================================
# Update Silverlight
if [ "$RICKTENDONET40UPDATE" = "1" ]; then # ==========================================================================================================
rm -rf $INST_DIR/CLIENT_DATA/Install/NET/4.0/*
7z x -o$INST_DIR/CLIENT_DATA/Install/NET/4.0 $INST_DIR/CLIENT_DATA/X86/${DL_FILE[19]} if [ "$SILVERUPDATE" = "1" ]; then
#7z x -y -o$INST_DIR/CLIENT_DATA/Install/NET/4.0 $INST_DIR/CLIENT_DATA/X86/${DL_FILE[20]} rm -f $INST_DIR/CLIENT_DATA/Install/Packages/Silverlight/*.exe
mv -v $INST_DIR/CLIENT_DATA/Ricktendo_NET40_package.xml $INST_DIR/CLIENT_DATA/Install/NET/4.0/package.xml mv $INST_DIR/CLIENT_DATA/X86/Silverlight-${SILVERVERSION}.exe $INST_DIR/CLIENT_DATA/Install/Packages/Silverlight/Silverlight.exe
else mv $INST_DIR/CLIENT_DATA/X86/Silverlight_x64-${SILVERVERSION}.exe $INST_DIR/CLIENT_DATA/Install/Packages/Silverlight/Silverlight_x64.exe
rm $INST_DIR/CLIENT_DATA/Ricktendo_NET40_package.xml patch_package_xml $INST_DIR/CLIENT_DATA/Install/Packages/Silverlight/package.xml "/package/variable[@name='NAME']/@value" "Microsoft Silverlight v${SILVERVERSION}"
fi patch_package_xml $INST_DIR/CLIENT_DATA/Install/Packages/Silverlight/package.xml "/package/variable[@name='VERSION']/@value" "${SILVERVERSION}"
fi
if [ "$RICKTENDONET45UPDATE" = "1" ]; then
rm -rf $INST_DIR/CLIENT_DATA/Install/NET/4.5/* # ==========================================================================================================
7z x -o$INST_DIR/CLIENT_DATA/Install/NET/4.5 $INST_DIR/CLIENT_DATA/X86/${DL_FILE[21]} # Update J Sharp and add F Sharp
#7z x -y -o$INST_DIR/CLIENT_DATA/Install/NET/4.5 $INST_DIR/CLIENT_DATA/X86/${DL_FILE[22]} # ==========================================================================================================
mv -v $INST_DIR/CLIENT_DATA/Ricktendo_NET45_package.xml $INST_DIR/CLIENT_DATA/Install/NET/4.5/package.xml
else if [ "$RICKTENDOJSHARPUPDATE" = "1" ]; then
rm $INST_DIR/CLIENT_DATA/Ricktendo_NET45_package.xml rm -rf $INST_DIR/CLIENT_DATA/Install/Packages/jsredist
fi mv $INST_DIR/CLIENT_DATA/X86/Ricktendo/vjsharp $INST_DIR/CLIENT_DATA/Install/Packages/jsredist/
mv -v $INST_DIR/CLIENT_DATA/Ricktendo_JS_package.xml $INST_DIR/CLIENT_DATA/Install/Packages/jsredist/package.xml
# ========================================================================================================== else
# Update MSVC rm $INST_DIR/CLIENT_DATA/Ricktendo_JS_package.xml
# ========================================================================================================== fi
if [ "$MSVCUPDATE" = "1" ]; then mv $INST_DIR/CLIENT_DATA/X86/Ricktendo/fsharp $INST_DIR/CLIENT_DATA/Install/Packages/fsredist/
rm -rf $INST_DIR/CLIENT_DATA/Install/Packages/MSVC mv -v $INST_DIR/CLIENT_DATA/Ricktendo_FS_package.xml $INST_DIR/CLIENT_DATA/Install/Packages/fsredist/package.xml
mv -v $INST_DIR/CLIENT_DATA/X86/MSVC $INST_DIR/CLIENT_DATA/Install/Packages/MSVC sed 's/.*<\/settings>.*/\t<set component="msfsharp" checked="0" \/>\n&/' -i $INST_DIR/CLIENT_DATA/Config/WinPKG.xml
fi
# ==========================================================================================================
# Update .NET 4.0 & 4.5 with Ricktendo
# ========================================================================================================== # ==========================================================================================================
# move the uninstallers in place (directory layout like the sereby package)
# ========================================================================================================== if [ "$RICKTENDONET40UPDATE" = "1" ]; then
rm -rf $INST_DIR/CLIENT_DATA/Install/NET/4.0/*
mv -v $INST_DIR/CLIENT_DATA/X86/JavaRa $INST_DIR/CLIENT_DATA/UnInstall/Packages/JRE 7z x -o$INST_DIR/CLIENT_DATA/Install/NET/4.0 $INST_DIR/CLIENT_DATA/X86/${DL_FILE[19]}
mv -v $INST_DIR/CLIENT_DATA/JavaUninstallScript.vbs $INST_DIR/CLIENT_DATA/UnInstall/Packages/JRE #7z x -y -o$INST_DIR/CLIENT_DATA/Install/NET/4.0 $INST_DIR/CLIENT_DATA/X86/${DL_FILE[20]}
mv -v $INST_DIR/CLIENT_DATA/CleanSilverlight.cmd $INST_DIR/CLIENT_DATA/UnInstall/Packages/Silverlight mv -v $INST_DIR/CLIENT_DATA/Ricktendo_NET40_package.xml $INST_DIR/CLIENT_DATA/Install/NET/4.0/package.xml
mv -v $INST_DIR/CLIENT_DATA/X86/dotnet $INST_DIR/CLIENT_DATA/UnInstall/NET else
mv -v $INST_DIR/CLIENT_DATA/X86/uninstall_flash_player-${FLASHVERSION}.exe $INST_DIR/CLIENT_DATA/UnInstall/Packages/Flash/uninstall_flash_player.exe rm $INST_DIR/CLIENT_DATA/Ricktendo_NET40_package.xml
mv -v $INST_DIR/CLIENT_DATA/X86/uninstall_shock_player-${SHOCKVERSION}.exe $INST_DIR/CLIENT_DATA/UnInstall/Packages/Shockwave/uninstall_shock_player.exe fi
# ========================================================================================================== if [ "$RICKTENDONET45UPDATE" = "1" ]; then
# move the opsi wrapper to the right dir (close the error window if nothing needs to be done) rm -rf $INST_DIR/CLIENT_DATA/Install/NET/4.5/*
# ========================================================================================================== 7z x -o$INST_DIR/CLIENT_DATA/Install/NET/4.5 $INST_DIR/CLIENT_DATA/X86/${DL_FILE[21]}
#7z x -y -o$INST_DIR/CLIENT_DATA/Install/NET/4.5 $INST_DIR/CLIENT_DATA/X86/${DL_FILE[22]}
mv -v $INST_DIR/CLIENT_DATA/opsi-WinPKG.exe $INST_DIR/CLIENT_DATA/Install/ mv -v $INST_DIR/CLIENT_DATA/Ricktendo_NET45_package.xml $INST_DIR/CLIENT_DATA/Install/NET/4.5/package.xml
else
# ========================================================================================================== rm $INST_DIR/CLIENT_DATA/Ricktendo_NET45_package.xml
# Correct linefeed in config fi
# ==========================================================================================================
# ==========================================================================================================
unix2dos $INST_DIR/CLIENT_DATA/Config/WinPKG.xml # Update MSVC
# ==========================================================================================================
# ==========================================================================================================
# Create a new sereby aio pack if [ "$MSVCUPDATE" = "1" ]; then
# ========================================================================================================== rm -rf $INST_DIR/CLIENT_DATA/Install/Packages/MSVC
mv -v $INST_DIR/CLIENT_DATA/X86/MSVC $INST_DIR/CLIENT_DATA/Install/Packages/MSVC
if [ "$CREATENEWSEREBY" = "1" ]; then fi
sed -e "s!\"0\"!\"1\"!g" $INST_DIR/CLIENT_DATA/Config/WinPKG.xml > $INST_DIR/CLIENT_DATA/X86/sereby/WinPKG.xml
7z a $INST_DIR/CLIENT_DATA/X86/sereby/svcpack/aio-runtimes.7z $INST_DIR/CLIENT_DATA/Install/*
mv -v $INST_DIR/CLIENT_DATA/AIO_7zip_config.txt $INST_DIR/CLIENT_DATA/X86/sereby/svcpack/7zip_config.txt # ==========================================================================================================
cat $INST_DIR/CLIENT_DATA/X86/7ZipSFX/7zsd_All.sfx $INST_DIR/CLIENT_DATA/X86/sereby/svcpack/7zip_config.txt $INST_DIR/CLIENT_DATA/X86/sereby/svcpack/aio-runtimes.7z > $INST_DIR/CLIENT_DATA/X86/sereby/svcpack/aio-runtimes.exe # move the uninstallers in place (directory layout like the sereby package)
rm $INST_DIR/CLIENT_DATA/X86/sereby/svcpack/7zip_config.txt $INST_DIR/CLIENT_DATA/X86/sereby/svcpack/aio-runtimes.7z # ==========================================================================================================
SVCDATE=`date +"%d.%m.%Y"`
write_svcpack_file $INST_DIR/CLIENT_DATA/X86/sereby/entries_AiORuntimes.ini "general" "version" "${VERSION}" mv -v $INST_DIR/CLIENT_DATA/X86/JavaRa $INST_DIR/CLIENT_DATA/UnInstall/Packages/JRE
write_svcpack_file $INST_DIR/CLIENT_DATA/X86/sereby/entries_AiORuntimes.ini "general" "builddate" "${SVCDATE}" mv -v $INST_DIR/CLIENT_DATA/JavaUninstallScript.vbs $INST_DIR/CLIENT_DATA/UnInstall/Packages/JRE
write_svcpack_file $INST_DIR/CLIENT_DATA/X86/sereby/entries_AiORuntimes.ini "general" "title" "Sereby's AiO Runtimes with Geos One's Mods" mv -v $INST_DIR/CLIENT_DATA/CleanSilverlight.cmd $INST_DIR/CLIENT_DATA/UnInstall/Packages/Silverlight
write_svcpack_file $INST_DIR/CLIENT_DATA/X86/sereby/entries_AiORuntimes.ini "general" "website" "http://opsi.disconnected-by-peer.at" mv -v $INST_DIR/CLIENT_DATA/X86/dotnet $INST_DIR/CLIENT_DATA/UnInstall/NET
unix2dos $INST_DIR/CLIENT_DATA/X86/sereby/entries_AiORuntimes.ini mv -v $INST_DIR/CLIENT_DATA/X86/uninstall_flash_player-${FLASHVERSION}.exe $INST_DIR/CLIENT_DATA/UnInstall/Packages/Flash/uninstall_flash_player.exe
mkdir -p $OPSI_REPOS_PRODUCT_DIR mv -v $INST_DIR/CLIENT_DATA/X86/uninstall_shock_player-${SHOCKVERSION}.exe $INST_DIR/CLIENT_DATA/UnInstall/Packages/Shockwave/uninstall_shock_player.exe
7z a $OPSI_REPOS_PRODUCT_DIR/$OPSI_REPOS_FILE_PATTERN.7z $INST_DIR/CLIENT_DATA/X86/sereby/*
fi # ==========================================================================================================
# move the opsi wrapper to the right dir (close the error window if nothing needs to be done)
# ========================================================================================================== # ==========================================================================================================
# correct sereby .net 3.5 for opsi use
# ========================================================================================================== mv -v $INST_DIR/CLIENT_DATA/opsi-WinPKG.exe $INST_DIR/CLIENT_DATA/Install/
# Serby and its hacks workaround (sereby pack wants to copy a file on install but thats not possible on a readonly device in opsi # ==========================================================================================================
# move the combined x86/x64 to a common name # Correct linefeed in config
mv $INST_DIR/CLIENT_DATA/Install/NET/3.5 $INST_DIR/CLIENT_DATA/Install/NET/35 # ==========================================================================================================
# recreate the new dir
mkdir -p $INST_DIR/CLIENT_DATA/Install/NET/3.5 unix2dos $INST_DIR/CLIENT_DATA/Config/WinPKG.xml
# move the common dir to the x86 name under the new dir
mv $INST_DIR/CLIENT_DATA/Install/NET/35 $INST_DIR/CLIENT_DATA/Install/NET/3.5/x86 # ==========================================================================================================
# remove the copy from the install.bat # Create a new sereby aio pack
sed -e '/^copy/d' -i $INST_DIR/CLIENT_DATA/Install/NET/3.5/x86/_Install.bat # ==========================================================================================================
# move the package.xml un dir up
mv $INST_DIR/CLIENT_DATA/Install/NET/3.5/x86/package.xml $INST_DIR/CLIENT_DATA/Install/NET/3.5 if [ "$CREATENEWSEREBY" = "1" ]; then
# now link copy the x86 dir to x64 sed -e "s!\"0\"!\"1\"!g" $INST_DIR/CLIENT_DATA/Config/WinPKG.xml > $INST_DIR/CLIENT_DATA/X86/sereby/WinPKG.xml
cp -al $INST_DIR/CLIENT_DATA/Install/NET/3.5/x86 $INST_DIR/CLIENT_DATA/Install/NET/3.5/x64 7z a $INST_DIR/CLIENT_DATA/X86/sereby/svcpack/aio-runtimes.7z $INST_DIR/CLIENT_DATA/Install/*
# do the copy for x86 (seded away erlyer) mv -v $INST_DIR/CLIENT_DATA/AIO_7zip_config.txt $INST_DIR/CLIENT_DATA/X86/sereby/svcpack/7zip_config.txt
mv $INST_DIR/CLIENT_DATA/Install/NET/3.5/x86/vs_setup_x86.msi $INST_DIR/CLIENT_DATA/Install/NET/3.5/x86/vs_setup.msi cat $INST_DIR/CLIENT_DATA/X86/7ZipSFX/7zsd_All.sfx $INST_DIR/CLIENT_DATA/X86/sereby/svcpack/7zip_config.txt $INST_DIR/CLIENT_DATA/X86/sereby/svcpack/aio-runtimes.7z > $INST_DIR/CLIENT_DATA/X86/sereby/svcpack/aio-runtimes.exe
mv $INST_DIR/CLIENT_DATA/Install/NET/3.5/x86/setup_x86.sdb $INST_DIR/CLIENT_DATA/Install/NET/3.5/x86/setup.sdb rm $INST_DIR/CLIENT_DATA/X86/sereby/svcpack/7zip_config.txt $INST_DIR/CLIENT_DATA/X86/sereby/svcpack/aio-runtimes.7z
# do the copy for x64 (seded away erlyer) SVCDATE=`date +"%d.%m.%Y"`
mv $INST_DIR/CLIENT_DATA/Install/NET/3.5/x64/vs_setup_x64.msi $INST_DIR/CLIENT_DATA/Install/NET/3.5/x64/vs_setup.msi write_svcpack_file $INST_DIR/CLIENT_DATA/X86/sereby/entries_AiORuntimes.ini "general" "version" "${VERSION}"
mv $INST_DIR/CLIENT_DATA/Install/NET/3.5/x64/setup_x64.sdb $INST_DIR/CLIENT_DATA/Install/NET/3.5/x64/setup.sdb write_svcpack_file $INST_DIR/CLIENT_DATA/X86/sereby/entries_AiORuntimes.ini "general" "builddate" "${SVCDATE}"
# create a new install.bat that calls the right setup from the right dir write_svcpack_file $INST_DIR/CLIENT_DATA/X86/sereby/entries_AiORuntimes.ini "general" "title" "Sereby's AiO Runtimes with Geos One's Mods"
echo "@echo off" >> $INST_DIR/CLIENT_DATA/Install/NET/3.5/_Install.bat write_svcpack_file $INST_DIR/CLIENT_DATA/X86/sereby/entries_AiORuntimes.ini "general" "website" "http://opsi.disconnected-by-peer.at"
echo "set arch=%1" >> $INST_DIR/CLIENT_DATA/Install/NET/3.5/_Install.bat unix2dos $INST_DIR/CLIENT_DATA/X86/sereby/entries_AiORuntimes.ini
echo "call %~dp0\%arch%\_Install.bat" >> $INST_DIR/CLIENT_DATA/Install/NET/3.5/_Install.bat mkdir -p $OPSI_REPOS_PRODUCT_DIR
echo "" >> $INST_DIR/CLIENT_DATA/Install/NET/3.5/_Install.bat 7z a $OPSI_REPOS_PRODUCT_DIR/$OPSI_REPOS_FILE_PATTERN.7z $INST_DIR/CLIENT_DATA/X86/sereby/*
fi
# ==========================================================================================================
# Disable Java Update check # ==========================================================================================================
# ========================================================================================================== # correct sereby .net 3.5 for opsi use
# ==========================================================================================================
echo "@echo off" >> $INST_DIR/CLIENT_DATA/Install/Packages/JRE/disable.bat
echo "if exist \"%PROGRAMFILES%\Java\jre7\bin\jqs.exe\" \"%PROGRAMFILES%\Java\jre7\bin\jqs.exe\" -unregister" >> $INST_DIR/CLIENT_DATA/Install/Packages/JRE/disable.bat # Serby and its hacks workaround (sereby pack wants to copy a file on install but thats not possible on a readonly device in opsi
echo "if exist \"%PROGRAMFILES(x86)%\Java\jre7\bin\jqs.exe\" \"%PROGRAMFILES(x86)%\Java\jre7\bin\jqs.exe\" -unregister" >> $INST_DIR/CLIENT_DATA/Install/Packages/JRE/disable.bat # move the combined x86/x64 to a common name
# echo "REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v SunJavaUpdateSched /f" >> $INST_DIR/CLIENT_DATA/Install/Packages/JRE/disable.bat mv $INST_DIR/CLIENT_DATA/Install/NET/3.5 $INST_DIR/CLIENT_DATA/Install/NET/35
echo "" >> $INST_DIR/CLIENT_DATA/Install/Packages/JRE/disable.bat # recreate the new dir
sed 's/.*\t<\/install>.*/\t\t<cmd path="disable.bat" name="Disable Java Update Check " \/>\n&/' -i $INST_DIR/CLIENT_DATA/Install/Packages/JRE/package.xml mkdir -p $INST_DIR/CLIENT_DATA/Install/NET/3.5
# move the common dir to the x86 name under the new dir
# ========================================================================================================== mv $INST_DIR/CLIENT_DATA/Install/NET/35 $INST_DIR/CLIENT_DATA/Install/NET/3.5/x86
# Disable Flash Update Check # remove the copy from the install.bat
# ========================================================================================================== sed -e '/^copy/d' -i $INST_DIR/CLIENT_DATA/Install/NET/3.5/x86/_Install.bat
# move the package.xml un dir up
mv -v $INST_DIR/CLIENT_DATA/AdobeFlash_mms.cfg $INST_DIR/CLIENT_DATA/Install/Packages/Flash/mms.cfg mv $INST_DIR/CLIENT_DATA/Install/NET/3.5/x86/package.xml $INST_DIR/CLIENT_DATA/Install/NET/3.5
sed 's/.*\t<\/install>.*/\t\t<cmd path="disable32.bat" name="Disable Flash Update Check x86" >\n<check type="file" condition="notexist" path="%Windir%\\system32\\Macromed\\Flash\\NPSWF32_%VERSION_FILE%.dll" \/>\n<\/cmd>\n&/' -i $INST_DIR/CLIENT_DATA/Install/Packages/Flash/package.xml # now link copy the x86 dir to x64
sed 's/.*\t<\/install>.*/\t\t<cmd path="disable64.bat" name="Disable Flash Update Check x64" arch="x64" \/>\n<check type="file" condition="notexist" path="%Windir%\\SysWOW64\\Macromed\\Flash\\NPSWF32_%VERSION_FILE%.dll" arch="x64" \/>\n<\/cmd>\n&/' -i $INST_DIR/CLIENT_DATA/Install/Packages/Flash/package.xml cp -al $INST_DIR/CLIENT_DATA/Install/NET/3.5/x86 $INST_DIR/CLIENT_DATA/Install/NET/3.5/x64
echo "@echo off" >> $INST_DIR/CLIENT_DATA/Install/Packages/Flash/disable32.bat # do the copy for x86 (seded away erlyer)
echo "copy /y /v \"%~dp0mms.cfg\" \"%WINDIR%\system32\Macromed\Flash\mms.cfg\"" >> $INST_DIR/CLIENT_DATA/Install/Packages/Flash/disable32.bat mv $INST_DIR/CLIENT_DATA/Install/NET/3.5/x86/vs_setup_x86.msi $INST_DIR/CLIENT_DATA/Install/NET/3.5/x86/vs_setup.msi
echo "" >> $INST_DIR/CLIENT_DATA/Install/Packages/Flash/disable32.bat mv $INST_DIR/CLIENT_DATA/Install/NET/3.5/x86/setup_x86.sdb $INST_DIR/CLIENT_DATA/Install/NET/3.5/x86/setup.sdb
echo "@echo off" >> $INST_DIR/CLIENT_DATA/Install/Packages/Flash/disable64.bat # do the copy for x64 (seded away erlyer)
echo "copy /y /v \"%~dp0mms.cfg\" \"%WINDIR%\SysWOW64\Macromed\Flash\mms.cfg\"" >> $INST_DIR/CLIENT_DATA/Install/Packages/Flash/disable64.bat mv $INST_DIR/CLIENT_DATA/Install/NET/3.5/x64/vs_setup_x64.msi $INST_DIR/CLIENT_DATA/Install/NET/3.5/x64/vs_setup.msi
echo "" >> $INST_DIR/CLIENT_DATA/Install/Packages/Flash/disable64.bat mv $INST_DIR/CLIENT_DATA/Install/NET/3.5/x64/setup_x64.sdb $INST_DIR/CLIENT_DATA/Install/NET/3.5/x64/setup.sdb
# create a new install.bat that calls the right setup from the right dir
# ========================================================================================================== echo "@echo off" >> $INST_DIR/CLIENT_DATA/Install/NET/3.5/_Install.bat
# Posthooks: change linefeed, Set exec bit, delete temp echo "set arch=%1" >> $INST_DIR/CLIENT_DATA/Install/NET/3.5/_Install.bat
# ========================================================================================================== echo "call %~dp0\%arch%\_Install.bat" >> $INST_DIR/CLIENT_DATA/Install/NET/3.5/_Install.bat
echo "" >> $INST_DIR/CLIENT_DATA/Install/NET/3.5/_Install.bat
find $INST_DIR/CLIENT_DATA -name *.bat -print0 | xargs -0 unix2dos
find $INST_DIR/CLIENT_DATA -name package.xml -print0 | xargs -0 unix2dos # ==========================================================================================================
# Disable Java Update check
# set exec bit on executeables # ==========================================================================================================
find $INST_DIR/CLIENT_DATA/Install/ -type f -print0 | xargs -0 chmod +x
find $INST_DIR/CLIENT_DATA/UnInstall/ -type f -print0 | xargs -0 chmod +x echo "@echo off" >> $INST_DIR/CLIENT_DATA/Install/Packages/JRE/disable.bat
find $INST_DIR/CLIENT_DATA -type d -print0 | xargs -0 chmod 755 -v echo "if exist \"%PROGRAMFILES%\Java\jre7\bin\jqs.exe\" \"%PROGRAMFILES%\Java\jre7\bin\jqs.exe\" -unregister" >> $INST_DIR/CLIENT_DATA/Install/Packages/JRE/disable.bat
echo "if exist \"%PROGRAMFILES(x86)%\Java\jre7\bin\jqs.exe\" \"%PROGRAMFILES(x86)%\Java\jre7\bin\jqs.exe\" -unregister" >> $INST_DIR/CLIENT_DATA/Install/Packages/JRE/disable.bat
# delete the temp directory # echo "REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v SunJavaUpdateSched /f" >> $INST_DIR/CLIENT_DATA/Install/Packages/JRE/disable.bat
rm -rf $INST_DIR/CLIENT_DATA/X86 echo "" >> $INST_DIR/CLIENT_DATA/Install/Packages/JRE/disable.bat
sed 's/.*<\/install>.*/\t\t<cmd path="disable.bat" name="Disable Java Update Check " \/>\n&/' -i $INST_DIR/CLIENT_DATA/Install/Packages/JRE/package.xml
# ==========================================================================================================
# Disable Flash Update Check
# ==========================================================================================================
mv -v $INST_DIR/CLIENT_DATA/AdobeFlash_mms.cfg $INST_DIR/CLIENT_DATA/Install/Packages/Flash/mms.cfg
sed 's/.*<\/install>.*/\t\t<cmd path="disable32.bat" name="Disable Flash Update Check x86" >\n<check type="file" condition="notexist" path="%Windir%\\system32\\Macromed\\Flash\\NPSWF32_%VERSION_FILE%.dll" \/>\n<\/cmd>\n&/' -i $INST_DIR/CLIENT_DATA/Install/Packages/Flash/package.xml
sed 's/.*<\/install>.*/\t\t<cmd path="disable64.bat" name="Disable Flash Update Check x64" arch="x64" \/>\n<check type="file" condition="notexist" path="%Windir%\\SysWOW64\\Macromed\\Flash\\NPSWF32_%VERSION_FILE%.dll" arch="x64" \/>\n<\/cmd>\n&/' -i $INST_DIR/CLIENT_DATA/Install/Packages/Flash/package.xml
echo "@echo off" >> $INST_DIR/CLIENT_DATA/Install/Packages/Flash/disable32.bat
echo "copy /y /v \"%~dp0mms.cfg\" \"%WINDIR%\system32\Macromed\Flash\mms.cfg\"" >> $INST_DIR/CLIENT_DATA/Install/Packages/Flash/disable32.bat
echo "" >> $INST_DIR/CLIENT_DATA/Install/Packages/Flash/disable32.bat
echo "@echo off" >> $INST_DIR/CLIENT_DATA/Install/Packages/Flash/disable64.bat
echo "copy /y /v \"%~dp0mms.cfg\" \"%WINDIR%\SysWOW64\Macromed\Flash\mms.cfg\"" >> $INST_DIR/CLIENT_DATA/Install/Packages/Flash/disable64.bat
echo "" >> $INST_DIR/CLIENT_DATA/Install/Packages/Flash/disable64.bat
# ==========================================================================================================
# Posthooks: change linefeed, Set exec bit, delete temp
# ==========================================================================================================
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
find $INST_DIR/CLIENT_DATA/UnInstall/ -type f -print0 | xargs -0 chmod +x
find $INST_DIR/CLIENT_DATA -type d -print0 | xargs -0 chmod 755 -v
# delete the temp directory
rm -rf $INST_DIR/CLIENT_DATA/X86
} }

View File

@ -1 +0,0 @@
bda89a613f1769c8d915ae409173419100de15c5 /home/mario/.opsi-dist-cache/sereby.aio-2.0.7.3/X86/geos_one-general-runtimes_1.1.0.5-go1.7z

View File

@ -0,0 +1 @@
9f949b362456358516b50af2dad2f7717e61bdfb /home/mario/.opsi-dist-cache/sereby.aio-2.0.8.1/X86/geos_one-general-runtimes_1.1.0.7-go1.7z

View File

@ -1 +1 @@
00920629df01149e416d4d17067597ff29cc0baf /home/mario/.opsi-dist-cache/sereby.aio-2.0.7.3/X86/geos_one-microsoft-msvc_2013.09.17-go2.7z 00920629df01149e416d4d17067597ff29cc0baf /home/mario/.opsi-dist-cache/sereby.aio-2.0.8.1/X86/geos_one-microsoft-msvc_2013.09.17-go2.7z

View File

@ -1 +1 @@
ff2a6d5a2176582ba50a81d665636fb756f7e993 /home/mario/.opsi-dist-cache/sereby.aio-2.0.7.2/X86/install_flash_player-11.8.800.168.exe ff2a6d5a2176582ba50a81d665636fb756f7e993 /home/mario/.opsi-dist-cache/sereby.aio-2.0.8.1/X86/install_flash_player-11.8.800.168.exe

View File

@ -1 +0,0 @@
6e3d94ecc5d972994aaa0dfb7ada2263ddb29594 /home/mario/.opsi-dist-cache/sereby.aio-2.0.7.2/X86/install_flash_player_ax-11.8.800.168.exe

View File

@ -0,0 +1 @@
f9f3711ce7e03842247289ebe308e49a2a360823 /home/mario/.opsi-dist-cache/sereby.aio-2.0.8.1/X86/install_flash_player_ax-11.8.800.174.exe

View File

@ -1 +1 @@
85c7db9a1c432a119c90d1d1b203ccaaedae3444 /home/mario/.opsi-dist-cache/sereby.aio-2.0.7.2/X86/jre7u40-x64.exe 85c7db9a1c432a119c90d1d1b203ccaaedae3444 /home/mario/.opsi-dist-cache/sereby.aio-2.0.8.1/X86/jre7u40-x64.exe

View File

@ -1 +1 @@
c0429dca47c0f22bbcd33492f39117245bab515d /home/mario/.opsi-dist-cache/sereby.aio-2.0.7.2/X86/jre7u40-x86.exe c0429dca47c0f22bbcd33492f39117245bab515d /home/mario/.opsi-dist-cache/sereby.aio-2.0.8.1/X86/jre7u40-x86.exe

View File

@ -1 +1 @@
161cb479da71977a814298d39322dd0528805979 /home/mario/.opsi-dist-cache/sereby.aio-2.0.7.2/X86/sw_lic_full_installer-12.0.4r144.msi 161cb479da71977a814298d39322dd0528805979 /home/mario/.opsi-dist-cache/sereby.aio-2.0.8.1/X86/sw_lic_full_installer-12.0.4.144.msi

View File

@ -1 +1 @@
f1460b13252c91530d7f2104f1b1d6c2d4492efe /home/mario/.opsi-dist-cache/sereby.aio-2.0.7.2/X86/uninstall_flash_player-11.8.800.168.exe eb76a95d6c3e13b9682a9410f46d1cb288f00f57 /home/mario/.opsi-dist-cache/sereby.aio-2.0.8.1/X86/uninstall_flash_player-11.8.800.168.exe

View File

@ -1 +1 @@
4096c02f32cbfc479d491bbd5b4dc72dfd4f7b4d /home/mario/.opsi-dist-cache/sereby.aio-2.0.7.2/X86/uninstall_shock_player-12.0.4r144.exe 4096c02f32cbfc479d491bbd5b4dc72dfd4f7b4d /home/mario/.opsi-dist-cache/sereby.aio-2.0.8.1/X86/uninstall_shock_player-12.0.4.144.exe