Deinstallation real erfolgreich, jedoch über Empirum kommt ein Fehler vom Client zurück

G23
Posts: 137
Joined: 20. Jan 2021, 17:08
Contact:

Re: Deinstallation real erfolgreich, jedoch über Empirum kommt ein Fehler vom Client zurück

Post by G23 » 31. Jan 2025, 11:23

Nein, es läuft wieder in das gleiche Verhalten
1. Software wurde deinstalliert.
2. Ordner, Software, Verknüpfungen, ist entfernt.
3. Matrix42: gleichen nichtsaussagenden Fehler.
Ich checke jetzt die lokalen Logs und editiere den Beitrag, wenn ich mehr Informationen habe.

MATRIX42 EMPIRUM Log

Code: Select all

31.01.2025 10:37:25	%D% %HN%	SYSTEM	Microsoft SQL Server Management Studio - 17 - DE	14.0.17254.0	1	Uninstall	Failure	
keine detaillierten Fehlereinträge


C:\ProgramData\Matrix42\Logs\UAF

Code: Select all


2025-01-31 10:35:52.177 [INFO] [MxLog.LogS] [MOD.Installer]	[PollingTimer] Determining if polling must run NOW... The difference between NOW and the time of next run is -2554 seconds, and NEGATIVE, therefore, NO	<28>
2025-01-31 10:36:52.212 [INFO] [MxLog.LogS] [MOD.Installer]	CheckNetworkCostType	<28>
2025-01-31 10:36:52.223 [INFO] [MxLog.LogS] [WindowsUpdate]	Checking if CBS marker file 'C:\Windows\WinSXS\pending.xml' exists	<28>
2025-01-31 10:36:52.223 [INFO] [MxLog.LogS] [WindowsUpdate]	Checking if registry key 'WindowsUpdate\Auto Update\RebootRequired' exists	<28>
2025-01-31 10:36:52.223 [INFO] [MxLog.LogS] [ServiceStatus]	START SetServiceStatus limited 'False' reason 'CBSFeatureRunning'; old status 'NotLimited'	<28>
2025-01-31 10:36:52.223 [INFO] [MxLog.LogS] [ServiceStatus]	*LOCK* GET Lock_ComputeStatus	<28>
2025-01-31 10:36:52.223 [INFO] [MxLog.LogS] [ServiceStatus]	*LOCK* LOCKED Lock_ComputeStatus	<28>
2025-01-31 10:36:52.223 [INFO] [MxLog.LogS] [ServiceStatus]	*LOCK* UNLOCKED Lock_ComputeStatus	<28>
2025-01-31 10:36:52.223 [INFO] [MxLog.LogS] [ServiceStatus]	END SetServiceStatus limited 'False' reason 'CBSFeatureRunning'; new status 'NotLimited'	<28>
2025-01-31 10:36:52.223 [INFO] [MxLog.LogS] [MaintenanceModule]	[MaintenanceStatus] START CheckIfMaintenanceRequiresForcePolling MaintenanceStatus=Enabled, IsWithinMaintenanceTime=True, IsWithinMaintenanceTime (saved value)=True ForcePolling=False	<28>
2025-01-31 10:36:52.241 [INFO] [MxLog.LogS] [MaintenanceModule]	[MaintenanceStatus] IsWithinMaintenanceTime == TRUE (Manual Polling)	<28>
2025-01-31 10:36:52.242 [INFO] [MxLog.LogS] [MaintenanceModule]	[MaintenanceStatus] END CheckIfMaintenanceRequiresForcePolling MaintenanceStatus=Enabled, IsWithinMaintenanceTime=True, IsWithinMaintenanceTime (saved value)=True ForcePolling=False	<28>
2025-01-31 10:36:52.242 [INFO] [MxLog.LogS] [MOD.Installer]	[PollingTimer] Determining if polling must run NOW... The difference between NOW and the time of next run is -2494 seconds, and NEGATIVE, therefore, NO	<28>
2025-01-31 10:37:24.756 [INFO] [MxLog.LogS] [MOD.Installer]	setup.exe process 3368 has exited with code -1073740791	<36>
2025-01-31 10:37:24.756 [INFO] [MxLog.LogS] [MOD.Installer]	setup returned -1073740791	<36>
2025-01-31 10:37:24.756 [INFO] [MxLog.LogS] [MOD.Installer]	*LOCK* UNLOCKED Lock_Setup (RunSetup)	<36>
2025-01-31 10:37:24.756 [INFO] [UemAgentExtension.PackageStatusChanged] Package status changed, Microsoft\SQL Server Management Studio\14.0.17254.0 to Installed (Machine) 100% - sending to all listeners
2025-01-31 10:37:24.756 [INFO] [MxLog.LogS] [ERIS.Engine]	[ClientSession] START GetActiveSession	<36>
2025-01-31 10:37:24.756 [INFO] [MxLog.LogS] [ERIS.Sesmgr]	[ClientSession] START GetActiveClientSession	<36>
2025-01-31 10:37:24.756 [INFO] [MxLog.LogS] [ERIS.Sesmgr]	[ClientSession] GetActiveClientSession terminal session <1> with process Id <5336> for user %DOMAIN%\%Username%	<36>
2025-01-31 10:37:24.756 [WARN] [MxLog.LogS] [ERIS.Sesmgr]	[ClientSession] IsTerminalSessionActive - Found TerminalSession: ID <1>, StationName: 'Console', ConnectionState: 'WTSActive'	<36>
2025-01-31 10:37:24.772 [INFO] [MxLog.LogS] [ERIS.Sesmgr]	[ClientSession] END GetActiveClientSession Stored session found for terminal session 1 	<36>
2025-01-31 10:37:24.998 [WARN] [UemAgentExtension.GetErrorMessageFromRegistry] Cannot open HKLM, SOFTWARE\Matrix42\Software Depot, LastError
2025-01-31 10:37:24.999 [WARN] [UemAgentExtension.GetErrorMessageFromRegistry] Cannot open HKLM, SOFTWARE\WOW6432Node\Matrix42\Software Depot, LastError
2025-01-31 10:37:25.000 [INFO] [UemAgentExtension.PackageStatusChanged] Package with error: 
2025-01-31 10:37:25.001 [INFO] [UemAgentExtension.PackageStatusChanged] Package status changed, Microsoft\SQL Server Management Studio\14.0.17254.0 to Error (Machine) 100% - sending to all listeners
2025-01-31 10:37:25.002 [INFO] [MxLog.LogS] [ERIS.Engine]	[ClientSession] START GetActiveSession	<36>
2025-01-31 10:37:25.002 [INFO] [MxLog.LogS] [ERIS.Sesmgr]	[ClientSession] START GetActiveClientSession	<36>
2025-01-31 10:37:25.015 [INFO] [MxLog.LogS] [ERIS.Sesmgr]	[ClientSession] GetActiveClientSession terminal session <1> with process Id <5336> for user %DOMAIN%\%Username%	<36>
2025-01-31 10:37:25.029 [WARN] [MxLog.LogS] [ERIS.Sesmgr]	[ClientSession] IsTerminalSessionActive - Found TerminalSession: ID <1>, StationName: 'Console', ConnectionState: 'WTSActive'	<36>
2025-01-31 10:37:25.031 [INFO] [MxLog.LogS] [ERIS.Sesmgr]	[ClientSession] END GetActiveClientSession Stored session found for terminal session 1 	<36>
2025-01-31 10:37:25.036 [INFO] [MxLog.LogS] [MOD.Installer]	Updating Running Packages for Microsoft\SQL Server Management Studio\14.0.17254.0	<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [MOD.Installer]	Status updated to Error	<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [MOD.Installer]	setup returned:  -1073740791 	<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [SW.Engine]	END InstallationOrCommonUninstallation: Error: 0, ExitCode: -1073740791, LastError: , discontinue: 0, reinstall: 0, MachinePartOnly: 1, AskUninstallOld2Success: 0,  result: 1	<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [SW.Engine]	START ComputeInstallationResult ExitCode: -1073740791	<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [SW.Engine]	START UpdateFailedInstallationRetriesForPackage called for package Microsoft\SQL Server Management Studio\14.0.17254.0, userpart NO.	<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [SW.Engine]	Failed installation force time not written. Error: 0.	<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [SW.Engine]	END UpdateFailedInstallationRetriesForPackage called for package Microsoft\SQL Server Management Studio\14.0.17254.0, userpart NO with result 0.	<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [SW.Engine]	%EmpirumLocalLogFolder%\SwDepot_%DomainName%_%ComputerName%_%SysDate%_%LongSysTime%.log	<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [SW.Engine]	Date, Time, DomainName, ComputerName, WindowsUser, PackageName, Version, Revision, Mode, Result, Error	<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [SW.Engine]	Microsoft SQL Server Management Studio - 17 - DE	<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [SW.Engine]	"C:\EmpirumAgent\DDS\Setup.exe" /F /E+"C:\EmpirumAgent\log\SetupErrorLog\%DOMAIN%.%Hostname%.2025-01-31_10-23-03.218.log" "C:\EmpirumAgent\DDS\..\Packages\Microsoft\SQL Server Management Studio\14.0.17254.0\Install\Setup.inf" /S4 /X8 /U	<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [SW.Engine]		<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [SW.Engine]		<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [MOD.Installer]	Setup callback sending: ___LOG_WRITE___ with 31.01.2025 10:37:25 %DOMAIN% %Hostname% SYSTEM Microsoft SQL Server Management Studio - 17 - DE 14.0.17254.0 1 Uninstall Failure  2025-01-31T09:37:25 	<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [SwDepotLog]	LOG: 31.01.2025 10:37:25 %DOMAIN% %Hostname% SYSTEM Microsoft SQL Server Management Studio - 17 - DE 14.0.17254.0 1 Uninstall Failure  2025-01-31T09:37:25 	<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [MOD.Installer]	Removing Microsoft\SQL Server Management Studio\14.0.17254.0 from PackageInstallations list	<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [SW.Engine]	END ComputeInstallationResult ExitCode -1073740791 LastError  Result in Message 2	<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [SW.Engine]	   CInstaller::InstallMachineSoftware - do post processing	<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [SW.Engine]	   CInstaller::DoInstallMachineSoftwarePostProcessing2: package 'Microsoft\SQL Server Management Studio\14.0.17254.0' (software id: F2A4BF5F-25A7-42CA-BD6B-6A4E0B049E15) - Error: 0, ExitCode: -1073740791, LastError: , result: 0	<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [SW.Engine]	   CInstaller::DoInstallMachineSoftwarePostProcessing3: package 'Microsoft\SQL Server Management Studio\14.0.17254.0' (software id: F2A4BF5F-25A7-42CA-BD6B-6A4E0B049E15)	<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [SwDepotLog]	SENDLOGS	<33>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [SW.Engine]	   CInstaller::DoInstallMachineSoftwarePostProcessing4: package 'Microsoft\SQL Server Management Studio\14.0.17254.0' (software id: F2A4BF5F-25A7-42CA-BD6B-6A4E0B049E15)	<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [SW.Engine]	## CInstaller::InstallMachineSoftware (Matrix42 Patch-Management Client Scan 21.0, uninstall=FALSE, revoked=FALSE)	<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [SW.Engine]	CheckForInstallationRetries called for package matrix42\PMClient-Scan\21.0, userPart NO with Result TRUE, MaxFailedInstallationRetries=10, FailedInstallationRetries=0	<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [SW.Engine]	   CInstaller::InstallMachineSoftware - NOT revoked!	<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [SW.Engine]	   CInstaller::InstallMachineSoftware - Requirements fullfilled	<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [SW.Engine]	%EmpirumLocalLogFolder%\SwDepot_%DomainName%_%ComputerName%_%SysDate%_%LongSysTime%.log	<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [SW.Engine]	Date, Time, DomainName, ComputerName, WindowsUser, PackageName, Version, Revision, Mode, Result, Error	<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [SW.Engine]	Matrix42 Patch-Management Client Scan 21.0	<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [SW.Engine]	"C:\EmpirumAgent\DDS\Setup.exe" /F /E+"C:\EmpirumAgent\log\SetupErrorLog\%DOMAIN%.%Hostname%.2025-01-31_10-23-03.218.log" "C:\EmpirumAgent\Packages\matrix42\PMClient\21.0\Install\Scan.inf" /S0 /X8 /V"21.0;1"	<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [SW.Engine]		<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [SW.Engine]		<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [MOD.Installer]	Setup callback sending: ___LOG_WRITE___ with 31.01.2025 10:37:25 %DOMAIN% %Hostname% SYSTEM Matrix42 Patch-Management Client Scan 21.0 21.0 1 Reinstall Running  2025-01-31T09:37:25 	<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [SwDepotLog]	LOG: 31.01.2025 10:37:25 %DOMAIN% %Hostname% SYSTEM Matrix42 Patch-Management Client Scan 21.0 21.0 1 Reinstall Running  2025-01-31T09:37:25 	<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [SW.Engine]	START InstallationOrCommonUninstallation	<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [SW.Engine]	Modified Parameter: "C:\EmpirumAgent\DDS\Setup.exe" /F /E+"C:\EmpirumAgent\log\SetupErrorLog\%DOMAIN%.%Hostname%.2025-01-31_10-23-03.218.log" "C:\EmpirumAgent\Packages\matrix42\PMClient\21.0\Install\Scan.inf" /S4 /X8 /V"21.0;1"	<36>
2025-01-31 10:37:25.037 [INFO] [MxLog.LogS] [MOD.Installer]	Setup callback sending: matrix42\PMClient-Scan\21.0 with "C:\EmpirumAgent\DDS\Setup.exe" /F /E+"C:\EmpirumAgent\log\SetupErrorLog\%DOMAIN%.%Hostname%.2025-01-31_10-23-03.218.log" "C:\EmpirumAgent\Packages\matrix42\PMClient\21.0\Install\Scan.inf" /S4 /X8 /V"21.0;1"	<36>
2025-01-31 10:37:25.037 [INFO] [UemAgentExtension.PackageStatusChanged] Package status changed, matrix42\PMClient-Scan\21.0 to Installing (Machine) 0% - sending to all listeners
C:\ProgramData\Matrix42\Logs\UEM Agent

