Seite 2 von 5

Re: NET-Framework als .opsi Paket

Verfasst: 17 Nov 2009, 11:46
von heuft_kdi
Komisch, bei mir funktioniert die Installation von MSXML6 ganz einfach so:

Code: Alles auswählen

[winbatch_msxml6_install]
msiexec /qb!- /i "$fx30$\x86\msxml6.msi" /l* %Systemroot%\msxml6.log
Was mein .NET Packet angeht, habe ich da viel Arbeit reingesteckt und alles soweit als möglich entpackt, um zeit gut zu machen. Der Größte Gag war dann, das ich 1.1 nach dem 3er .NET installieren musste (Wenn ich die Original MS Setup Routine verwendet habe, war das nicht notwendig). Aber bei uns funktioniert es unter XP inzwischen ganz gut.

Meine Verschiedenen Aufrufe sind aber auch ziemlich komplex:

Code: Alles auswählen

[winbatch_dotnet11_install]
msiexec /qb!- /i "$basedir$\main_files\dotNet11\netfx.msi" /passive /norestart REBOOT=ReallySuppress

[winbatch_dotnet20sp2_install]
msiexec /qb!- /i "$fx20$\netfx20a_x86.msi" VSEXTUI=1 REBOOT=ReallySuppress PATCH=$fx20$\WinForms.msp;$fx20$\ASPNET.msp;$fx20$\NetFX_Other.msp;$fx20$\NetFX_Core.msp;$fx20$\DW.msp;$fx20$\PreXP.msp;$fx20$\CRT.msp;$fx20$\NetFX_CA.msp;$fx20$\CLR.msp CLIENTUILEVEL=3 MSICLIENTUSESEXTERNALUI=1 CURRENTDIRECTORY=%ScriptPath%\main_files\dotnet35sp1_kompl /l* %Systemroot%\netfx20_x86.log

[winbatch_dotnet30sp2_install]
msiexec /qb!- /i "$fx30$\netfx30a_x86.msi" VSEXTUI=1 REBOOT=ReallySuppress PATCH=$fx30$\WPF2_32.msp;$fx30$\WCF.msp;$fx30$\WPF1.msp;$fx30$\WF.msp;$fx30$\WPF_Other.msp;$fx30$\WF_32.msp;$fx30$\WPF2.msp;$fx30$\XPS.msp;$fx30$\WCS.msp;$fx30$\WPF_Other_32.msp CLIENTUILEVEL=3 MSICLIENTUSESEXTERNALUI=1 CURRENTDIRECTORY=%ScriptPath%\main_files\dotnet35sp1_kompl /l* %Systemroot%\netfx30_x86.log

[winbatch_dotnet35sp1_install]
msiexec /qb!- /i "$fx35$\vs_setup.msi" VSEXTUI=1 USING_EXUIH=1 REBOOT=ReallySuppress CURRENTDIRECTORY=%ScriptPath%\main_files\dotnet35sp1_kompl /l* %Systemroot%\netfx35_x86.log

[winbatch_rgb9rast_install]
msiexec /qb!- /i "$fx30$\RGB9RAST_x86.msi" ADDLOCAL=ALL ALLUSERS=1 REBOOT=ReallySuppress /l* %Systemroot%\RGB9RAST_x86.log

[winbatch_msxml6_install]
msiexec /qb!- /i "$fx30$\x86\msxml6.msi" /l* %Systemroot%\msxml6.log

[winbatch_wic_install]
%ScriptPath%\main_files\dotNet35SP1_kompl\WIC_x86\update\update.exe /u /n /z /q

[winbatch_xpsep_install]
%ScriptPath%\main_files\dotNet35SP1_kompl\XPSEPSC_x86\update\update.exe /u /n /z /q

[winbatch_dotnet11_langpack_install]
msiexec /qb!- /i "$basedir$\main_files\dotNet11\langpack.msi" /passive /norestart REBOOT=ReallySuppress

[winbatch_dotnet20sp2_langpack_install]
msiexec /qb!- /i "$fx20_lang$\netfx20lpa_x86.msi" /update $fx20_lang$\ASPNET_DEU.msp;$fx20_lang$\CLR_DEU.msp;$fx20_lang$\NetFX20_CA_DEU.msp;$fx20_lang$\NetFX_Core_DEU.msp;$fx20_lang$\NetFX_Other_DEU.msp VSEXTUI=1 USING_EXUIH=1 REBOOT=ReallySuppress CURRENTDIRECTORY=%ScriptPath%\main_files\dotnet35sp1_kompl /l* %Systemroot%\netfx20_lang_x86.log

