Page 1 of 1

Office 07 Paket von diew.eu/

Posted: 27. Aug 2009, 17:44
by Tigris
Hi leute,

als erstes sollte ich sagen ich bin absoluter Empirum Neuling, und versuche gerade eine Schulung zu bekommen.

Zum eigentlichen:
Ich habe mir das Office 07 Paket von http://www.diew.eu/ heruntergeladen was Herr Niemann dort freundlicherweise zur Verfügung gestellt hat.

Mein Problem ist nun das in der Setup.inf dort in den [Requirements] folgendes abgefragt wird:

"DoesRegKeyExist ("HKLM,SYSTEM\CurrentControlSet\Services\Eventlog\System\Windows Installer 3.1,EventMessageFile") == "1"

Nun wollte ich das Paket auf einem Rechner testen und es lief nicht. Weil scheinbar der Windwos Installer 3.1 nicht vorhanden war.
Meine Frage nun....gibt es nicht irgendwie die möglichkeit dieses Update von Micrsoft mit in das Betriebsystemtemplate einzubinden ? oder ähnlich....

Hoffe mir kann da jemand helfen....

Gruß Tigris

Posted: 27. Aug 2009, 18:17
by Hendrik_Ambrosius
Generell erst mal:
Folgende Abprüfung wäre noch besser:

[Requirements]
FileVersion ("%system%\\msi.dll") >= "3.1"

Zur Frage:
Man kann den MSI Installer 3.1 z.B. als Patch via Empirum Patch Management ausrollen.
Oder ein Paket dafür mit dem PackageWizard (Unattended-Modus) bauen.

Posted: 27. Aug 2009, 20:21
by Tigris
Danke schonmal für die Antwort.

Habe nun versucht das Paket im Unattended-Modus zu packen. Beim Test des Pakets kommt aber folgender Fehler:

Installation vorzeitig abgebrochen! Es sind nicht alle Optionen korrekt übertragen worden! Bei bedarf müssen Sie die Installation wiederholen.

Hab mit den parameter /quiet /norestart gearbeitet.
Hab mal die ganze Setup.inf drangehängt. Vll kann mir ja jemand sagen was ich falsch mache....

Code: Select all

[SetupInfo]
Author                  =Administrator
CreationDate            =27.08.2009 20:14:26 
InventoryID             = 
Description             = 
Method                  = 
Tested on               = 
Dependencies            = 
Command line options    = 
Last Change             = 
Build                   = 

[VarDefInfo]
; <Variable>, <Type>, <Allow>

[Setup]
Version=10.5
ShowCaption=1
BlockInput=0

[Requirements]

[Application]
ProductName=MSI Installer 4.5
ProductNameShort=MSI Installer 4.5
Version=4.5
VersionDirSuffix=100
Revision=0
ServiceRelease=0
DeveloperName=Microsoft
DeveloperNameShort=
SetupName=%ProductName% %Version% %SetupWizard%
Text1="%ProductName% %Version%",         Arial,           30, , 00FFFF, 4,    , LEFT BOLD ITALIC
Text2="%DeveloperName%",                 Arial,           24, , 00FFFF, 4,    , LEFT BOLD ITALIC
Text8="%Company%",                       Arial,           18, , 00FFFF, 4,  10, RIGHT BOLD ITALIC
Text9="%InstallationFor% %WindowsUser%", Arial,           14, , 007F00, 4, -14, BOTTOM ITALIC LEFT
BackgroundColor=FF0000,000000
BackgroundPicture=
BackgroundSound=
Logo=
WizardPicture=
CopyDialogRect=0%, 0%, 100%, 100%, HCENTER VCENTER
PrecopyFiles=
UserKeyName=%DeveloperName%\%ProductName%
MachineKeyName=%DeveloperName%\%ProductName%\%Version%
UninstallKeyName=%DeveloperName% %ProductName% %Version%
UninstallDisplayName=%ProductName% %Version%
UninstallString=%ReinstallString% /U
ReinstallString="%CommonSetupDir%\Setup.exe" "%App%\%SetupInfDir%\Setup.inf"
ReinstallMode=1
HideUninstall=0
SrcDir=..
ApplicationDir=%ProgramFilesDir%\%ProductName%
SetupInfDir=Install
DataDir=%Personal%
DefaultUser=
DefaultCompany=
Prompts=
RunIfInstalled=
Readme=
Execute=
Expand=0
CopyExistingFiles=0
AskUninstallOld=1
AskLicence=0
AskInfo=0
AskFromCD=0
AskShared=1
AskMode=0
AskDir=0
AskDataDir=0
AskUser=0
UseUser=0
UseCompany=1
UseProductID=0
ProductIDLength=0
UseProductIDPerOption=0
UseCheckmarks=2
AutoIniFileMapping=0
ShellLinks=1
CommonShellLinks=0
CreateUnresolvableShellLinks=1
ShowShellFolder=
LicenceText=
InfoText=
RequirementsText=
UseStringSection=Strings:09
UseSysStringSection=SysStrings:09
PrintServer=
PrintEnvironment=
DateWarning=1
SizeWarning=1
Reboot=0
PreventExternalReboot=0
StartServicesOnReboot=0
CallTimeOut=3600
AbortAfterCallTimeOut=1
ReplaceRunOnce=0
DisableCancelButton=1
ShowEndMessage=1
EndMessage=%EndMessageDesc%
SetupExtDll=
SetupHookFunc=
ShowFullPath=0

