kann mich jemand auf meinen Fehler hinweisen?
Code: Select all
28.02.2023 %DOMÄNE% %Hostname% SYSTEM %Produktname% 1.0 0 Uninstall (Machine) Reboot Pending
28.02.2023 %DOMÄNE% %Hostname% %Username% %Produktname% 1.0 0 Uninstall (User) Success
Matrix42 UEM Client mehrere male abgerufen.
Machine Teil bekommt keine Rückbestätigung.
Wie kann ich dies bestätigen?
setup.inf
Code: Select all
[SetupInfo]
Author = Mein Name
CreationDate = 31.01.2023
InventoryID = {%ID%}
Description = %Hersteller% %Produkt% 1.0
Method =
Tested on =
Dependencies =
Command line options = /AW /S2
Last Change = 31.01.2023
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=%Produkt%
DeveloperName=%Hersteller%
Version=1.0
Revision=0
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%, 77%, 100%, 100%, HCENTER
; Register all installations in common registry key
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"
;;
;UninstallDisplayIcon="%ApplicationDir%\%SetupInfDir%\setup.ico",0
;UninstallOptions=NOREMOVE NOREPAIR NOMODIFY
ReinstallMode=1
HideUninstall=0
SrcDir=..
ApplicationDir=%ProgramFilesDir%\Empirum\%Developername%\%ProductName%\%Version%
SetupInfDir=Install
DataDir=%Personal%
AskUninstallOld=0
ShellLinks=1
CommonShellLinks=1
CreateUnresolvableShellLinks=1
UseStringSection=Strings:09
UseSysStringSection=SysStrings:09
DateWarning=1
SizeWarning=0
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]
ReInstSuccessMessage1031=Die Konfiguration wurde erfolgreich abgeschlossen.
ReInstSuccessMessage1031_1=Die Konfiguration wurde abgeschlossen.
ReInstSuccessMessage1033=Configuration completed successfully.
ReInstSuccessMessage1033_1=Configuration completed.
MSILogFile=%Temp%\MSI_%ProductName%.%Version%.%Revision%.log
CommonSetupDir=%CommonFilesDir%\Setup%SetupBits%
Uninstallkey=%Produkt%
V_MachineValuesPath=\\%EmpirumServer%\Values$\MachineValues\%DomainName%
V_UserValuesPath=%HKLM,"Software\matrix42\Software Depot","HomeServer"%\Values$\UserValues\%UserDomain%
RegUninstallKey=HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\%Uninstallkey%,UnInstallString
DetectedDisplayVersion=%%HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\%Uninstallkey%,DisplayVersion%%
; 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:%SetupInfDir%\Setup.inf, , NORMAL, 0
;1:%SetupInfDir%\setup.ico, , NORMAL, 0
1:..\..\..\..\User\Setup64.exe, %CommonSetupDir%\Setup.exe, OPTIONAL NOSIZEWARNING SETUP ALWAYS WINDOWS64, 0
1:%SetupInfDir%\Setup.inf, , ALWAYS, 0
;1:%SetupInfDir%\setup_%Produkt%.bat, %ApplicationDir%, ALWAYS, 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]
#check:Installation, DONTDELETE
#Set:Desktopshortcut, MACHINE
#Reg:Product
#Ini:Product
#Set:DelDesktopshortcut, DELETE MACHINE
#check:Deinstallation, DELETE
#Reg:OnUninstallProduct, DELETE
[check:Installation]
AddMeter -1
IF DoesFileExist ("C:\Program Files\%Hersteller%\%Produkt%\%Produkt%.exe") == 1 Then "AppExist" Else "Check:Product" EndIf
[AppExist]
ReplaceEnv DetectedDisplayVersion
If %DetectedDisplayVersion% >= %DisplayVersion% & DoesRegKeyExist ("HKLM,Software\%MachineKeyName%\Setup,ProductName") == "0" Then "AppExistMsg" EndIf
[AppExistMsg]
ErrorLogMsg Application is already present. Installation is not executed. Only setup.inf is copied and package is registered. Exit!
SetReboot 2
Exit Application is already present and the package is only registered.
[Check:Product]
If DoesRegKeyExist ("HKLM,SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\%Produkt%") == "1" Then "Set:Repair" Else "Check_install_file" EndIf
[Check_install_file]
IF DoesFileExist("C:\Temp\%Produkt%\Setup_%Produkt%.exe") == "0" Then "Copy_files" Else "Set:Installation" EndIf
[Copy_files]
mkdir "C:\Temp\%Produkt%"
Copy "%Src%\Setup_%Produkt%.exe" "C:\Temp\%Produkt%\Setup_%Produkt%.exe"
Copy "%Src%\Setup_%Produkt%.bat" "C:\Temp\%Produkt%\Setup_%Produkt%.bat"
Copy "%Src%\uninstall_%Produkt%.bat" "C:\Temp\%Produkt%\uninstall_%Produkt%.bat"
;Copy "%SRC%\%Produkt%.ink" "%CommonDesktop%\%Produkt%.ink" /S
-Sleep 30000
IF DoesFileExist("C:\Temp\%Produkt%\Setup_%Produkt%.bat") == "1" Then "Set:Installation" EndIf
[Set:Installation]
CallHidden CMD /c "C:\Temp\%Produkt%\Setup_%Produkt%.bat"
;Befehl muss via BAT ausgeführt werden, da die " an bestimmten Stellen für die korrekte Ausführung gesetzt werden müssen
Sleep 900000
;Installation läuft auf einem schnellen System 10 - 15 Minuten
[Set:Repair]
IF DoesFileExist("C:\Temp\%Produkt%\Setup_%Produkt%.bat") == "0" Then "Copy_files" Else "Set:Installation" EndIf
[Set:Desktopshortcut]
Copy "%src%\%Produkt%.lnk" "%CommonDesktop%\%Produkt%.lnk"
[AppNotExistMsg]
-Exit The application is not present and the package is only unregistered.
-SetReboot 2
-ErrorLogMsg The application is not present. Uninstallation is not executed. Only setup.inf is deleted and package is unregistered.
Exit!
[AppNotExist]
If DoesRegKeyExist ("%RegUninstallKey%") == "0" Then "AppNotExistMsg" EndIf
[AbortUser]
ErrorLogMsg "Desktopverknüpfung wurde nicht erstellt."
Abort
[AbortMSIUnInst]
-Abort
-ErrorLogMsg %ErrorLogMessage% ErrorLevel: %ErrorLevel%
[SET:ChangeMSISourcelist]
ReplaceRegValue (HKCR,"Installer\Products\%V_MSIInstallerID%\Sourcelist","LastUsedSource","\\%EmpirumServer%","\\%%EmpirumServer%%", 1)
ReplaceRegValue (HKCR,"Installer\Products\%V_MSIInstallerID%\Sourcelist\Net","1","\\%EmpirumServer%","\\%%EmpirumServer%%", 1)
[Security:Product]
[Shell:Product]
[Set:DelDesktopshortcut]
CallHidden CMD /c "C:\Temp\%Produkt%\uninstall_%Produkt%.bat"
Copy "%Src%\Setup_%Produkt%.exe" "C:\Temp\%Produkt%\Setup_%Produkt%.exe"
Copy "%Src%\uninstall_%Produkt%.bat" "C:\Temp\%Produkt%\uninstall_%Produkt%.bat"
-Del "%CommonDesktop%\%Produkt%.lnk"
[Set:Deinstallation]
;Löschen der Desktopverknüpfung
-Del "C:Users\Public\Desktop\%Produkt%.lnk"
;-Del "%CommonDesktop%\%Produkt%.lnk"
;Löschen der verbliebenen Daten via M42 - ende
-Del "C:\ProgramData\Microsoft\Windows\Start Menu\Programms\%Produkt% 2016 R6\"
-DelTree "C:\ProgramData\Microsoft\Windows\Start Menu\Programms\%Produkt% 2016 R6\"
-Del "C:\ProgramData\Microsoft\Windows\StartMenu\Programms\%Produkt% 2016 R6"
-DelTree "C:\ProgramData\Microsoft\Windows\StartMenu\Programms\%Produkt% 2016 R6"
-Del "C:\Program Files\%Hersteller%\%Produkt% Suite\"
-DelTree "C:\Program Files\%Hersteller%\%Produkt% Suite\"
-Del "C:\ProgramData\%Hersteller%\%Produkt%"
-DelTree "C:\ProgramData\%Hersteller%\%Produkt%"
-Del "C:\ProgramData\Microsoft\Windows\Startmenü\Programme\%Produkt% 2016 R6"
-DelTree "C:\ProgramData\Microsoft\Windows\Startmenü\Programme\%Produkt% 2016 R6"
;Löschen der verbliebenen Daten via M42 - start
;Löschen der verbliebenen Daten via CMD - ende
-CallHidden cmd /c "DelTree C:\Programme\%Hersteller%\%Produkt% Suite\"
-CallHidden cmd /c "DelTree C:\Program Files\%Hersteller%\%Produkt% Suite\"
-CallHidden cmd /c "DelTree C:\ProgramData\%Hersteller%\%Produkt%"
-CallHidden cmd /c "DelTree C:\ProgramData\Microsoft\Windows\Startmenü\Programme\%Produkt% 2016 R6"
;Löschen der verbliebenen Daten via CMD - start
;Ausführen des Uninstall via Bat
Sleep 4000
;00
-CallHidden CMD /c "C:\Temp\%Produkt%\uninstall_%Produkt%.bat"
;Ausführen des Uninstall via Bat
;Beenden der Service via Matrix - ende
-StopService "%Produkt% Integration Service"
-StopService "%Produkt% Print Scheduler"
-StopService "%Produkt% System Service"
;Beenden der Service via Matrix - start
;Beenden der Service via net stop dienst name - ende
-Callhidden cmd /c "net stop %Produkt% Integration Service"
-Callhidden cmd /c "net stop %Produkt% Print Scheduler"
-Callhidden cmd /c "net stop %Produkt% System Service"
;Beenden der Service via net stop dienst name - start
;Beenden der Service via net stop dienst name - ende
-Callhidden cmd /c net stop %Produkt% Integration Service
-Callhidden cmd /c net stop %Produkt% Print Scheduler
-Callhidden cmd /c net stop %Produkt% System Service
;Beenden der Service via net stop dienst name - start
;Beenden der Service via net stop prozess id - start
-Callhidden cmd /c net stop Integration.Service
-Callhidden cmd /c net stop PrintScheduler.Service
-Callhidden cmd /c net stop BtSystem.Service
;Beenden der Service via net stop prozess id - start
;Löschen der Service via cmd - ende
-Callhidden cmd /c "sc delete %Produkt% Integration Service"
-Callhidden cmd /c "sc delete %Produkt% Print Scheduler"
-Callhidden cmd /c "sc delete %Produkt% System Service"
;Löschen der Service via cmd - start
;
;Löschen der RegKeys
-CallHidden cmd /c reg delete "HKLM\SYSTEM\CurrentControlSet\Services\%Produkt%" /f
;
-CallHidden cmd /c reg delete "HKLM\SYSTEM\CurrentControlSet001\Services\Produkt" /f
;
-CallHidden cmd /c reg delete "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Produkt" /f
-CallHidden cmd /c reg delete "HKLM\SOFTWARE\%Hersteller%\Produkt" /f
-CallHidden cmd /c reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Produkt" /f
-CallHidden cmd /c reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{RegCode}" /f
-CallHidden cmd /c reg delete "HKCR\Produkt" /f
-CallHidden cmd /c reg delete "HKCU\SOFTWARE\Hersteller\Produkt" /f
;Löschen der RegKeys
[check:Deinstallation]
IF DoesFileExist ("C:\Program Files\Hersteller\Produkt\Produkt.exe") == 1 Then "Set:Deinstallation" Else "AppNotExist" EndIf
[Set:DeInstallationError]
-Abort
-ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% bei Deinstallation
[Reg:OnUninstallProduct2]
[Reg:OnUninstallProduct]
-HKLM,"SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Produkt"
-HKLM,"SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Produkt"
-HKLM,"SOFTWARE\Hersteller\Produkt"
-HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Produktname"
-HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{RegKey}"
-HKCR,"Produkt",""
-HKLM,"SOFTWARE\Hersteller\Produkt"
-HKLM,"SOFTWARE\Hersteller\Common",,0x00000010
(diverse weitere Einträge bezüglich Registratur des Produkts)
[Reg:Product]
HKCU,"SOFTWARE\Hersteller\Produkt\Diverse Einträge",
[Ini:Product]
Lösung von Munzur, auf aktuellen UEM Client (2302.1.2 SFR) geupdated, hat funktioniert