|
|
|
@ -45,27 +45,49 @@ write_svcpack_file() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
patch_package_xml() {
|
|
|
|
|
local xml_file=$1
|
|
|
|
|
local xml_path=$2
|
|
|
|
|
local xml_value=$3
|
|
|
|
|
|
|
|
|
|
mv ${xml_file} ${xml_file}.old
|
|
|
|
|
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!>!>!g' -e 's!<!<!g' > ${xml_file}
|
|
|
|
|
rm ${xml_file}.old
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tidy_xml() {
|
|
|
|
|
local xml_file=$1
|
|
|
|
|
local xml_path=$2
|
|
|
|
|
local xml_value=$3
|
|
|
|
|
|
|
|
|
|
echo ${xml_file}
|
|
|
|
|
mv ${xml_file} ${xml_file}.old
|
|
|
|
|
cat ${xml_file}.old | tidy -utf8 -xml -w 255 -i -c -q -asxml | sed -e 's!>!>!g' -e 's!<!<!g' > ${xml_file}
|
|
|
|
|
rm ${xml_file}.old
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function create() {
|
|
|
|
|
echo "Create"
|
|
|
|
|
builder_create
|
|
|
|
|
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# create directories and extract the runtime packages
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# create directories and extract the runtime packages
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# sed everything to disabled
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# sed everything to disabled
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# extract .net 8.0 & 8.1 now so the unix2dos dont change the extracted files
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# extract .net 8.0 & 8.1 now so the unix2dos dont change the extracted files
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
|
|
|
|
|
mkdir -p $INST_DIR/CLIENT_DATA/X86/win8xdotnet35
|
|
|
|
|
7z x -o$INST_DIR/CLIENT_DATA/X86/win8xdotnet35 $INST_DIR/CLIENT_DATA/X86/${DL_FILE[6]}
|
|
|
|
@ -73,16 +95,16 @@ function create() {
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# extract Ricktendo AIO now so the unix2dos dont change the extracted files
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# extract Ricktendo AIO now so the unix2dos dont change the extracted files
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
|
|
|
|
|
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]}
|
|
|
|
|
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# Integrate .net for win 8.0 into winpkg
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# Integrate .net for win 8.0 into winpkg
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
|
|
|
|
|
for NETVER in 2.0 3.0 3.5
|
|
|
|
|
do
|
|
|
|
@ -114,83 +136,93 @@ function create() {
|
|
|
|
|
echo "" >> $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/_Install8X.bat
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# Replace the General Runtimes with the Msi version off GeosOne
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# Replace the General Runtimes with the Msi version off GeosOne
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
|
|
|
|
|
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/
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# integrate Adobe AIR
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# integrate Adobe AIR
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
|
|
|
|
|
mv -v $INST_DIR/CLIENT_DATA/X86/air_${AIRVERSION}_win.exe $INST_DIR/CLIENT_DATA/Install/Packages/Air/air3-9_win.exe
|
|
|
|
|
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
|
|
|
|
|
sed "s!.\..\..\....!${AIRVERSION}!" -i $INST_DIR/CLIENT_DATA/Install/Packages/Air/package.xml
|
|
|
|
|
|
|
|
|
|
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}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# Update Java
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# Update Java
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
patch_package_xml $INST_DIR/CLIENT_DATA/Install/Packages/JRE/package.xml "/package/variable[@name='NAME']/@value" "Java Runtime Environment 7 Update ${JREUVERSION}"
|
|
|
|
|
patch_package_xml $INST_DIR/CLIENT_DATA/Install/Packages/JRE/package.xml "/package/variable[@name='BUILD']/@value" "${JREVERSION}"
|
|
|
|
|
fi
|
|
|
|
|
sed "s!/s!/s REBOOT=Suppress!" -i $INST_DIR/CLIENT_DATA/Install/Packages/JRE/package.xml
|
|
|
|
|
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# Update Flash
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# Update Flash
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
mv $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
|
|
|
|
|
mv $INST_DIR/CLIENT_DATA/X86/install_flash_player_ax-${FLASHAXVERSION}.exe $INST_DIR/CLIENT_DATA/Install/Packages/Flash/install_flash_player_ax.exe
|
|
|
|
|
patch_package_xml $INST_DIR/CLIENT_DATA/Install/Packages/Flash/package.xml "/package/variable[@name='VERSION']/@value" "${FLASHVERSION}"
|
|
|
|
|
patch_package_xml $INST_DIR/CLIENT_DATA/Install/Packages/Flash/package.xml "/package/variable[@name='VERSION_FILE']/@value" "${FLASHVERSION//./_}"
|
|
|
|
|
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
|
|
|
|
|
sed -e "s!-install!-force -install!" -i $INST_DIR/CLIENT_DATA/Install/Packages/Flash/package.xml
|
|
|
|
|
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# Update Shockwave
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# Update Shockwave
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
|
|
|
|
|
sed 's!<install>!<install>' -i $INST_DIR/CLIENT_DATA/Install/Packages/Shockwave/package.xml
|
|
|
|
|
sed 's/.*<install>.*/\t<variable name="VERSION_FILE" value="1204144" \/>\n&/' -i $INST_DIR/CLIENT_DATA/Install/Packages/Shockwave/package.xml
|
|
|
|
|
sed "s!SwHelper_.*\.exe!SwHelper_%VERSION_FILE%.exe!" -i $INST_DIR/CLIENT_DATA/Install/Packages/Shockwave/package.xml
|
|
|
|
|
|
|
|
|
|
if [ "$SHOCKUPDATE" = "1" ]; then
|
|
|
|
|
rm -f $INST_DIR/CLIENT_DATA/Install/Packages/Shockwave/*.msi
|
|
|
|
|
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!..\..\..r...!${SHOCKVERSION}!" -i $INST_DIR/CLIENT_DATA/Install/Packages/Shockwave/package.xml
|
|
|
|
|
sed "s!v12!v${SHOCKVERSION//r/.}!" -i $INST_DIR/CLIENT_DATA/Install/Packages/Shockwave/package.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 Silverlight
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# Update Silverlight
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
|
|
|
|
|
if [ "$SILVERUPDATE" = "1" ]; then
|
|
|
|
|
rm -f $INST_DIR/CLIENT_DATA/Install/Packages/Silverlight/*.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/Silverlight_x64-${SILVERVERSION}.exe $INST_DIR/CLIENT_DATA/Install/Packages/Silverlight/Silverlight_x64.exe
|
|
|
|
|
sed "s!.\..\......\..!${SILVERVERSION}!" -i $INST_DIR/CLIENT_DATA/Install/Packages/Silverlight/package.xml
|
|
|
|
|
sed "s!v5!v${SILVERVERSION}!" -i $INST_DIR/CLIENT_DATA/Install/Packages/Silverlight/package.xml
|
|
|
|
|
patch_package_xml $INST_DIR/CLIENT_DATA/Install/Packages/Silverlight/package.xml "/package/variable[@name='NAME']/@value" "Microsoft Silverlight v${SILVERVERSION}"
|
|
|
|
|
patch_package_xml $INST_DIR/CLIENT_DATA/Install/Packages/Silverlight/package.xml "/package/variable[@name='VERSION']/@value" "${SILVERVERSION}"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# Update J Sharp and add F Sharp
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# Update J Sharp and add F Sharp
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
|
|
|
|
|
if [ "$RICKTENDOJSHARPUPDATE" = "1" ]; then
|
|
|
|
|
rm -rf $INST_DIR/CLIENT_DATA/Install/Packages/jsredist
|
|
|
|
@ -204,10 +236,9 @@ function create() {
|
|
|
|
|
mv -v $INST_DIR/CLIENT_DATA/Ricktendo_FS_package.xml $INST_DIR/CLIENT_DATA/Install/Packages/fsredist/package.xml
|
|
|
|
|
sed 's/.*<\/settings>.*/\t<set component="msfsharp" checked="0" \/>\n&/' -i $INST_DIR/CLIENT_DATA/Config/WinPKG.xml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# Update .NET 4.0 & 4.5 with Ricktendo
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# Update .NET 4.0 & 4.5 with Ricktendo
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
|
|
|
|
|
if [ "$RICKTENDONET40UPDATE" = "1" ]; then
|
|
|
|
|
rm -rf $INST_DIR/CLIENT_DATA/Install/NET/4.0/*
|
|
|
|
@ -227,9 +258,9 @@ function create() {
|
|
|
|
|
rm $INST_DIR/CLIENT_DATA/Ricktendo_NET45_package.xml
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# Update MSVC
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# Update MSVC
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
|
|
|
|
|
if [ "$MSVCUPDATE" = "1" ]; then
|
|
|
|
|
rm -rf $INST_DIR/CLIENT_DATA/Install/Packages/MSVC
|
|
|
|
@ -237,9 +268,9 @@ function create() {
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# move the uninstallers in place (directory layout like the sereby package)
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# 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
|
|
|
|
|
mv -v $INST_DIR/CLIENT_DATA/JavaUninstallScript.vbs $INST_DIR/CLIENT_DATA/UnInstall/Packages/JRE
|
|
|
|
@ -248,21 +279,21 @@ function create() {
|
|
|
|
|
mv -v $INST_DIR/CLIENT_DATA/X86/uninstall_flash_player-${FLASHVERSION}.exe $INST_DIR/CLIENT_DATA/UnInstall/Packages/Flash/uninstall_flash_player.exe
|
|
|
|
|
mv -v $INST_DIR/CLIENT_DATA/X86/uninstall_shock_player-${SHOCKVERSION}.exe $INST_DIR/CLIENT_DATA/UnInstall/Packages/Shockwave/uninstall_shock_player.exe
|
|
|
|
|
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# move the opsi wrapper to the right dir (close the error window if nothing needs to be done)
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# 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/
|
|
|
|
|
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# Correct linefeed in config
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# Correct linefeed in config
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
|
|
|
|
|
unix2dos $INST_DIR/CLIENT_DATA/Config/WinPKG.xml
|
|
|
|
|
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# Create a new sereby aio pack
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# Create a new sereby aio pack
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
|
|
|
|
|
if [ "$CREATENEWSEREBY" = "1" ]; then
|
|
|
|
|
sed -e "s!\"0\"!\"1\"!g" $INST_DIR/CLIENT_DATA/Config/WinPKG.xml > $INST_DIR/CLIENT_DATA/X86/sereby/WinPKG.xml
|
|
|
|
@ -280,9 +311,9 @@ function create() {
|
|
|
|
|
7z a $OPSI_REPOS_PRODUCT_DIR/$OPSI_REPOS_FILE_PATTERN.7z $INST_DIR/CLIENT_DATA/X86/sereby/*
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# correct sereby .net 3.5 for opsi use
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# correct sereby .net 3.5 for opsi use
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
@ -309,24 +340,24 @@ function create() {
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# Disable Java Update check
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# Disable Java Update check
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
|
# echo "REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v SunJavaUpdateSched /f" >> $INST_DIR/CLIENT_DATA/Install/Packages/JRE/disable.bat
|
|
|
|
|
echo "" >> $INST_DIR/CLIENT_DATA/Install/Packages/JRE/disable.bat
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# Disable Flash Update Check
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
|
|
|
|
|
mv -v $INST_DIR/CLIENT_DATA/AdobeFlash_mms.cfg $INST_DIR/CLIENT_DATA/Install/Packages/Flash/mms.cfg
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
@ -334,9 +365,9 @@ function create() {
|
|
|
|
|
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
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# ==========================================================================================================
|
|
|
|
|
# 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
|
|
|
|
|