add change exec bits & make jre and flash update optional
This commit is contained in:
parent
ac9954daee
commit
816784f869
@ -53,6 +53,7 @@ DL_WINST_NAME[7]=AdobeAirInstallExe
|
||||
|
||||
JREUVERSION="21"
|
||||
JREVERSION="7.0.210.11"
|
||||
JREUPDATE="0"
|
||||
|
||||
DL_FILE[8]="jre7u${JREUVERSION}-x86.exe"
|
||||
DL_SOURCE[8]="http://javadl.sun.com/webapps/download/AutoDL?BundleId=76860"
|
||||
@ -65,6 +66,7 @@ DL_ARCH[9]="X86"
|
||||
DL_WINST_NAME[9]=InstallJre64Exe
|
||||
|
||||
FLASHVERSION="11.7.700.224"
|
||||
FLASHUPDATE="0"
|
||||
|
||||
DL_FILE[10]="install_flash_player-${FLASHVERSION}.exe"
|
||||
DL_SOURCE[10]="http://fpdownload.macromedia.com/get/flashplayer/pdc/${FLASHVERSION}/install_flash_player.exe"
|
||||
|
@ -89,11 +89,13 @@ function create() {
|
||||
mv $INST_DIR/CLIENT_DATA/Install/Packages/JRE/_x64 $INST_DIR/CLIENT_DATA/Install/Packages/JRE/x64
|
||||
|
||||
# Update Java
|
||||
# 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
|
||||
# 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
|
||||
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
|
||||
mv $INST_DIR/CLIENT_DATA/X86/jre7u${JREUVERSION}-x64.exe $INST_DIR/CLIENT_DATA/Install/Packages/JRE/x64/jre.exe
|
||||
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
|
||||
|
||||
sed "s!/s!/s REBOOT=Suppress!" -i $INST_DIR/CLIENT_DATA/Install/Packages/JRE/package.xml
|
||||
echo "@echo off" >> $INST_DIR/CLIENT_DATA/Install/Packages/JRE/fixup.bat
|
||||
@ -103,11 +105,13 @@ function create() {
|
||||
sed 's/.*\t<\/install>.*/\t\t<cmd path="fixup.bat" \/>\n&/' -i $INST_DIR/CLIENT_DATA/Install/Packages/JRE/package.xml
|
||||
|
||||
# Update Flash
|
||||
# rm -f $INST_DIR/CLIENT_DATA/Install/Packages/Flash/*.exe
|
||||
# cp $INST_DIR/CLIENT_DATA/X86/install_flash_player-${FLASHVERSION}.exe $INST_DIR/CLIENT_DATA/Install/Packages/Flash/install_flash_player.exe
|
||||
# cp $INST_DIR/CLIENT_DATA/X86/install_flash_player_ax-${FLASHVERSION}.exe $INST_DIR/CLIENT_DATA/Install/Packages/Flash/install_flash_player_ax.exe
|
||||
# sed "s!..\..\....\....!${FLASHVERSION}!" -i $INST_DIR/CLIENT_DATA/Install/Packages/Flash/package.xml
|
||||
# sed "s!.._._..._...!${FLASHVERSION//./_}!" -i $INST_DIR/CLIENT_DATA/Install/Packages/Flash/package.xml
|
||||
if [ "$FLASHUPDATE" = "1" ]; then
|
||||
rm -f $INST_DIR/CLIENT_DATA/Install/Packages/Flash/*.exe
|
||||
cp $INST_DIR/CLIENT_DATA/X86/install_flash_player-${FLASHVERSION}.exe $INST_DIR/CLIENT_DATA/Install/Packages/Flash/install_flash_player.exe
|
||||
cp $INST_DIR/CLIENT_DATA/X86/install_flash_player_ax-${FLASHVERSION}.exe $INST_DIR/CLIENT_DATA/Install/Packages/Flash/install_flash_player_ax.exe
|
||||
sed "s!..\..\....\....!${FLASHVERSION}!" -i $INST_DIR/CLIENT_DATA/Install/Packages/Flash/package.xml
|
||||
sed "s!.._._..._...!${FLASHVERSION//./_}!" -i $INST_DIR/CLIENT_DATA/Install/Packages/Flash/package.xml
|
||||
fi
|
||||
|
||||
# move the uninstallers in place (directory layout like the sereby package)
|
||||
mv -v $INST_DIR/CLIENT_DATA/X86/JavaRa $INST_DIR/CLIENT_DATA/UnInstall/Packages/JRE
|
||||
@ -122,6 +126,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/
|
||||
|
||||
# set exec bit on executeables
|
||||
find $INST_DIR/CLIENT_DATA -type f -iname "*.exe" -o -iname "*.bat" -o -iname "*.cmd" -o -iname "*.msi" -o -iname "*.msp" | xargs chmod +x -v
|
||||
|
||||
# delete the temp directory
|
||||
rm -rf $INST_DIR/CLIENT_DATA/X86
|
||||
}
|
Loading…
Reference in New Issue
Block a user