aktuell habe ich zwei Pakete, bei denen die Installation nicht abgeschlossen wird.
Snagit 24.3.2 (25.0.0 auch)
Cisco Jabber 15.0.1
Bei beiden Paketen sehe ich, dass die Installation bereits abgeschlossen ist und die Desktopsymbole (noch) vorhanden sind. Über den Task-Manager beende ich dann nach ca. 30 Minuten die setup.exe. Im Anschluss läuft eine Softmigration der Pakete:
Date/Time : 17.02.2025 11:13:10
ProductName: Cisco Jabber
Version : 15.0.1.59513
Revision : 0
SetupInf : C:\EmpirumAgent\Packages\Cisco Systems\Cisco Jabber\15.0.1.59513\neoInstall\Setup.inf
------------
17.02.2025 11:13:10, Section [Set:AppExistMsg], Line 1:
ErrorLogMsg: Softmigration: Application is already present. Installation is not executed. Only package files are copied and package is registered. Exit!
bzw.
Date/Time : 14.02.2025 16:02:13
ProductName: SnagIt
Version : 25.0.0
Revision : 0
SetupInf : C:\EmpirumAgent\Packages\TechSmith\SnagIt\25.0.0\neoInstall\Setup.inf
------------
14.02.2025 16:02:13, Section [Set:AppExistMsg], Line 1:
ErrorLogMsg: Softmigration: Application is already present. Installation is not executed. Only package files are copied and package is registered. Exit!
------------
14.02.2025 16:02:48, Section [Set:AppExistMsg], Line 5:
Softmigration: Application is already present. Only package files are copied and package is registered.
OK
Hat jemand eine Idee, was ich falsch mache bzw. wie ich dem Fehler auf die Spur komme?
Die letzten Zeilen im Log „Install.2025-02-19_09-36-11.log“ lauten:
MSI (s) (CC:38) [09:36:50:412]: Note: 1: 1707
MSI (s) (CC:38) [09:36:50:412]: Product: Snagit 2024 -- Installation operation completed successfully.
MSI (s) (CC:38) [09:36:50:412]: Das Produkt wurde durch Windows Installer installiert. Produktname: Snagit 2024. Produktversion: 24.3.1. Produktsprache: 1033. Hersteller: TechSmith Corporation. Erfolg- bzw. Fehlerstatus der Installation: 0.
MSI (s) (CC:38) [09:36:50:412]: Closing MSIHANDLE (1) of type 790542 for thread 1080
MSI (s) (CC:38) [09:36:52:491]: Deferring clean up of packages/files, if any exist
MSI (s) (CC:38) [09:36:52:491]: MainEngineThread is returning 0
MSI (s) (CC:50) [09:36:52:491]: No System Restore sequence number for this installation.
=== Logging stopped: 19.02.2025 09:36:50 ===
MSI (s) (CC:50) [09:36:52:491]: User policy value 'DisableRollback' is 0
MSI (s) (CC:50) [09:36:52:491]: Machine policy value 'DisableRollback' is 0
MSI (s) (CC:50) [09:36:52:491]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (CC:50) [09:36:52:491]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (CC:50) [09:36:52:496]: Note: 1: 2265 2: 3: -2147287035
MSI (s) (CC:50) [09:36:52:496]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (CC:50) [09:36:52:496]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (s) (CC:50) [09:36:52:496]: Destroying RemoteAPI object.
MSI (s) (CC:BC) [09:36:52:496]: Custom Action Manager thread ending.
MSI (c) (DC:24) [09:36:52:498]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (DC:24) [09:36:52:564]: MainEngineThread is returning 0
=== Verbose logging stopped: 19.02.2025 09:36:52 ===
Und das sieht für mich erstmal gut aus.
Im Log „TechSmith_SnagIt_24.3.1_PSAppDeployToolkit_Install.log“ steht:
<![LOG[[Package-Installation] :: Getting information for installed Application Name(s) [Snagit 2024]...]LOG]!><time="09:36:57.65960" date="02-19-2025" component="Get-InstalledApplication" context="NT-AUTORITÄT\SYSTEM" type="1" thread="8260" file="Deploy-Application.ps1">
<![LOG[[Package-Installation] :: Found installed application [Snagit 2024] version [24.3.1] using exact name matching for search term [Snagit 2024].]LOG]!><time="09:36:57.78160" date="02-19-2025" component="Get-InstalledApplication" context="NT-AUTORITÄT\SYSTEM" type="1" thread="8260" file="Deploy-Application.ps1">
<![LOG[[Package-Installation] :: Skipped 0 entries while searching, because they were considered Microsoft updates.]LOG]!><time="09:36:57.82960" date="02-19-2025" component="Get-InstalledApplication" context="NT-AUTORITÄT\SYSTEM" type="1" thread="8260" file="Deploy-Application.ps1">
<![LOG[[Package-Installation] :: Excluded [TechSmith SnagIt 24.3.1] from the results above.]LOG]!><time="09:36:57.82960" date="02-19-2025" component="Get-NxtInstalledApplication" context="NT-AUTORITÄT\SYSTEM" type="1" thread="8260" file="Deploy-Application.ps1">
<![LOG[[Package-Installation] :: Found one application matching UninstallKey [Snagit 2024], UninstallKeyIsDisplayName [True], UninstallKeyContainsWildCards [False] and DisplayNamesToExclude [TechSmith SnagIt 24.3.1]. Returning [True].]LOG]!><time="09:36:57.84560" date="02-19-2025" component="Test-NxtAppIsInstalled" context="NT-AUTORITÄT\SYSTEM" type="1" thread="8260" file="Deploy-Application.ps1">
<![LOG[[Package-Installation] :: Installation of 'SnagIt' was successful.]LOG]!><time="09:36:57.86060" date="02-19-2025" component="Install-NxtApplication" context="NT-AUTORITÄT\SYSTEM" type="1" thread="8260" file="Deploy-Application.ps1">
Auch das sieht für mich gut aus.
Aber auch 15 Minuten nach den beiden Einträgen befindet sich das Paket noch im Status „Running“.
Eigentlich müsste das Log nach der erfolgreichen Installation noch weiter laufen und deutlich mehr Einträge enthalten.
Ganz am Ende sollte der Bereich "[CustomEnd] " stehen.
Wird PowerShell aus irgendeinem Grund beendet?
Da die MSI-Log gut aussieht und die PSADT-Log gut aussieht (zumindest die gezeigten Ausschnitte), könnte es an der Setup.inf liegen, dass diese nicht abschließt bzw. nicht abschließen kann.
Führe das Paket mal manuell aus mit Debug- und Error-Log.
Baue ggf. zur Analyse weitere Log-Ausgaben in die Setup.inf oder das PS1-Skript ein.
aber sieht das PSADT-Log wirklich gut aus, solange nicht „[CustomEnd]“ darin steht? Und bis „[CustomEnd]“ oder ein Fehler auftaucht, befindet sich das Paket doch noch in der Deploy-Application.ps1 und nicht in der setup.inf oder?
in dem Fall solltest Du einfach ein Ticket bei uns auf machen, dann kann sich jemand das bei euch im System anschauen.
So stochern wir hier ja nur im Dunkeln.
falls es für das Problem eine Lösung gibt würde mich dies sehr interessieren.
Wir haben aktuell auch das Problem mit sehr langen Installationszeiten bei dem Paket für Mozilla Firefox ESR 128.7.0
Ich habe eine Antwort vom NeoSupport erhalten: „Der von Ihnen hinzugebrachte Befehl in der Deploy-Application.ps1 verursacht den Fehler.“ - das heißt, dass ich folgenden Fehler im Bereich „#region CustomInstallAndReinstallEnd content“ mit einem falschen Befehl verursacht habe:
Als ich diese Antwort bekam, habe ich dann folgende Zeile im Bereich „#region CustomInstallAndReinstallEnd content“ ergänzt:
Write-Log -Message „region CustomInstallAndReinstallEnd content“
So konnte ich dann im Log feststellen, dass das Skript wirklich an dieser Stelle hängen bleibt.