[winbatch_dotnet30sp2_langpack_install]
msiexec /qb!- /i "$fx30_lang$\netfx30lpa_x86.msi" /update $fx30_lang$\NetFX30_CA_DEU.msp;$fx30_lang$\WCF_DEU.msp;$fx30_lang$\XPS_DEU.msp;$fx30_lang$\WF_DEU.msp;$fx30_lang$\WPF1_DEU.msp;$fx30_lang$\WPF2_DEU.msp;$fx30_lang$\WPF_Other_DEU.msp ADDLOCAL=ALL ALLUSERS=1 VSEXTUI=1 USING_EXUIH=1 REBOOT=ReallySuppress CURRENTDIRECTORY=%ScriptPath%\main_files\dotnet35sp1_kompl /l* %Systemroot%\netfx30_lang_x86.log

[winbatch_dotnet35sp1_langpack_install]
msiexec /qb!- /i "$fx35_lang$\vs_setup.msi" VSEXTUI=1 USING_EXUIH=1 REBOOT=ReallySuppress /l* %Systemroot%\netfx35_lang_x86.log

[winbatch_xpsep_lang_install]
%ScriptPath%\main_files\dotNet35SP1_lang\XPSEPSCLANGPACK-x86\update\update.exe /u /n /z /q
Was hier jetzt noch fehlt, sind die Sicherheitsupdates. Die Habe ich natürlich in das Update Skript gepackt.

Außerdem fehlen hier die Aufrufabschnitte (Da ich immer mit IF Prüfe, ob der Part überhaupt ausgeführt werden muss, ist das auch ein ziemlich grooßer Punkt im Skript).

Re: NET-Framework als .opsi Paket

Verfasst: 17 Nov 2009, 12:15
von m.pfeiffer
baschtiii hat geschrieben: Hat es jemand geschafft NET-Framework als .opsi Paket zu erstellen ?
Hi,

ja für .Net 2.0.
Es ist 22,3 MB groß und für die Installation auf XP Rechnern gedacht.
Das Script enthält:

Code: Alles auswählen

; Copyright (c) uib umwelt informatik büro gmbh (www.uib.de)
; This sourcecode is owned by uib
; and published under the Terms of the General Public License.

[Initial]
Message=installiere Microsoft Net Framework 2.0...
StayOnTop=false

[Aktionen]
Winbatch_produkt_silent_install

[Winbatch_produkt_silent_install]
"%SCRIPTPATH%\Microsoft Net Framework 2.0 (dotnetfx).exe" /q:a /c:"install.exe /qb"
Fertig.

mfg

Re: NET-Framework als .opsi Paket

Verfasst: 17 Nov 2009, 12:27
von mr.quickly
@heuft_kdi

Besten Dank!

Die Option "/qb!-" scheint also den Fehler zu bestätigen. Dann brauche ich kein Autoit Script dafür mehr :-)

Re: NET-Framework als .opsi Paket

Verfasst: 17 Nov 2009, 15:09
von heuft_kdi
die Option /qb!- besagt eigentlich:
- Basis Fenster (nur Frtschritsbalken)
- Keine Fehlermeldungen
- Kein Abbrechenknopf (den versuche ich immer abzuschalten, da unsere User ansonsten den bestimmt zum beschleunigen gerne drücken würden).

Re: NET-Framework als .opsi Paket

Verfasst: 17 Nov 2009, 16:18
von mr.quickly
Dann ist es wohl das mit "Keine Fehlermeldungen".

Kein Abbrechenknopf sollte man wie Du ja schon schreibst tunlichst immer aktiveren, wenn vom Setup unterstützt.

Re: NET-Framework als .opsi Paket

Verfasst: 24 Nov 2009, 08:16
von mr.quickly
Zur Info:
Beim "Microsoft .NET Framework 3.0" musste ich dann noch den Parameter "ALLUSERS=2" ergänzen, sonst brach diese mit Error 2337 ab.
Das lag daran, dass ich das .NET Framework 1.1 davor installiert habe. Wenn ich erst das Microsoft .NET Framework 3.0 und dann das .NET Framework 1.1 installiere ist der Fehler weg.

Re: NET-Framework als .opsi Paket

Verfasst: 24 Nov 2009, 09:55
von heuft_kdi
Das kann ich so bestätigen.