[Admin]
AdminSetup=0
ApplicationDir=
AskDir=1
AskOptions=0
ClientSrcDir=Client
UninstallString=%ReinstallString% /U
ReinstallString="%Src%\..\..\..\..\User\Setup.exe" "%Src%\%SetupInfDir%\Setup.inf"

[Client]
ClientDir=
AskDir=0
AskOptions=1
Reboot=0
UseUninstallStringFromApplication=1
InstallAtLast=0

[Workstation]
AskOptions=0
AdminUninstallLink=0
AdminUninstallLinkName=%ProductName% %Version%
UserSetupLink=0
UserSetupLinkName=%ProductName% %Version%

[Strings:07]
Disk1=Diskette 1: Installationsdiskette
EndMessageDesc=Die Installation wurde erfolgreich abgeschlossen!
InstallationFor=Installation für:
InstallerDesc=Dienstprogramm zum Installieren einzelner Komponenten.
InstallerName=Installationsprogramm
ProductDesc=
SetupWizard=Installations-Assistent
Uninstallation=deinstallieren
ErrorText=Fehler
CallingText=beim Aufruf von

[Strings:09]
Disk1=Diskette 1: Installation disk
EndMessageDesc=Installation was completed successfully!
InstallationFor=Installation for:
InstallerDesc=Service program to install single components.
InstallerName=Setup program
ProductDesc=
SetupWizard=Installation Wizard
Uninstallation=Uninstallation
ErrorText=Error
CallingText=launching

[SysStrings:07]
Users=Benutzer

[SysStrings:09]
Users=Users

[Environment]
CommonSetupDir=%CommonFilesDir%\Setup%SetupBits%
V_MachineValuesPath=%SoftwareDepotServerName%\Values$\MachineValues\%DomainName%
V_UserValuesPath=%HKLM,"Software\matrix42\Software Depot","HomeServer"%\Values$\UserValues\%UserDomain%

; Maschinenabhängige Variablen
; machine dependent variables
;VM_<Variable>=%%%V_MachineValuesPath%\%ComputerName%.ini,%ComputerName%,<Variable>%%

; Userabhängige Variablen
; user dependent variables
;VU_<Variable>=%%%V_UserValuesPath%\%WindowsUser%.ini,%WindowsUser%,<Variable>%%

; !!! Setzen der entsprechenden ReplaceEnv Befehle für die Variablen im Abschnitt [Product] nicht vergessen!!!
; !!! Don't forget to set the appropriate ReplaceEnv instructions for the variables in the section [Product]!!!

[Prompts]

[Services]

[Processes]

[EventSources]

[Encryption]

[Disks]
1=%Disk1%

[UserKeyNames]

[Icons]
Product = %ProductNameShort%.ico, 0, 000000, ICON

[Options]
Installer = %InstallerName%, COPYALWAYS, Installer, "%InstallerDesc%"
Product   = %ProductName%,   COPYALWAYS, Product,   "%ProductDesc%"

[OptionDependencies]

[OptionGroups]

[Installer]
1:..\..\..\..\User\Setup.exe,      %CommonSetupDir%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:..\..\..\..\User\SetupDeu.chm,   %CommonSetupDir%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:..\..\..\..\User\SetupEnu.chm,   %CommonSetupDir%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:..\..\..\..\User\Mx42SynSem.dll, %System%,         OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:%SetupInfDir%\Setup.inf,                         , NORMAL,                                             0

[FileCheckMachine]
ReplaceEnv V_MachineValuesPath
If DoesFileExist ("%V_MachineValuesPath%\%ComputerName%.ini") == "0" Then "FileIsntThere" EndIf

[FileCheckClient]
ReplaceEnv V_UserValuesPath
If "%UserDomain%" <> "%ComputerName%" Then "CheckClientFile" EndIf

[CheckClientFile]
If DoesFileExist ("%V_UserValuesPath%\%WindowsUser%.ini") == "0" Then "FileIsntThere" EndIf

[FileIsntThere]
ErrorLogMsg <Error>
Abort

[Product]
;#FileCheckMachine, MACHINE
;#FileCheckClient, CLIENT

