Install (User) Failure Kann Datei 'C:\Program Files\Empirum\Hersteller\AppName\1.0\Install\Setup.inf' nicht öffnen!

Post Reply
G23
Posts: 79
Joined: 20. Jan 2021, 17:08
Contact:

Install (User) Failure Kann Datei 'C:\Program Files\Empirum\Hersteller\AppName\1.0\Install\Setup.inf' nicht öffnen!

Post by G23 » 08. Jul 2022, 14:19

Guten Tag,

die Software wird auf den Zielrechnern korrekt eingefügt. Die Desktopverküpfung ist auch da. Ich habe hier "nur" im Log ein Fehler im Userteil, im Machineteil funktioniert es. Ich würde mich über Hilfe sehr freuen, woran er sich aufhängt.

Log meldet:

08.07.2022 13:53:55 DOMÄNE HOSTNAME USERNAME VW TSB 1.0 0 Install (User) Failure Kann Datei 'C:\Program Files\Empirum\Hersteller\AppName\1.0\Install\Setup.inf' nicht öffnen!

08.07.2022 13:28:43 DOMÄNE HOSTNAME SYSTEM VW TSB 1.0 0 Reinstall (Machine) Success


Code des Packets

Code: Select all


[SetupInfo]
Author                  = Vorname Nachname
CreationDate            = 06.07.2022
InventoryID             =
Description             = AppName
Method                  = scripted
Tested on               = Win10
Dependencies            = 
Command line options    = /S2 /AW
Last Change             = 08.07.2022
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=AppName
DeveloperName=Entwicklername
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=AppName
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%%						   
Erfolg=0
Counter=0
; 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%\AppName-Generator.lnk,                     , NORMAL,                                             0
;1:%SetupInfDir%\setup.ico,                      		, 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]
#check:Installation, DONTDELETE
#Set:Desktopshortcut, MACHINE
#Reg:Product
#Ini:Product
#check:Deinstallation, DELETE
#Reg:OnUninstallProduct, DELETE

[check:Installation]
AddMeter -1
IF DoesFileExist ("%ProgramFilesDirX86%\AppName\Generator\AppName\Generator\AppName-Generator\AppName.jar") == 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\AppName") == "1" Then "Set:Repair" Else "Check_install_file" EndIf	

[Check_install_file]
IF DoesFileExist("%ProgramFilesDirX86%\AppName\Generator\AppName-Generator.zip") == "0" Then "Copy_files" Else "Set:Installation" EndIf

[Copy_files]
mkdir "C:\Program Files (x86)\AppName"
mkdir "C:\Program Files (x86)\AppName\Generator\"
mkdir "C:\Program Files (x86)\AppName\Generator\AppName-Generator\"
Copy "%Src%\AppName-Generator.zip" "C:\Program Files (x86)\AppName\Generator\" /S
Copy "%SRC%\AppName-Generator.lnk" "%Public%\Desktop\AppName-Generator.lnk" /S
-Sleep 30000
IF DoesFileExist("%ProgramFilesDirX86%\AppName\Generator\AppName-Generator.zip") == "1" Then "Set:Installation" EndIf


[Set:Installation] 
Copy "%SRC%\AppName-Generator.lnk" "%Public%\Desktop\AppName-Generator.lnk" /S
If DoesFileExist ("%Public%\Desktop\AppName-Generator.lnk") == "0" Then "IconIsThere" Else "Set:Desktopshortcut" EndIf

[IconIsThere]
UnZip("C:\Program Files (x86)\AppName\Generator\AppName-Generator.zip", "C:\Program Files (x86)\AppName\Generator\","","")
Sleep 60000
Set %Erfolg% = 1

[Set:Repair]
IF DoesFileExist(%ProgramFilesDirX86%\AppName-Generator\AppName-Generator.zip") == "0" Then "Copy_files" Else "Set:Installation" EndIf

[Set:Desktopshortcut]
Copy "%src%\install\AppName-Generator.lnk" "%Public%\Desktop\AppName-Generator.lnk" /S
Set %Erfolg% = 1

[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]

[Set:Deinstallation]
-Del "%Public%\Desktop\AppName-Generator.lnk"
-Del "%ProgramFilesDirX86%\AppName\"
-DelTree "%ProgramFilesDirX86%\AppName\Generator\"
-AddMeter -1

[check:Deinstallation]								 
IF DoesFileExist ("%ProgramFilesDirX86%\AppName\Generator\AppName-Generator\AppName.jar") == 1 Then "Set:Deinstallation" EndIf

[Set:DeInstallationError]
-Abort
-ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% bei Deinstallation Software

[Reg:OnUninstallProduct]
HKLM,"SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\AppName","Systemcomponent",0x00010001,"0x00000001"

[Reg:Product]
HKLM,"SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\AppName","Systemcomponent",0x00010001,"0x00000001"

[Ini:Product]		



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

Re: Install (User) Failure Kann Datei 'C:\Program Files\Empirum\Hersteller\AppName\1.0\Install\Setup.inf' nicht öffnen!

Post by G23 » 11. Jul 2022, 10:26

Falls jemand anderes die Problematik hat, der Fehler lag an folgendem Punkt:

Reg:Product und Ini:Product müssen auch mit Parametern versehen werden.

Code: Select all

[Product]
#check:Installation, DONTDELETE MACHINE
#Set:Desktopshortcut, MACHINE
#Set:Usershortcut, DONTDELETE CLIENT
#Reg:Product, DONTDELETE CLIENT
#Ini:Product, DONTDELETE
#check:Deinstallation, DELETE
#Reg:OnUninstallProduct, DELETE

Post Reply

Return to “Paketierung”

Who is online

Users browsing this forum: Ahrefs [Bot] and 6 guests