Ich habe zwar nicht herausgefunden warum, aber wenn Man die .NET Packete Einzeln installiert, muss man 1.1 zum Schluss installieren. Keine Ahnung, was MS in seinen Installer anders macht (da geht das nämlich).

Re: NET-Framework als .opsi Paket

Verfasst: 24 Nov 2009, 14:12
von mr.quickly
Dieser Beitrag hier könnte noch interessant sein für den ein oder anderen:

http://www.winfuture-forum.de/lofiversi ... 32930.html

Er beschreibt wie man z.B. spätere Sicherheitsupdates mittels

Code: Alles auswählen

msiexec /p "xxx.msp" /a "xxx.msi" 
in bereits bestehende Installationspakete integriert. Habe damit folgende Updates direkt integriert:

NDP1.1sp1-KB953297-X86.exe
NDP20SP2-KB958481-x86.exe
NDP20SP2-KB974417-x86.exe
NDP30SP2-KB958483-x86.exe
NDP35SP1-KB958484-x86.exe

Super Sache dat :-)

Hier mein Opsi Installations-Script:

Code: Alles auswählen

[Initial]
Message=Installiere .Net Framework 1.1 (SP1), 2.0 (SP2), 3.0 (SP2) und 3.5 (SP1) ......
LogLevel=3
ExitOnError=false
ScriptErrorMessages=on
TraceMode=off
StayOnTop=false

DefVar $OS$
set $OS$ = GetNTVersion


[Aktionen]
ShowBitmap /3 "%scriptpath%\dotnetfx.png"


if not (HasMinimumSpace("%Systemdrive%","500MB"))
        LogError "Nicht genuegend Speicherplatz auf %Systemdrive%"
		isFatalError

else 	
	
	if ($OS$ = "Windows Vista")

		Message "Installation unter Windows 7 nicht nötig."
							
	else
						
		;pause "MSXML6_x86"
		WinBatchInstall_MSXML6_x86

		;pause "RGB9RAST_x86"
		WinBatchInstall_RGB9RAST_x86

		;pause "NETFX2.0_SP2"
		WinBatchInstall_NETFX2.0_SP2_x86

		;pause "NETFX3.0_SP2"
		WinBatchInstall_NETFX3.0_SP2_x86

		;pause "NETFX3.5_SP1"
		WinBatchInstall_NETFX3.5_SP1_x86
		
		;pause "NETFX1.1_SP1"
		WinBatchInstall_NETFX1.1_SP1_x86

	endif

endif


[WinBatchInstall_MSXML6_x86]
"%scriptpath%\MSXML6_x86\msxml6.msi" /qb!-

[WinBatchInstall_RGB9RAST_x86]
"%scriptpath%\RGB9RAST_x86\RGB9RAST_x86.msi" /qb! /norestart ALLUSERS=1

[WinBatchInstall_NETFX2.0_SP2_x86]
"%scriptpath%\NETFX20_x86\netfx20a_x86.msi" /qb! /norestart VSEXTUI=1

[WinBatchInstall_NETFX3.0_SP2_x86]
"%scriptpath%\NETFX30_x86\netfx30a_x86.msi" /qb! /norestart VSEXTUI=1 

[WinBatchInstall_NETFX3.5_SP1_x86]
"%scriptpath%\netfx35_x86\vs_setup.msi" /qb! /norestart VSEXTUI=1

[WinBatchInstall_NETFX1.1_SP1_x86]
"%scriptpath%\NETFX11_x86\netfx.msi" /qb! /norestart

Wer noch ein schönes Bild zu Installation sucht kann dieses hier verwenden (gefunden in den Weiten des Internet's) welches wohl das neue von .NetFramework 4.0 werden soll.
dotnetfx.png

Re: NET-Framework als .opsi Paket

Verfasst: 24 Nov 2009, 15:49
von rfrankow
wie man die dotnetfx (nf-1.1) baut steht ja da.

woher bkommt man die anderen files?
msxml6.msi
RGB9RAST_x86.msi
netfx20a_x86.msi
netfx30a_x86.msi
vs_setup.msi

in nf-3.5 hab ich die zwar gefunden, da meckert er aber bei der installation von netfx20a_x86.msi und netfx30a_x86.msi

Re: NET-Framework als .opsi Paket

Verfasst: 24 Nov 2009, 16:21
von mr.quickly
@rfrankow
Guckst Du hier: http://blog.project84.net/default,date,2008-03-10.aspx (Link aus Seite 1 dieses Posts)

Darin wird erklärt wie Du diese Dateien erzeugst.