;ReplaceEnv <Variable>

#Set:Product
#Set:Installation, DONTDELETE
#Set:Deinstallation, DELETE
#Reg:OnUninstallProduct, DELETE
#Reg:Product
#Ini:Product
#Security:Product

[Set:Product]

[SET:Installation]
Cd ..
Call "WindowsXP-KB942288-v3-x86.exe" /quiet /norestart
If %ErrorLevel% <> "0" Then "SET:InstallationError" EndIf

[SET:Deinstallation]
If "WindowsXP-KB942288-v3-x86.exe" <> "" Then "SET:Deinstallation2" EndIf

[SET:Deinstallation2]
If %ErrorLevel% <> "0" Then "SET:DeInstallationError" EndIf
-Call "WindowsXP-KB942288-v3-x86.exe" 
-Cd ..

[Reg:OnUninstallProduct]

[Reg:Product]

[Ini:Product]

[Security:Product]

[Shell:Installer]

[Shell:Product]

[SET:InstallationError]
ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% WindowsXP-KB942288-v3-x86.exe
Abort

[SET:DeInstallationError]
-Abort
-ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% WindowsXP-KB942288-v3-x86.exe


Posted: 27. Aug 2009, 21:19
by Hendrik_Ambrosius
Der Fehler bezieht sich nur auf die EMail Notification, nicht den Eintrag.
Wir basteln mal wieder an unserem Mailserver ;-)

Bitte mal im SetupErrorLog des Clients gucken welcher ErrorLevel zurückgeliefert wird. Eventuell ist er nicht Null aber trotzdem OK.
Dann müssen wir eine ODER Bedingungen in das IF einbauen.

Posted: 27. Aug 2009, 23:06
by Trickser
Hi,

gugsu hier:
http://msdn.microsoft.com/en-us/library ... S.85).aspx

und hier:
http://www.diew.eu/2009/06/24/der-richt ... /#more-365

MSI Error Codes

Fehlercode 3010 sagt z.B. "Installation erfolgreich, reboot erforderlich."

Kannst ja mal ins Errorlog schauen, da müsste der Fehler lt. deinem Paket ja drinstehen.

P.S. Die DeInstallation wird so wie im Paket aber sicher nicht funktionieren ;-), aber da ist beim Installer auch besser so...

Gruß,

Micha.

Posted: 28. Aug 2009, 11:34
by Tigris
Date/Time : 28.08.2009 11:23:10
ProductName: MSI Installer
Version : 4.5
Revision : 0
SetupInf : \10.138.195.180Configurator$PackagesMicrosoftMSI Installer4.5InstallSetup.inf
------------
28.08.2009 11:23:11
Datumskonflikt!

Datei: SetupDeu.chm

Ziel:
Datum: 07.08.2008 12:01

Quelle:
Datum: 07.08.2008 12:01

Soll die Zieldatei überschrieben werden?
Ja
------------
28.08.2009 11:23:38
Datumskonflikt!

Datei: SetupEnu.chm

Ziel:
Datum: 07.08.2008 12:01

Quelle:
Datum: 07.08.2008 12:01

Soll die Zieldatei überschrieben werden?
Ja
------------
ErrorLogMsg: Fehler 3010 beim Aufruf von WindowsXP-KB942288-v3-x86.exe
------------
28.08.2009 11:24:00
Installation vorzeitig abgebrochen! Es sind nicht alle Optionen korrekt übertragen worden! Bei Bedarf müssen Sie die Installation wiederholen.
OK
------------


d.h jetzt ?

Posted: 28. Aug 2009, 11:40
by Hendrik_Ambrosius
Dann ist die Sache klar! Die IF-Bedingung muss so aussehen im Script:
If %ErrorLevel% <> "3010" & %ErrorLevel% <> "0" Then "SET:InstallationError" EndIf

Posted: 28. Aug 2009, 12:06
by Tigris
hat geklappt. Danke Hendrik.....

muss unbedingt ins Packaging Training. Und gerade noch ins Basic Training V12.....

Posted: 28. Aug 2009, 12:28
by Tigris
Hab ja jetzt den MSI Installer 4.5 installiert.

Sprich müsste die Abfrage im Office Paket auch anderes lauten oder? nur wie?

[Requirements]
DoesRegKeyExist ("HKLM,SYSTEM\CurrentControlSet\Services\Eventlog\System\Windows Installer 3.1,EventMessageFile") == "1"

Posted: 28. Aug 2009, 12:48
by philipp.kiessler
Wieso? Reicht doch, wenn 3.1 drauf ist. Das geht dann allerdings nur mit der Abfrage, die Hendrik vorgeschlagen hat:

Code: Select all

[Requirements]
FileVersion ("%system%\\msi.dll") >= "3.1"