From 367fdb0c38c16401c1443da3d7a32a1fffcf0dcc Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Sat, 27 Jul 2013 07:57:56 +0200 Subject: [PATCH] First round on integrationg dotnet for win8.0 into winpkg --- CLIENT_DATA/setup3264.ins | 26 -------------------------- builder-targets-cb.sh | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 26 deletions(-) diff --git a/CLIENT_DATA/setup3264.ins b/CLIENT_DATA/setup3264.ins index 2578213..d53c7c4 100644 --- a/CLIENT_DATA/setup3264.ins +++ b/CLIENT_DATA/setup3264.ins @@ -90,17 +90,6 @@ else Message "Installing " + $ProductId$ + " "+ $VERSION$ + "-" + $CREATOR_TAG$ + $RELEASE$ + " 32 Bit..." comment "Start setup program" ChangeDirectory "%SCRIPTPATH%" - if ( $MSVersion$ = "6.2" ) and not (FileExists("%Systemroot%\Microsoft.NET\Framework\v3.5\Microsoft.Build.Tasks.v3.5.dll")) and (($sereby_dotnet3.5$ = "install") or ($sereby_dotnet3.0$ = "install") or ($sereby_dotnet2.0$ = "install")) - comment "Install Netframework 2.0 - 3.5 for Windows 8" - if (FileExists("%ScriptPath%\Install\NET8\amd64_addinprocess32_b77a5c561934e089_6.2.9200.16384_none_d9d957a176ab19d8\addinprocess32.exe")) - Message "Install Netframework 2.0 - 3.5 for Windows 8" - Dosbatch_install_dotNet8 winst /SysNative - else - LogError "Not compatible without Netframework 3.5 for Windows 8" - isFatalError - endif - endif - Winbatch_install Sub_check_exitcode comment "Copy files" @@ -115,17 +104,6 @@ else Message "Installing " + $ProductId$ + " "+ $VERSION$ + "-" + $CREATOR_TAG$ + $RELEASE$ + " 64 Bit..." comment "Start setup program" ChangeDirectory "%SCRIPTPATH%" - if ( $MSVersion$ = "6.2" ) and not (FileExists("%Systemroot%\Microsoft.NET\Framework\v3.5\Microsoft.Build.Tasks.v3.5.dll")) and (($sereby_dotnet3.5$ = "install") or ($sereby_dotnet3.0$ = "install") or ($sereby_dotnet2.0$ = "install")) - comment "Install Netframework 2.0 - 3.5 for Windows 8" - if (FileExists("%ScriptPath%\Install\NET8\amd64_addinprocess32_b77a5c561934e089_6.2.9200.16384_none_d9d957a176ab19d8\addinprocess32.exe")) - Message "Install Netframework 2.0 - 3.5 for Windows 8" - Dosbatch_install_dotNet8 winst /SysNative - else - LogError "Not compatible without Netframework 3.5 for Windows 8" - isFatalError - endif - endif - Winbatch_install Sub_check_exitcode comment "Copy files" @@ -141,10 +119,6 @@ else endif -[Dosbatch_install_dotNet8] -@echo off -dism /online /enable-feature /featurename:NetFx3 /All /Source:%ScriptPath%\Install\NET\WIN8.0 /LimitAccess - [Winbatch_install] "%ScriptPath%\Install\opsi-WinPKG.exe" diff --git a/builder-targets-cb.sh b/builder-targets-cb.sh index bb18e99..a31a27f 100644 --- a/builder-targets-cb.sh +++ b/builder-targets-cb.sh @@ -73,6 +73,26 @@ function create() { 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 + # disable std .net installers on win8+ + for NETVER in 1.1 2.0 3.0 3.5 + do + sed 's/.*\t<\/install>.*/\t\t\n&/' -i $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/package.xml + done + + # Integrate .net for win8.0 into winpkg + for NETVER in 2.0 3.0 3.5 + do + sed -e '/^<\/package>/d' -i $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/package.xml + echo "" >> $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/package.xml + echo "" >> $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/package.xml + echo "" >> $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/package.xml + echo "=\" value=\"6.2.9200.0\" />" >> $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/package.xml + echo "" >> $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/package.xml + echo "" >> $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/package.xml + echo "@echo off" >> $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/_Install80.bat + echo "dism /online /enable-feature /featurename:NetFx3 /All /Source:%~dp0\..\WIN8.0 /LimitAccess" >> $INST_DIR/CLIENT_DATA/Install/NET/$NETVER/_Install80.bat + done + # sed everything to disabled sed -e "s!\"1\"!\"0\"!g" -e "s!maximized=\"0\"!maximized=\"1\"!" $INST_DIR/CLIENT_DATA/X86/WinPKG.xml > $INST_DIR/CLIENT_DATA/Config/WinPKG.xml