Code: Select all

2025-01-31 10:27:05.833 [DEBUG] [MainWindow.Border_MouseLeftButtonDown] Starting
2025-01-31 10:27:06.032 [DEBUG] [MainWindow.Border_MouseLeftButtonDown] Finishing
2025-01-31 10:34:57.561 [INFO] [Memory.ReduceMemory] Memory reduction (automatically every 600 sec) done
2025-01-31 10:37:24.756 [DEBUG] [SignalRHubClientInteractWeb.PackageStatusChange] 'PackageStatusChange' received (Id: Microsoft\SQL Server Management Studio\14.0.17254.0, Status: Installed, Message: , Type: Machine Progress: 100
2025-01-31 10:37:24.756 [DEBUG] [MainWindow.ExecuteScript] Executing script 'WebTasks.UpdateStatus('Microsoft\\SQL Server Management Studio\\14.0.17254.0', 'Installed', true, '');'
2025-01-31 10:37:25.004 [DEBUG] [SignalRHubClientInteractWeb.PackageStatusChange] 'PackageStatusChange' received (Id: Microsoft\SQL Server Management Studio\14.0.17254.0, Status: Error, Message: , Type: Machine Progress: 100
2025-01-31 10:37:25.008 [DEBUG] [MainWindow.ExecuteScript] Executing script 'WebTasks.UpdateStatus('Microsoft\\SQL Server Management Studio\\14.0.17254.0', 'Error', true, '');'
2025-01-31 10:37:25.054 [DEBUG] [SignalRHubClientInteractWeb.PackageStatusChange] 'PackageStatusChange' received (Id: matrix42\PMClient-Scan\21.0, Status: Installing, Message: , Type: Machine Progress: 0
2025-01-31 10:37:25.054 [DEBUG] [MainWindow.ExecuteScript] Executing script 'WebTasks.UpdateStatus('matrix42\\PMClient-Scan\\21.0', 'Installing', true, '');'
2025-01-31 10:38:32.755 [DEBUG] [SignalRHubClientInteractWeb.PackageStatusChange] 'PackageStatusChange' received (Id: matrix42\PMClient-Scan\21.0, Status: Installed, Message: , Type: Machine Progress: 100
2025-01-31 10:38:32.755 [DEBUG] [MainWindow.ExecuteScript] Executing script 'WebTasks.UpdateStatus('matrix42\\PMClient-Scan\\21.0', 'Installed', true, '');'
2025-01-31 10:38:33.010 [DEBUG] [SignalRHubClientInteractWeb.PackageStatusChange] 'PackageStatusChange' received (Id: matrix42\PMClient-Scan\21.0, Status: Success, Message: , Type: Machine Progress: 100
2025-01-31 10:38:33.010 [DEBUG] [MainWindow.ExecuteScript] Executing script 'WebTasks.UpdateStatus('matrix42\\PMClient-Scan\\21.0', 'Success', true, '');'
2025-01-31 10:38:33.010 [INFO] [HostInteract.Log] [Web] [WebTasks.UpdateStatus] ErrorTaskCount 'System.Object[]'
2025-01-31 10:38:33.010 [INFO] [HostInteract.Log] [Web] [WebTasks.UpdateStatus] TaskType 'System.Object[]'
Last edited by G23 on 31. Jan 2025, 11:36, edited 1 time in total.

User avatar
Hendrik_Ambrosius
Moderator
Moderator
Posts: 8087
Joined: 13. Dec 2004, 23:10
Location: Adendorf/Lüneburg

Re: Deinstallation real erfolgreich, jedoch über Empirum kommt ein Fehler vom Client zurück

Post by Hendrik_Ambrosius » 31. Jan 2025, 11:24

Kommen denn jetzt die Debug-Einträge im SetupErrorLog an?
Wenn ja - wo stoppt es?
Hendrik Ambrosius / Senior Presales Consultant
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com

Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.

G23
Posts: 137
Joined: 20. Jan 2021, 17:08
Contact:

Re: Deinstallation real erfolgreich, jedoch über Empirum kommt ein Fehler vom Client zurück

Post by G23 » 31. Jan 2025, 14:53

Musste nochmal einen Lauf starten, weil ich aufgrund der unverhältnismäßig langen Laufzeit die error messages wieder deaktiviert hatte. es läuft von 14:33 bis 14:47, dabei war der Prozess nach 14:34 im ruhemodus und hat auf etwas gewartet.

Debug Viewer:

Code: Select all

[3800] [M42UEM_UI] [DEBUG] [HostInteract.Log] [Web] [WebTasks.Add] Started with Item 'Microsoft SQL Server Management Studio - 17 - DE' and Action 'Uninstall'! 
[3800] [M42UEM_UI] [DEBUG] [HostInteract.Log] [Web] [WebTasks.GetActionConfig] Get ActionConfig for action key 'Uninstall'! 
[3800] [M42UEM_UI] [DEBUG] [SignalRHubClientInteractWeb.PackageStatusChange] 'PackageStatusChange' received (Id: Microsoft\SQL Server Management Studio\14.0.17254.0, Status: Uninstalling, Message: , Type: Machine Progress: 0 
[3800] [M42UEM_UI] [DEBUG] [MainWindow.ExecuteScript] Executing script 'WebTasks.UpdateStatus('Microsoft\\SQL Server Management Studio\\14.0.17254.0', 'Uninstalling', true, '');' 
[3156] [osinfo] D:\Agent\82\s\Library\Intern\OsInfo\OSInfoFactory.cpp:17 OSInfoFactory::Create(): enter function
[3156] [osinfo] D:\Agent\82\s\Library\Intern\OsInfo\OSInfoWMILoader.cpp:44 OSInfoWMILoader::Load(): start
[3156] [osinfo] D:\Agent\82\s\Library\Intern\OsInfo\OSInfoWMILoader.cpp:166 OSInfoWMILoader::InitializeWMIInterface(): Connected to ROOT\CIMV2 WMI namespace
[3156] [osinfo] D:\Agent\82\s\Library\Intern\OsInfo\OSInfoWMILoader.cpp:295 OSInfoWMILoader::GetWMIValues(): Got 64 values from WMI
[3156] [osinfo] D:\Agent\82\s\Library\Intern\OsInfo\OSInfoFactory.cpp:50 OSInfoFactory::HasSupportedWMIVersion(): WMI version 10.0 (win10 or higher) supported!
[3156] [osinfo] D:\Agent\82\s\Library\Intern\OsInfo\OSInfoFactory.cpp:64 OSInfoFactory::CreateEx(): osInfo.majorVersion=10
[3156] [osinfo] D:\Agent\82\s\Library\Intern\OsInfo\OSInfoFactory.cpp:68 OSInfoFactory::CreateEx(): get info from registry
[3156] [osinfo] D:\Agent\82\s\Library\Intern\OsInfo\OSInfoRegLoader.cpp:46 OSInfoRegLoader::Load(): osInfo.MajorVersion=10
[3156] [osinfo] D:\Agent\82\s\Library\Intern\OsInfo\OSInfoRegLoader.cpp:53 OSInfoRegLoader::Load(): Open registry at "Software\Microsoft\Windows NT\CurrentVersion"
[3156] [osinfo] D:\Agent\82\s\Library\Intern\OsInfo\OSInfoRegLoader.cpp:60 OSInfoRegLoader::Load(): query value for "ReleaseId"
[3156] [osinfo] D:\Agent\82\s\Library\Intern\OsInfo\OSInfoRegLoader.cpp:69 OSInfoRegLoader::Load(): query value for "DisplayVersion"
[3156] [osinfo] D:\Agent\82\s\Library\Intern\OsInfo\OSInfoRegLoader.cpp:73 OSInfoRegLoader::Load(): query value for "UBR"
[3156] [osinfo] D:\Agent\82\s\Library\Intern\OsInfo\OSInfoRegLoader.cpp:81 OSInfoRegLoader::Load(): queried values: releaseId="2009", patchId="5371"
[3156] [osinfo] D:\Agent\82\s\Library\Intern\OsInfo\OSInfoFactory.cpp:17 OSInfoFactory::Create(): enter function
[3156] [osinfo] D:\Agent\82\s\Library\Intern\OsInfo\OSInfoFactory.cpp:50 OSInfoFactory::HasSupportedWMIVersion(): WMI version 10.0 (win10 or higher) supported!
[3156] CalledFromService: 2
[3156] bRunAsLocalSystem: 1
[3156] FqdnUser: %Domain%\%Username%
[3156] WindowsUser: %Username%
[3156] Looking up SID for user %Domain%\%Username%
[3156] SecuritySID: 
[3156] Setup: 2025-01-31 14:33:39.387 [Setup]  
[3156]  
[3156] Setup.exe: found /F 
[3156]  
[3156] The file is signed and the signature was verified.
[3156] calling setup64: 
[3156] "C:\EmpirumAgent\User\Setup64.exe" /F /E+"C:\EmpirumAgent\log\SetupErrorLog\%Domain%.%Hostname%.2025-01-31_14-33-12.380.log" "C:\EmpirumAgent\DDS\..\Packages\Microsoft\SQL Server Management Studio\14.0.17254.0\Install\Setup.inf" /S4 /X8 /U "C:\EmpirumAgent\Packages\Microsoft\SQL Server Management Studio\14.0.17254.0\Install\Setup.inf" /Z:"C:\EmpirumAgent\User\setup.exe"
[3156] 
[4084] [osinfo] D:\Agent\82\s\Library\Intern\OsInfo\OSInfoFactory.cpp:17 OSInfoFactory::Create(): enter function
[4084] [osinfo] D:\Agent\82\s\Library\Intern\OsInfo\OSInfoWMILoader.cpp:44 OSInfoWMILoader::Load(): start
[4084] [osinfo] D:\Agent\82\s\Library\Intern\OsInfo\OSInfoWMILoader.cpp:166 OSInfoWMILoader::InitializeWMIInterface(): Connected to ROOT\CIMV2 WMI namespace
[4084] [osinfo] D:\Agent\82\s\Library\Intern\OsInfo\OSInfoWMILoader.cpp:295 OSInfoWMILoader::GetWMIValues(): Got 64 values from WMI
[4084] [osinfo] D:\Agent\82\s\Library\Intern\OsInfo\OSInfoFactory.cpp:50 OSInfoFactory::HasSupportedWMIVersion(): WMI version 10.0 (win10 or higher) supported!
[4084] [osinfo] D:\Agent\82\s\Library\Intern\OsInfo\OSInfoFactory.cpp:64 OSInfoFactory::CreateEx(): osInfo.majorVersion=10
[4084] [osinfo] D:\Agent\82\s\Library\Intern\OsInfo\OSInfoFactory.cpp:68 OSInfoFactory::CreateEx(): get info from registry
[4084] [osinfo] D:\Agent\82\s\Library\Intern\OsInfo\OSInfoRegLoader.cpp:46 OSInfoRegLoader::Load(): osInfo.MajorVersion=10
[4084] [osinfo] D:\Agent\82\s\Library\Intern\OsInfo\OSInfoRegLoader.cpp:53 OSInfoRegLoader::Load(): Open registry at "Software\Microsoft\Windows NT\CurrentVersion"
[4084] [osinfo] D:\Agent\82\s\Library\Intern\OsInfo\OSInfoRegLoader.cpp:60 OSInfoRegLoader::Load(): query value for "ReleaseId"
[4084] [osinfo] D:\Agent\82\s\Library\Intern\OsInfo\OSInfoRegLoader.cpp:69 OSInfoRegLoader::Load(): query value for "DisplayVersion"
[4084] [osinfo] D:\Agent\82\s\Library\Intern\OsInfo\OSInfoRegLoader.cpp:73 OSInfoRegLoader::Load(): query value for "UBR"
[4084] [osinfo] D:\Agent\82\s\Library\Intern\OsInfo\OSInfoRegLoader.cpp:81 OSInfoRegLoader::Load(): queried values: releaseId="2009", patchId="5371"
[4084] [osinfo] D:\Agent\82\s\Library\Intern\OsInfo\OSInfoFactory.cpp:17 OSInfoFactory::Create(): enter function
[4084] [osinfo] D:\Agent\82\s\Library\Intern\OsInfo\OSInfoFactory.cpp:50 OSInfoFactory::HasSupportedWMIVersion(): WMI version 10.0 (win10 or higher) supported!
[4084] CalledFromService: 2
[4084] bRunAsLocalSystem: 1
[4084] FqdnUser: %Domain%\%Username%
[4084] WindowsUser: %Username%
[4084] Looking up SID for user %Domain%\%Username%
[4084] SecuritySID: 
[4084] Setup: 2025-01-31 14:33:39.847 [Setup]  
[4084]  
[4084] Setup.exe: found /F 
[4084]  
[4084] Setup: 2025-01-31 14:33:39.861 [Setup] x86 Setup 
[4084] Setup: 2025-01-31 14:33:39.861 [Setup] bRunAsLocalSystem: 1 
[4084] Setup: 2025-01-31 14:33:39.861 [Setup] WindowsUser: %Username% 
[4084] Setup: 2025-01-31 14:33:39.861 [Setup] Process User: SYSTEM 
[4084] SQL Server Management Studio 14.0.17254.0 Installations-Assistent: 2025-01-31 14:33:39.877 [Setup] [MachineSetup] Error (2) reading MachineSetup Registry Value from . 
[4084] SQL Server Management Studio 14.0.17254.0 Installations-Assistent: 2025-01-31 14:33:39.877 [Setup] [MachineSetup] VersionIsInstalled: Read MachineSetup Registry Value of  from Software\Microsoft\SQL Server Management Studio\14.0.17254.0\Setup. 
[4084] SQL Server Management Studio 14.0.17254.0 Installations-Assistent: 2025-01-31 14:33:39.877 [Setup] [MachineSetup] ReadSetupInfo: Read MachineSetup Registry Value of  from Software\Microsoft\SQL Server Management Studio\14.0.17254.0\Setup. 
[4084] SQL Server Management Studio 14.0.17254.0 Installations-Assistent: 2025-01-31 14:33:39.894 [Setup] CopyOption(pOptionNameLocal="Product") 
[4084] SQL Server Management Studio 14.0.17254.0 Installations-Assistent: 2025-01-31 14:33:39.894 [Setup] CopyOption(pOptionNameLocal="Set:Deinstallation") 
[4084] SQL Server Management Studio 14.0.17254.0 Installations-Assistent: 2025-01-31 14:33:39.894 [Setup] CopyOption(pOptionNameLocal="17289") 
[4084] SQL Server Management Studio 14.0.17254.0 Installations-Assistent: 2025-01-31 14:33:39.894 [Setup] Progress -1 
dann idlet der Prozess ein wenig rum
dann wieder die nächste Info von DEbug Viewer

Code: Select all

[3800] [M42UEM_UI] [INFO] [Memory.ReduceMemory] Memory reduction (automatically every 600 sec) done 
[3800] [M42UEM_UI] [DEBUG] [SignalRHubClientInteractWeb.ShowInstallationDialog] 'ShowInstallationDialog' received for user %Username% in domain %Domain% 
[3800] [M42UEM_UI] [DEBUG] [SignalRHubClientInteractWeb.OpenMainWindow] Waiting for opening main window 
[3800] [M42UEM_UI] [DEBUG] [SignalRHubClientInteractWeb.OpenMainWindow] Re-activating main window 
[3800] [M42UEM_UI] [DEBUG] [MainWindow.SetWindowActive] Activate main window 
[3800] [M42UEM_UI] [DEBUG] [MainWindow.SetWindowActive] Topmost = true 
[3800] [M42UEM_UI] [DEBUG] [MainWindow.SetWindowActive] Topmost = false 
[3800] [M42UEM_UI] [DEBUG] [MainWindow.SetWindowActive] Set focus to main window 
[3800] [M42UEM_UI] [DEBUG] [MainWindow.SetWindowActive] done 
[3800] [M42UEM_UI] [DEBUG] [MainWindow.ExecuteScript] Executing script 'WebNavi.SetNavi('Tasks');' 
[3800] [M42UEM_UI] [DEBUG] [MainWindow.ExecuteScript] Executing script 'WebTasks.ShowActiveTasks();' 
[3800] [M42UEM_UI] [DEBUG] [HostInteract.Log] [Web] [WebTasks.ShowActiveTasks] API call 'ActivePackageTasks' delivered an unexpected result (null) 
[3800] [M42UEM_UI] [DEBUG] [MainWindow.Border_MouseLeftButtonDown] Starting 
[3800] [M42UEM_UI] [DEBUG] [MainWindow.Border_MouseLeftButtonDown] Finishing 
[8492] Suspending
[8740] [0131/144613.052:ERROR:filesystem_win.cc(128)] GetFileAttributes C:\Users\%Username%\AppData\Local\Microsoft\Edge\User Data\Crashpad\attachments\fcd19d27-9b43-4055-9928-ac4847a7a61a: Das System kann die angegebene Datei nicht finden. (0x2)
[8740] [0131/144613.052:ERROR:filesystem_win.cc(128)] GetFileAttributes C:\Users\%Username%\AppData\Local\Microsoft\Edge\User Data\Crashpad\attachments\1675d3ca-6861-4ca2-981c-f9ae03cf6e32: Das System kann die angegebene Datei nicht finden. (0x2)
[4084] SQL Server Management Studio 14.0.17254.0 Installations-Assistent: 2025-01-31 14:47:16.860 [Setup] CopyOption(pOptionNameLocal="SuccessUninstall") 
[4084] SQL Server Management Studio 14.0.17254.0 Installations-Assistent: 2025-01-31 14:47:16.860 [Setup] [MachineSetup] Removed MachineSetup Registry Value from Software\Microsoft\SQL Server Management Studio\14.0.17254.0\Setup. 
[3800] [M42UEM_UI] [DEBUG] [SignalRHubClientInteractWeb.PackageStatusChange] 'PackageStatusChange' received (Id: Microsoft\SQL Server Management Studio\14.0.17254.0, Status: Installed, Message: , Type: Machine Progress: 100 
[3800] [M42UEM_UI] [DEBUG] [MainWindow.ExecuteScript] Executing script 'WebTasks.UpdateStatus('Microsoft\\SQL Server Management Studio\\14.0.17254.0', 'Installed', true, '');' 
[3800] [M42UEM_UI] [DEBUG] [SignalRHubClientInteractWeb.PackageStatusChange] 'PackageStatusChange' received (Id: Microsoft\SQL Server Management Studio\14.0.17254.0, Status: Error, Message: , Type: Machine Progress: 100 
[3800] [M42UEM_UI] [DEBUG] [MainWindow.ExecuteScript] Executing script 'WebTasks.UpdateStatus('Microsoft\\SQL Server Management Studio\\14.0.17254.0', 'Error', true, '');' 
[3800] [M42UEM_UI] [INFO] [HostInteract.Log] [Web] [WebTasks.UpdateStatus] ErrorTaskCount 'System.Object[]' 
[3800] [M42UEM_UI] [INFO] [HostInteract.Log] [Web] [WebTasks.UpdateStatus] TaskType 'System.Object[]' 
[3860] [ERIS_UI] [INFO] [F_euiMain.IsInstallationRunning] No installation in progress. 
[3860] [ERIS_UI] [INFO] [F_euiMain.IsInstallationRunning] No installation in progress. 
[3860] [ERIS_UI] [INFO] [F_euiMain.CloseZDialog] [ZDialog] START ERIS_UI CloseZDialog 
[3860] [ERIS_UI] [INFO] [F_euiMain.CloseZDialog] [ZDialog] START ERIS_UI CloseZDialog 
[3860] PostponementAPI ClosePostponementWindow 
[3860] [ERIS_UI] [INFO] [F_euiMain.CloseZDialog] [ZDialog] END ERIS_UI CloseZDialog 
[3860] [ERIS_UI] [INFO] [F_euiMain.CloseZDialog] [ZDialog] END ERIS_UI CloseZDialog 
[3860] [ERIS_UI] [INFO] [F_euiMain.SetInstallationActivity] F_euiMain SetInstallationActivity False 
[3860] [ERIS_UI] [INFO] [F_euiMain.SetInstallationActivity] F_euiMain SetInstallationActivity False 
[3860] [ERIS_UI] [INFO] [F_euiMain.IsInstallationRunning] No installation in progress. 
[3860] [ERIS_UI] [INFO] [F_euiMain.IsPollingRunning] No polling in progress. 
[3860] [ERIS_UI] [INFO] [F_euiMain.IsPollingRunning] No polling in progress. 
[3860] [ERIS_UI] [INFO] [F_euiMain.IsInstallationRunning] No installation in progress. 
[3860] [ERIS_UI] [INFO] [F_euiMain.IsInstallationRunning] No installation in progress. 
[3860] [ERIS_UI] [INFO] [F_euiMain.IsPollingRunning] No polling in progress. 
[3860] [ERIS_UI] [INFO] [F_euiMain.IsPollingRunning] No polling in progress. 
[3860] [ERIS_UI] [INFO] [F_euiMain.IsInstallationRunning] No installation in progress. 
[3860] [ERIS_UI] [INFO] [F_euiMain.IsInstallationRunning] No installation in progress. 
[3860] [ERIS_UI] [INFO] [F_euiMain.IsInstallationRunning] No installation in progress. 
[3860] [ERIS_UI] [INFO] [F_euiMain.IsInstallationRunning] No installation in progress. 
[3860] [ERIS_UI] [INFO] [F_euiMain.IsInstallationRunning] No installation in progress. 
[3860] [ERIS_UI] [INFO] [F_euiMain.IsInstallationRunning] No installation in progress. 
[3860] [ERIS_UI] [INFO] [F_euiMain.IsPollingRunning] No polling in progress. 
[3860] [ERIS_UI] [INFO] [F_euiMain.IsPollingRunning] No polling in progress. 
[3860] [ERIS_UI] [INFO] [F_euiMain.IsInstallationRunning] No installation in progress. 
[3800] [M42UEM_UI] [INFO] [Memory.ReduceMemory] Memory reduction (automatically every 600 sec) done 
Log aus M42

Code: Select all

31.01.2025 14:22:00	%D% %HN% Distribution	Microsoft SQL Server Management Studio - 17 - DE	14.0.17254.0	1	Download	Success	%matrixserver% (SMB)
31.01.2025 14:47:21	%D% %HN%  SYSTEM	Microsoft SQL Server Management Studio - 17 - DE	14.0.17254.0	1	Uninstall	Failure	
das detaillierte Error Log zeigt nur die Fehler von heute Nacht an, keine Details zum aktuellen Paket :-/
Last edited by G23 on 04. Feb 2025, 10:39, edited 1 time in total.

User avatar
Hendrik_Ambrosius
Moderator
Moderator
Posts: 8087
Joined: 13. Dec 2004, 23:10
Location: Adendorf/Lüneburg

Re: Deinstallation real erfolgreich, jedoch über Empirum kommt ein Fehler vom Client zurück

Post by Hendrik_Ambrosius » 31. Jan 2025, 15:24

Dass keine SetupErrorLogs kommen ist nicht normal.
Liegt das vielleicht an der EXE die aufgerufen wird?
Können Sie die CALLs mal auskommentieren und sehen ob dann die Einträge gemacht werden?
Hendrik Ambrosius / Senior Presales Consultant
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com

Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.

G23
Posts: 137
Joined: 20. Jan 2021, 17:08
Contact:

Re: Deinstallation real erfolgreich, jedoch über Empirum kommt ein Fehler vom Client zurück

Post by G23 » 31. Jan 2025, 16:17

Am Client kommt direkt der Fehler.

Abgleich des Logs zum Empirum Server hat grade ein wenig gedauert.

SWDepotLog:

Code: Select all

31.01.2025 16:13:13	%D% %HN% SYSTEM	Microsoft SQL Server Management Studio - 17 - DE	14.0.17254.0	1	Uninstall	Failure	
ErrorLog

Code: Select all

------------
Date/Time  : 31.01.2025 16:10:35
ProductName: SQL Server Management Studio
Version    : 14.0.17254.0
Revision   : 1
SetupInf   : C:\EmpirumAgent\Packages\Microsoft\SQL Server Management Studio\14.0.17254.0\Install\Setup.inf
------------
31.01.2025 16:10:35, Section [Set:Deinstallation], Line 4: 
ErrorLogMsg: INFO: 01 Die Installation/Deinstallation wurde mit einer Fehlermeldung abgebrochen! ErrorLevel: 
------------
31.01.2025 16:10:35, Section [17289], Line 2: 
ErrorLogMsg: INFO: 17289 start Die Installation/Deinstallation wurde mit einer Fehlermeldung abgebrochen! ErrorLevel: 
------------
31.01.2025 16:10:35
ErrorLogMsg: Fehler  beim Aufruf von SSMS-Setup-DEU.exe
------------
Date/Time  : 31.01.2025 16:13:13
ProductName: SQL Server Management Studio
Version    : 14.0.17254.0
Revision   : 1
SetupInf   : C:\EmpirumAgent\Packages\Microsoft\SQL Server Management Studio\14.0.17254.0\Install\Setup.inf
------------
31.01.2025 16:13:13, Section [Set:Deinstallation], Line 4: 
ErrorLogMsg: INFO: 01 Die Installation/Deinstallation wurde mit einer Fehlermeldung abgebrochen! ErrorLevel: 
------------
31.01.2025 16:13:13, Section [17289], Line 2: 
ErrorLogMsg: INFO: 17289 start Die Installation/Deinstallation wurde mit einer Fehlermeldung abgebrochen! ErrorLevel: 
------------
31.01.2025 16:13:13
ErrorLogMsg: Fehler  beim Aufruf von SSMS-Setup-DEU.exe
------------

G23
Posts: 137
Joined: 20. Jan 2021, 17:08
Contact:

Re: Deinstallation real erfolgreich, jedoch über Empirum kommt ein Fehler vom Client zurück

Post by G23 » 31. Jan 2025, 16:56

sobald die EXE wieder mit drin ist, läuft es wieder auf Fehler.

Habe versucht anstatt auf die Log auf die Exe zu prüfen, aber hier ist wieder das gleiche Fehlerbild, das keine Error Informationen geloggt werden. Ich werde mich für die Woche ins Wochenende verabschieden. Vielen Dank für die Hilfe und Hinweise, wünsche ein schönes erholsames Wochenende. Mal schauen ob es sich am Montag besser lösen lässt.

Code: Select all

[Set:Deinstallation]
;-ErrorLogMsg INFO: 03 %ErrorLogMessage% ErrorLevel: %ErrorLevel%
If DoesRegKeyExist ("HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\{CE8DC62F-0A8E-4E52-9F09-E669C1E955BD},DisplayVersion") == "1" | DoesRegKeyExist ("HKLM,Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{CE8DC62F-0A8E-4E52-9F09-E669C1E955BD},DisplayVersion") == "1" Then "17254" EndIf
;-ErrorLogMsg INFO: 02  %ErrorLogMessage% ErrorLevel: %ErrorLevel%
If DoesRegKeyExist ("HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\{A7AE83C0-CB80-4FBF-9F30-C15D47A2F264},DisplayVersion") == "1" | DoesRegKeyExist ("HKLM,Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{A7AE83C0-CB80-4FBF-9F30-C15D47A2F264},DisplayVersion") == "1" Then "17289" EndIf
;-ErrorLogMsg INFO: 01 %ErrorLogMessage% ErrorLevel: %ErrorLevel%

[17254]
;If "%ErrorLevel%" <> "0" Then "SET:DeInstallationError" EndIf
If DoesFileExist ("%ProgramFilesDirx86%\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\Ssms.exe") == 1 Then "AbortUnInst" Else "SuccessUninstall" EndIf
;-ErrorLogMsg INFO:  17254 ende %ErrorLogMessage% ErrorLevel: %ErrorLevel%
-Call "C:\ProgramData\Package Cache\{CE8DC62F-0A8E-4E52-9F09-E669C1E955BD}\SSMS-Setup-DEU.exe" /uninstall /quiet
;-ErrorLogMsg INFO: 17254 start %ErrorLogMessage% ErrorLevel: %ErrorLevel%
-AddMeter -1

[17289]
;If "%ErrorLevel%" <> "0" Then "SET:DeInstallationError" EndIf
If DoesFileExist ("%ProgramFilesDirx86%\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\Ssms.exe") == 1 Then "AbortUnInst" Else "SuccessUninstall" EndIf
;-ErrorLogMsg INFO: 17289 ende %ErrorLogMessage% ErrorLevel: %ErrorLevel%
-Call "C:\ProgramData\Package Cache\{A7AE83C0-CB80-4FBF-9F30-C15D47A2F264}\SSMS-Setup-DEU-Upgrade.exe" /uninstall /quiet
;-ErrorLogMsg INFO: 17289 start %ErrorLogMessage% ErrorLevel: %ErrorLevel%
-AddMeter -1

User avatar
Hendrik_Ambrosius
Moderator
Moderator
Posts: 8087
Joined: 13. Dec 2004, 23:10
Location: Adendorf/Lüneburg

Re: Deinstallation real erfolgreich, jedoch über Empirum kommt ein Fehler vom Client zurück

Post by Hendrik_Ambrosius » 02. Feb 2025, 13:43

Also bringt der Aufruf der SSMS-Setup-EXE den Agent anscheinend irgendwie durcheinander.

Das kenne ich nur von früher, als wir noch den alten Agent hatten, der eine funktionierende Netzwerkverbindung erwartet hat wenn die z.B. durch Installation von VPN Software wegbrach. Sollte dem UEM Agent aber nun egal sein.

Vielleicht hilft ein Aufruf des Setups via CALLRUNAS mit einem lokalen Admin-Account?
Hendrik Ambrosius / Senior Presales Consultant
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com

Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.

G23
Posts: 137
Joined: 20. Jan 2021, 17:08
Contact:

Re: Deinstallation real erfolgreich, jedoch über Empirum kommt ein Fehler vom Client zurück

Post by G23 » 03. Feb 2025, 10:23

Guten Tag Herr Ambrosius,

habe ich einen Fehler in diesem Code?

Code: Select all

If DoesFileExist ("%ProgramFilesDirx86%\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\Ssms.exe") == 1 Then "AbortUnInst" Else "SuccessUninstall" EndIf
Hier müsste doch Matrix wenn keine Datei im genannten Ordner vorhanden ist, zurückmelden
"Fehler" oder "Erfolg"

Code: Select all

[AbortUnInst]
-Abort
-ErrorLogMsg %ErrorLogMessage% ErrorLevel: %ErrorLevel%

[SuccessUninstall]
-Exit
-SET EndMessageDesc=Installation was completed successfully!
-ErrorLogMsg INFO: SuccessUninst start 
oder nicht?

G23
Posts: 137
Joined: 20. Jan 2021, 17:08
Contact:

Re: Deinstallation real erfolgreich, jedoch über Empirum kommt ein Fehler vom Client zurück

Post by G23 » 03. Feb 2025, 17:57

Ich hab den Fehler des nicht loggens in der SETUP.inf dadurch behoben, dass ich die SETUP.inf nochmal komplett frisch gescripted habe und darauf geachtet habe das SET und Set die gleiche Schreibweise haben.

Ich bekomme jetzt folgende Fehlermeldung:
------------
Date/Time : 03.02.2025 17:33:24
ProductName: SQL Server Management Studio
Version : 14.0.17254.0
Revision : 1
SetupInf : C:\EmpirumAgent\Packages\Microsoft\SQL Server Management Studio\14.0.17254.0\Install\Setup.inf
------------
03.02.2025 17:33:24, Section [Set:Deinstallation], Line 3:
ErrorLogMsg: INFO: 01 Deinstall check 01 start Die Installation/Deinstallation wurde mit einer Fehlermeldung abgebrochen! ErrorLevel:
------------
03.02.2025 17:33:24, Section [17289], Line 3:
ErrorLogMsg: INFO: 17289 start Die Installation/Deinstallation wurde mit einer Fehlermeldung abgebrochen! ErrorLevel:
------------
03.02.2025 17:33:24, Section [17289], Line 1:
ErrorLogMsg: INFO: 17289 ende Die Installation/Deinstallation wurde mit einer Fehlermeldung abgebrochen! ErrorLevel:
------------
03.02.2025 17:33:24
ErrorLogMsg: Fehler beim Aufruf von Deinstallation SSMS-Setup-DEU-Upgrade.exe
------------

Code: Select all

[SetupInfo]
Author                  = %AUTOR%
CreationDate            = 12.06.2018
InventoryID             =
Description             = SQL Server Management Studio
Method                  =
Tested on               = Win7, Win10
Dependencies            =
Command line options    = /S2
Last Change             =
Build                   =

[VarDefInfo]
; <Variable>, <Type: 0=Computer 1=User>, <Allow NULL values: 0=No 1=Yes>

[Setup]
Version=15.0
ShowCaption=1
BlockInput=0
Platform=*

[Requirements]

[Application]
ProductName=SQL Server Management Studio
DeveloperName=Microsoft
Version=14.0.17254.0
Revision=1
SetupName=%ProductName% %Version% %SetupWizard%
Text1="%ProductName% %Version%",         Arial,           30, , 000000, 4,    , LEFT BOLD ITALIC 
Text2="%DeveloperName%",                 Arial,           24, , 000000, 4,    , LEFT BOLD ITALIC
Text8="%Company%",                       Arial,           18, , 000000, 4,  10, RIGHT BOLD ITALIC
Text9="%InstallationFor% %WindowsUser%", Arial,           16, , 000000, 4, -18, BOTTOM ITALIC LEFT
BackgroundColor=00B6FF,FFFFFF
CopyDialogRect=0%, 0%, 100%, 100%, HCENTER VCENTER
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
SrcDir=..
ApplicationDir=%ProgramFilesDir%\Empirum\%Developername%\%ProductName%\%Version%
SetupInfDir=Install
AskUninstallOld=1
ShellLinks=1
CommonShellLinks=1
CreateUnresolvableShellLinks=1
UseStringSection=Strings:09
UseSysStringSection=SysStrings:09
DateWarning=1
SizeWarning=1
Reboot=0
PreventExternalReboot=1
StartServicesOnReboot=0
CallTimeOut=3600
AbortAfterCallTimeOut=1
DisableCancelButton=1
ShowEndMessage=1
EndMessage=%EndMessageDesc%


[Strings:07]
Disk1=Installationsmedium 1
EndMessageDesc=Die Installation wurde erfolgreich abgeschlossen!
ErrorLogMessage=Die Installation/Deinstallation wurde mit einer Fehlermeldung abgebrochen!
InstallationFor=Installation für:
InstallerDesc=Dienstprogramm zum Installieren einzelner Komponenten.
InstallerName=Installationsprogramm
SetupWizard=Installations-Assistent
Uninstallation=deinstallieren
ErrorText=Fehler
CallingText=beim Aufruf von

[Strings:09]
Disk1=Installation media 1
EndMessageDesc=Installation was completed successfully!
ErrorLogMessage=The installation/uninstallation aborted with an error message!
InstallationFor=Installation for:
InstallerDesc=Service program to install single components.
InstallerName=Setup program
SetupWizard=Installation Wizard
Uninstallation=Uninstallation
ErrorText=Error
CallingText=launching

[SysStrings:07]
Users=Benutzer

[SysStrings:09]
Users=Users

[Environment]
CommonSetupDir=%CommonFilesDir%\Setup%SetupBits%
V_MachineValuesPath=\\%EmpirumServer%\Values$\MachineValues\%DomainName%
V_UserValuesPath=%HKLM,"Software\matrix42\Software Depot","HomeServer"%\Values$\UserValues\%UserDomain%
MSILogFile=%Temp%\MSI_%ProductName%.%Version%.%Revision%.log
; 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]!!!

[Encryption]

[Disks]
1=%Disk1%

[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 WINDOWS32, 0
1:..\..\..\..\User\x64\Mx42SynSem.dll, %System%,         OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP WINDOWS64, 0
1:%SetupInfDir%\Setup.inf,                             , NORMAL,                                             0
1:%Temp%\Setup64.exe,                  %CommonSetupDir%\Setup.exe, OPTIONAL NOSIZEWARNING SETUP ALWAYS WINDOWS64,      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 Values$\MachineValues\%DomainName%\%ComputerName%.ini or Values$\UserValues\%UserDomain%\%WindowsUser%.ini not found!
Abort

[Product]
#Set:Product, DONTDELETE
#Set:Deinstallation, DELETE

[Set:Product]
If DoesRegKeyExist ("HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft SQL Server Management Studio 14.0.17254.0","UninstallString") == 1 Then "Set:Reinstall" Else "Set:Installation"  EndIf

[Set:Installation]
AddMeter -20
Call "%Src%\SSMS-Setup-DEU.exe" /install /quiet /norestart
If "%ErrorLevel%" <> "0" Then "SET:InstallationError" EndIf

[Set:Reinstall]
AddMeter -20
;Call "%Src%\SSMS-Setup-DEU.exe" /repair /quiet /norestart
;If %ErrorLevel% <> "0" Then "SET:DeInstallationError" EndIf

[Set:Deinstallation]
-ErrorLogMsg INFO: 03 Deinstall Check over %ErrorLogMessage% ErrorLevel: %ErrorLevel%
If DoesRegKeyExist ("HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\{CE8DC62F-0A8E-4E52-9F09-E669C1E955BD},DisplayVersion") == "1" | DoesRegKeyExist ("HKLM,Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{CE8DC62F-0A8E-4E52-9F09-E669C1E955BD},DisplayVersion") == "1" Then "17254" EndIf
-ErrorLogMsg INFO: 02 Deinstall check 02 start  %ErrorLogMessage% ErrorLevel: %ErrorLevel%
If DoesRegKeyExist ("HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\{A7AE83C0-CB80-4FBF-9F30-C15D47A2F264},DisplayVersion") == "1" | DoesRegKeyExist ("HKLM,Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{A7AE83C0-CB80-4FBF-9F30-C15D47A2F264},DisplayVersion") == "1" Then "17289" EndIf
-ErrorLogMsg INFO: 01 Deinstall check 01 start %ErrorLogMessage% ErrorLevel: %ErrorLevel%

[17254]
If "%ErrorLevel%" <> "0" Then "Set:DeInstallationError" EndIf
;If DoesFileExist ("%ProgramFilesDirx86%\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\Ssms.exe") == 1 Then "AbortUnInst" Else "SuccessUninstall" EndIf
-ErrorLogMsg INFO:  17254 ende %ErrorLogMessage% ErrorLevel: %ErrorLevel%
;0302     -Call "C:\ProgramData\Package Cache\{CE8DC62F-0A8E-4E52-9F09-E669C1E955BD}\SSMS-Setup-DEU.exe" /uninstall /quiet
-ErrorLogMsg INFO: 17254 start %ErrorLogMessage% ErrorLevel: %ErrorLevel%
-AddMeter -1

[17289]
If "%ErrorLevel%" <> "0" Then "Set:DeInstallationError2" EndIf
;If DoesFileExist ("%ProgramFilesDirx86%\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\Ssms.exe") == 1 Then "AbortUnInst" Else "SuccessUninstall" EndIf
-ErrorLogMsg INFO: 17289 ende %ErrorLogMessage% ErrorLevel: %ErrorLevel%
;0302      -Call "C:\ProgramData\Package Cache\{A7AE83C0-CB80-4FBF-9F30-C15D47A2F264}\SSMS-Setup-DEU-Upgrade.exe" /uninstall /quiet
-ErrorLogMsg INFO: 17289 start %ErrorLogMessage% ErrorLevel: %ErrorLevel%
-AddMeter -1

[AbortUnInst]
-Abort
-ErrorLogMsg %ErrorLogMessage% ErrorLevel: %ErrorLevel%

[SuccessUninstall]
-Exit
-SET EndMessageDesc=Installation was completed successfully!
-ErrorLogMsg INFO: SuccessUninst start 

[Set:InstallationError]
ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% Installation SSMS-Setup-DEU.exe
Abort

[Set:DeInstallationError]
-Abort
-ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% Deinstallation SSMS-Setup-DEU.exe

[Set:DeInstallationError2]
-Abort
-ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% Deinstallation SSMS-Setup-DEU-Upgrade.exe

User avatar
Hendrik_Ambrosius
Moderator
Moderator
Posts: 8087
Joined: 13. Dec 2004, 23:10
Location: Adendorf/Lüneburg

Re: Deinstallation real erfolgreich, jedoch über Empirum kommt ein Fehler vom Client zurück

Post by Hendrik_Ambrosius » 03. Feb 2025, 18:17

Ja, nun macht das alles Sinn.

Dass kein ErrorLevel ausgegeben wird ist ja logisch, weil der CALL noch auskommentiert ist.
Wenn der dann 0 sein sollte, läuft das Paket korrekt durch.
Hendrik Ambrosius / Senior Presales Consultant
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com

Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.

G23
Posts: 137
Joined: 20. Jan 2021, 17:08
Contact:

Re: Deinstallation real erfolgreich, jedoch über Empirum kommt ein Fehler vom Client zurück

Post by G23 » 04. Feb 2025, 10:38

Hi,

hatte es für den Testzweck auskommentiert, jetzt wieder reinkommentiert und bekomme immernoch eine Fehlermeldung.
------------
04.02.2025 09:30:55, Section [Set:Deinstallation], Line 3:
ErrorLogMsg: INFO: 01 Deinstall check 01 start Die Installation/Deinstallation wurde mit einer Fehlermeldung abgebrochen! ErrorLevel:
------------
04.02.2025 09:30:55, Section [17289], Line 3:
ErrorLogMsg: INFO: 17289 start Die Installation/Deinstallation wurde mit einer Fehlermeldung abgebrochen! ErrorLevel:
------------
04.02.2025 09:30:55, Section [17289], Line 1:
ErrorLogMsg: INFO: 17289 ende Die Installation/Deinstallation wurde mit einer Fehlermeldung abgebrochen! ErrorLevel:
------------
04.02.2025 09:30:55
ErrorLogMsg: Fehler beim Aufruf von Deinstallation SSMS-Setup-DEU-Upgrade.exe

Code: Select all

[SetupInfo]
Author                  = %A%
CreationDate            = 12.06.2018
InventoryID             =
Description             = SQL Server Management Studio
Method                  =
Tested on               = Win7, Win10
Dependencies            =
Command line options    = /S2
Last Change             =
Build                   =

[VarDefInfo]
; <Variable>, <Type: 0=Computer 1=User>, <Allow NULL values: 0=No 1=Yes>

[Setup]
Version=15.0
ShowCaption=1
BlockInput=0
Platform=*

[Requirements]

[Application]
ProductName=SQL Server Management Studio
DeveloperName=Microsoft
Version=14.0.17254.0
Revision=1
SetupName=%ProductName% %Version% %SetupWizard%
Text1="%ProductName% %Version%",         Arial,           30, , 000000, 4,    , LEFT BOLD ITALIC 
Text2="%DeveloperName%",                 Arial,           24, , 000000, 4,    , LEFT BOLD ITALIC
Text8="%Company%",                       Arial,           18, , 000000, 4,  10, RIGHT BOLD ITALIC
Text9="%InstallationFor% %WindowsUser%", Arial,           16, , 000000, 4, -18, BOTTOM ITALIC LEFT
BackgroundColor=00B6FF,FFFFFF
CopyDialogRect=0%, 0%, 100%, 100%, HCENTER VCENTER
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
SrcDir=..
ApplicationDir=%ProgramFilesDir%\Empirum\%Developername%\%ProductName%\%Version%
SetupInfDir=Install
AskUninstallOld=1
ShellLinks=1
CommonShellLinks=1
CreateUnresolvableShellLinks=1
UseStringSection=Strings:09
UseSysStringSection=SysStrings:09
DateWarning=1
SizeWarning=1
Reboot=0
PreventExternalReboot=1
StartServicesOnReboot=0
CallTimeOut=3600
AbortAfterCallTimeOut=1
DisableCancelButton=1
ShowEndMessage=1
EndMessage=%EndMessageDesc%


[Strings:07]
Disk1=Installationsmedium 1
EndMessageDesc=Die Installation wurde erfolgreich abgeschlossen!
ErrorLogMessage=Die Installation/Deinstallation wurde mit einer Fehlermeldung abgebrochen!
InstallationFor=Installation für:
InstallerDesc=Dienstprogramm zum Installieren einzelner Komponenten.
InstallerName=Installationsprogramm
SetupWizard=Installations-Assistent
Uninstallation=deinstallieren
ErrorText=Fehler
CallingText=beim Aufruf von

[Strings:09]
Disk1=Installation media 1
EndMessageDesc=Installation was completed successfully!
ErrorLogMessage=The installation/uninstallation aborted with an error message!
InstallationFor=Installation for:
InstallerDesc=Service program to install single components.
InstallerName=Setup program
SetupWizard=Installation Wizard
Uninstallation=Uninstallation
ErrorText=Error
CallingText=launching

[SysStrings:07]
Users=Benutzer

[SysStrings:09]
Users=Users

[Environment]
CommonSetupDir=%CommonFilesDir%\Setup%SetupBits%
V_MachineValuesPath=\\%EmpirumServer%\Values$\MachineValues\%DomainName%
V_UserValuesPath=%HKLM,"Software\matrix42\Software Depot","HomeServer"%\Values$\UserValues\%UserDomain%
MSILogFile=%Temp%\MSI_%ProductName%.%Version%.%Revision%.log
; 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]!!!

[Encryption]

[Disks]
1=%Disk1%

[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 WINDOWS32, 0
1:..\..\..\..\User\x64\Mx42SynSem.dll, %System%,         OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP WINDOWS64, 0
1:%SetupInfDir%\Setup.inf,                             , NORMAL,                                             0
1:%Temp%\Setup64.exe,                  %CommonSetupDir%\Setup.exe, OPTIONAL NOSIZEWARNING SETUP ALWAYS WINDOWS64,      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 Values$\MachineValues\%DomainName%\%ComputerName%.ini or Values$\UserValues\%UserDomain%\%WindowsUser%.ini not found!
Abort

[Product]
#Set:Product, DONTDELETE
#Set:Deinstallation, DELETE

[Set:Product]
If DoesRegKeyExist ("HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft SQL Server Management Studio 14.0.17254.0","UninstallString") == 1 Then "Set:Reinstall" Else "Set:Installation"  EndIf

[Set:Installation]
AddMeter -20
Call "%Src%\SSMS-Setup-DEU.exe" /install /quiet /norestart
If "%ErrorLevel%" <> "0" Then "Set:InstallationError" EndIf

[Set:Reinstall]
AddMeter -20
;Call "%Src%\SSMS-Setup-DEU.exe" /repair /quiet /norestart
;If %ErrorLevel% <> "0" Then "Set:DeInstallationError" EndIf

[Set:Deinstallation]
-ErrorLogMsg INFO: 03 Deinstall Check over %ErrorLogMessage% ErrorLevel: %ErrorLevel%
If DoesRegKeyExist ("HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\{CE8DC62F-0A8E-4E52-9F09-E669C1E955BD},DisplayVersion") == "1" | DoesRegKeyExist ("HKLM,Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{CE8DC62F-0A8E-4E52-9F09-E669C1E955BD},DisplayVersion") == "1" Then "17254" EndIf
-ErrorLogMsg INFO: 02 Deinstall check 02 start  %ErrorLogMessage% ErrorLevel: %ErrorLevel%
If DoesRegKeyExist ("HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\{A7AE83C0-CB80-4FBF-9F30-C15D47A2F264},DisplayVersion") == "1" | DoesRegKeyExist ("HKLM,Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{A7AE83C0-CB80-4FBF-9F30-C15D47A2F264},DisplayVersion") == "1" Then "17289" EndIf
-ErrorLogMsg INFO: 01 Deinstall check 01 start %ErrorLogMessage% ErrorLevel: %ErrorLevel%

[17254]
If "%ErrorLevel%" <> "0" Then "Set:DeInstallationError" EndIf
;If DoesFileExist ("%ProgramFilesDirx86%\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\Ssms.exe") == 1 Then "AbortUnInst" Else "SuccessUninstall" EndIf
-ErrorLogMsg INFO:  17254 ende %ErrorLogMessage% ErrorLevel: %ErrorLevel%
-Call "C:\ProgramData\Package Cache\{CE8DC62F-0A8E-4E52-9F09-E669C1E955BD}\SSMS-Setup-DEU.exe" /uninstall /quiet
-ErrorLogMsg INFO: 17254 start %ErrorLogMessage% ErrorLevel: %ErrorLevel%
-AddMeter -1

[17289]
If "%ErrorLevel%" <> "0" Then "Set:DeInstallationError2" EndIf
;If DoesFileExist ("%ProgramFilesDirx86%\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\Ssms.exe") == 1 Then "AbortUnInst" Else "SuccessUninstall" EndIf
-ErrorLogMsg INFO: 17289 ende %ErrorLogMessage% ErrorLevel: %ErrorLevel%
-Call "C:\ProgramData\Package Cache\{A7AE83C0-CB80-4FBF-9F30-C15D47A2F264}\SSMS-Setup-DEU-Upgrade.exe" /uninstall /quiet
-ErrorLogMsg INFO: 17289 start %ErrorLogMessage% ErrorLevel: %ErrorLevel%
-AddMeter -1

[AbortUnInst]
-Abort
-ErrorLogMsg %ErrorLogMessage% ErrorLevel: %ErrorLevel%

[SuccessUninstall]
-Exit
-SET EndMessageDesc=Installation was completed successfully!
-ErrorLogMsg INFO: SuccessUninst start 

[Set:InstallationError]
ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% Installation SSMS-Setup-DEU.exe
Abort

[Set:DeInstallationError]
-Abort
-ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% Deinstallation SSMS-Setup-DEU.exe

[Set:DeInstallationError2]
-Abort
-ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% Deinstallation SSMS-Setup-DEU-Upgrade.exe

User avatar
Hendrik_Ambrosius
Moderator
Moderator
Posts: 8087
Joined: 13. Dec 2004, 23:10
Location: Adendorf/Lüneburg

Re: Deinstallation real erfolgreich, jedoch über Empirum kommt ein Fehler vom Client zurück

Post by Hendrik_Ambrosius » 04. Feb 2025, 14:34

Der Errorlevel ist weiterhin leer.
Dann bitte den Erfolg über DoesFileExist o.ä. abprüfen, nicht über den ErrorLevel.
Hendrik Ambrosius / Senior Presales Consultant
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com

Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.

G23
Posts: 137
Joined: 20. Jan 2021, 17:08
Contact:

Re: Deinstallation real erfolgreich, jedoch über Empirum kommt ein Fehler vom Client zurück

Post by G23 » 07. Feb 2025, 15:29

Hallöchen,

leider Nein, die letzten Tage gab es ein paar andere Themen, deswegen erst jetzt die Rückmeldung.
Das Paket läuft trotz DoesFileExist immernoch auf Fehler, obwohl ich es neu erstellt habe und auf die EXE prüfen lasse.

Code: Select all

[SetupInfo]
Author                  = %Autor%
CreationDate            = %Datum%
InventoryID             = 
Description             = SQL Server Management Studio
Method                  = 
Tested on               = Win10
Dependencies            = 
Command line options    = /S2 
Last Change             = 03.02.2025
Build                   = 0

[VarDefInfo]
; <Variable>, <Type: 0=Computer 1=User>, <Allow NULL values: 0=No 1=Yes>

[Setup]
Version=14.2
ShowCaption=1
BlockInput=0
Platform=*

[Requirements]

[Application]
ProductName=SQL Server Management Studio
DeveloperName=Microsoft
Version=14.0.17254.0
Revision=1
SetupName=%ProductName% %Version% %SetupWizard%
Text1="%ProductName% %Version%",         Arial,           30, , 000000, 4,    , LEFT BOLD ITALIC 
Text2="%DeveloperName%",                 Arial,           24, , 000000, 4,    , LEFT BOLD ITALIC
Text8="%Company%",                       Arial,           18, , 000000, 4,  10, RIGHT BOLD ITALIC
Text9="%InstallationFor% %WindowsUser%", Arial,           16, , 000000, 4, -18, BOTTOM ITALIC LEFT
BackgroundColor=00B6FF,FFFFFF
CopyDialogRect=0%, 0%, 100%, 100%, HCENTER VCENTER

UserKeyName=%DeveloperName%\%ProductName%
MachineKeyName=%DeveloperName%\%ProductName%\%Version%
UninstallKeyName=%DeveloperName% %ProductName% %Version%
UninstallDisplayName=%ProductName% %Version%
;UserKeyName=$Matrix42Packages$\%DeveloperName%\%ProductName%
;MachineKeyName=$Matrix42Packages$\%DeveloperName%\%ProductName%\%Version%
;UninstallKeyName=Matrix42 - %DeveloperName% %ProductName% %Version%
;UninstallDisplayName=Matrix42 - %DeveloperName% %ProductName% %Version%
UninstallString=%ReinstallString% /U
ReinstallString="%CommonSetupDir%\Setup.exe" "%App%\%SetupInfDir%\Setup.inf"
 UninstallDisplayIcon="%ApplicationDir%\%SetupInfDir%\Setup.ico",0
;UninstallOptions=NOREMOVE NOREPAIR NOMODIFY
ReinstallMode=1
SrcDir=..

ApplicationDir=%ProgramFilesDir%\Empirum\%Developername%\%ProductName%\%Version%

SetupInfDir=Install
DataDir=%Personal%
AskUninstallOld=1
ShellLinks=1
CommonShellLinks=1
CreateUnresolvableShellLinks=1
UseStringSection=Strings:09
UseSysStringSection=SysStrings:09
DateWarning=1
SizeWarning=1
Reboot=0
PreventExternalReboot=1
StartServicesOnReboot=0
CallTimeOut=3600
AbortAfterCallTimeOut=1
DisableCancelButton=1
ShowEndMessage=1
EndMessage=%EndMessageDesc%

[Strings:07]
Disk1=Installationsmedium 1
EndMessageDesc=Die Installation wurde erfolgreich abgeschlossen!
ErrorLogMessage=Die Installation/Deinstallation wurde mit einer Fehlermeldung abgebrochen!
InstallationFor=Installation für:
InstallerDesc=Dienstprogramm zum Installieren einzelner Komponenten.
InstallerName=Installationsprogramm
SetupWizard=Installations-Assistent
Uninstallation=deinstallieren
ErrorText=Fehler
CallingText=beim Aufruf von

[Strings:09]
Disk1=Installation media 1
EndMessageDesc=Installation was completed successfully!
ErrorLogMessage=The installation/uninstallation aborted with an error message!
InstallationFor=Installation for:
InstallerDesc=Service program to install single components.
InstallerName=Setup program
SetupWizard=Installation Wizard
Uninstallation=Uninstallation
ErrorText=Error
CallingText=launching

[SysStrings:07]
Users=Benutzer

[SysStrings:09]
Users=Users

[Environment]
CommonSetupDir=%CommonFilesDir%\Setup%SetupBits%
V_MachineValuesPath=\\%EmpirumServer%\Values$\MachineValues\%DomainName%
V_UserValuesPath=%HKLM,"Software\matrix42\Software Depot","HomeServer"%\Values$\UserValues\%UserDomain%
MSILogFile=%Temp%\MSI_%ProductName%.%Version%.%Revision%.log
; 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]!!!

[Encryption]

[Disks]
1=%Disk1%

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

[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:%Temp%\Setup64.exe,                  %CommonSetupDir%\Setup.exe, OPTIONAL ALWAYS NOSIZEWARNING SETUP WINDOWS64,     0
1:..\..\..\..\User\Setup64.exe,        %CommonSetupDir%\Setup.exe, OPTIONAL ALWAYS NOSIZEWARNING SETUP WINDOWS64,     0
1:%SetupInfDir%\Setup.inf,                             , ALWAYS,                                             0
; 1:%SetupInfDir%\Setup.ico,                             , NORMAL,                                           0
; 1:%SetupInfDir%\Logo.bmp,                              , NORMAL,                                           0

[Product]
#Set:Product, DONTDELETE
#Set:Deinstallation, DELETE

[Set:Product]
; 1:, %App%, CREATE DIRECTORY CASCADED, 0
If DoesRegKeyExist ("HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft SQL Server Management Studio 14.0.17254.0","UninstallString") == 1 Then "Set:Deinstallation" Else "Set:Installation"  EndIf
If DoesRegKeyExist ("HKLM,SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{02296613-32f3-470c-90e5-310a732bd7a0}","UninstallString") == 1 Then "Set:Reinstall" Else "Set:Installation"  EndIf

[Set:Installation]
AddMeter -20
Call "%Src%\SSMS-Setup-DEU-20.exe" /install /quiet /norestart
If "%ErrorLevel%" <> "0" Then "Set:InstallationError" EndIf

[Set:Reinstall]
AddMeter -20
Call "%Src%\SSMS-Setup-DEU.exe" /repair /quiet /norestart
If %ErrorLevel% <> "0" Then "Set:DeInstallationError" EndIf

[Set:Deinstallation]
;Call "%Src%\SSMS-Setup-DEU-20.exe" /uninstall /quiet /norestart /log "%InstLogDir%\Install.log"
;If DoesFileExist ("C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\Ssms.exe") == "1" Then "Set:InstallationError" EndIf
-ErrorLogMsg INFO: 05 - all checked
If DoesRegKeyExist ("HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\{98566bce-3110-4bc9-b372-a014a6eb5b58},DisplayVersion") == "1" | DoesRegKeyExist ("HKLM,Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{98566bce-3110-4bc9-b372-a014a6eb5b58},DisplayVersion") == "1" Then "20230en" EndIf
-ErrorLogMsg INFO: 04 - 2030en
If DoesRegKeyExist ("HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\{02296613-32f3-470c-90e5-310a732bd7a0},DisplayVersion") == "1" | DoesRegKeyExist ("HKLM,Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{02296613-32f3-470c-90e5-310a732bd7a0},DisplayVersion") == "1" Then "20230" EndIf
-ErrorLogMsg INFO: 03 - 2030
If DoesRegKeyExist ("HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\{CE8DC62F-0A8E-4E52-9F09-E669C1E955BD},DisplayVersion") == "1" | DoesRegKeyExist ("HKLM,Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{CE8DC62F-0A8E-4E52-9F09-E669C1E955BD},DisplayVersion") == "1" Then "17254" EndIf
-ErrorLogMsg INFO: 02 - 17254
If DoesRegKeyExist ("HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\{A7AE83C0-CB80-4FBF-9F30-C15D47A2F264},DisplayVersion") == "1" | DoesRegKeyExist ("HKLM,Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{A7AE83C0-CB80-4FBF-9F30-C15D47A2F264},DisplayVersion") == "1" Then "17289" EndIf
-ErrorLogMsg INFO: 01 - 17289

[20230en]
;If "%ErrorLevel%" <> "0" Then "Set:DeInstallationError" EndIf
If DoesFileExist ("%ProgramFilesDirx86%\Microsoft SQL Server Management Studio 20\Common7\IDE\Ssms.exe") == "1" Then "AbortUnInst" Else "SuccessUninstall" EndIf
Sleep 30000
-Call "C:\ProgramData\Package Cache\{98566bce-3110-4bc9-b372-a014a6eb5b58}\SSMS-Setup-ENU.exe" /uninstall /quiet
-ErrorLogMsg INFO: 20230en start
-AddMeter -1

[20230]
;If "%ErrorLevel%" <> "0" Then "Set:DeInstallationError" EndIf
If DoesFileExist ("%ProgramFilesDirx86%\Microsoft SQL Server Management Studio 20\Common7\IDE\Ssms.exe") == "1" Then "AbortUnInst" Else "SuccessUninstall" EndIf
Sleep 30000
-Call "C:\ProgramData\Package Cache\{02296613-32f3-470c-90e5-310a732bd7a0}\SSMS-Setup-DEU.exe" /uninstall /quiet
-ErrorLogMsg INFO: 20230 start
-AddMeter -1

[17254]
;If "%ErrorLevel%" <> "0" Then "Set:DeInstallationError" EndIf
If DoesFileExist ("%ProgramFilesDirx86%\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\Ssms.exe") == "1" Then "AbortUnInst" Else "SuccessUninstall" EndIf
Sleep 30000
-Call "C:\ProgramData\Package Cache\{CE8DC62F-0A8E-4E52-9F09-E669C1E955BD}\SSMS-Setup-DEU.exe" /uninstall /quiet
-ErrorLogMsg INFO: 17254 start
-AddMeter -1

[17289]
;If "%ErrorLevel%" <> "0" Then "Set:DeInstallationError2" EndIf
If DoesFileExist ("%ProgramFilesDirx86%\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\Ssms.exe") == "1" Then "AbortUnInst" Else "SuccessUninstall" EndIf
Sleep 30000
-ErrorLogMsg INFO: 17289 ende
-Call "C:\ProgramData\Package Cache\{A7AE83C0-CB80-4FBF-9F30-C15D47A2F264}\SSMS-Setup-DEU-Upgrade.exe" /uninstall /quiet
-ErrorLogMsg INFO: 17289 start
-AddMeter -1

[AbortUnInst]
-Abort
-ErrorLogMsg %ErrorLogMessage% ErrorLevel: %ErrorLevel%

[SuccessUninstall]
-Exit
-SET EndMessageDesc=Installation was completed successfully!
-ErrorLogMsg INFO: SuccessUninst start 

[Set:InstallationError]
ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% %DeveloperName% %ProductName% %VM_CMD%
Abort
-Abort
-ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% %DeveloperName% %ProductName% %VM_CMD%


[Set:DeInstallationError]
ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% %DeveloperName% %ProductName% %VM_CMD%
Abort
-Abort
-ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% %DeveloperName% %ProductName% %VM_CMD%


[Set:DeInstallationError2]
ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% %DeveloperName% %ProductName% %VM_CMD%
Abort
-Abort
-ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% %DeveloperName% %ProductName% %VM_CMD%

07.02.2025 14:58:38 %DOMAIN% %HOSTNAME% SYSTEM Microsoft SQL Server Management Studio - 17 - DE 14.0.17254.0 1 Reinstall Failure
------------
Date/Time : 07.02.2025 14:58:38
ProductName: SQL Server Management Studio
Version : 14.0.17254.0
Revision : 1
SetupInf : C:\EmpirumAgent\Packages\Microsoft\SQL Server Management Studio\14.0.17254.0\Install\Setup.inf
------------
07.02.2025 14:58:38, Section [Set:InstallationError], Line 1:
ErrorLogMsg: Fehler beim Aufruf von Microsoft SQL Server Management Studio

User avatar
Hendrik_Ambrosius
Moderator
Moderator
Posts: 8087
Joined: 13. Dec 2004, 23:10
Location: Adendorf/Lüneburg

Re: Deinstallation real erfolgreich, jedoch über Empirum kommt ein Fehler vom Client zurück

Post by Hendrik_Ambrosius » 09. Feb 2025, 19:59

Dann vermute ich, dass die Deinstallationsroutine noch läuft wenn die Abprüfung auf die Datei gemacht wird.
Man könnte warten mit WaitWhileProcessExists bis das setup durch ist oder ein SLEEP einbauen.
Für den ersten Test am besten ein SLEEP für 5 Minuten.
Hendrik Ambrosius / Senior Presales Consultant
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com

Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.

Post Reply

Return to “Paketierung”

Who is online

Users browsing this forum: No registered users and 1 guest