Userteil wird nicht installiert

Post Reply
IronStorm
Posts: 72
Joined: 19. Jun 2018, 08:19
Contact:

Userteil wird nicht installiert

Post by IronStorm » 04. Apr 2019, 17:58

Hallo ich habe ein Problem mit einem Paket.
Dieses installiert sich (sowie es aussieht nur der Maschinenteil) aber kein Userteil.
ich habe in den Command Line Options /S2 /AW stehen und auch unter [Product] ein #Set:PostInstallClient, DONTDELETE CLIENT
aber dies wird nicht ausgeführt.
Wenn ich das Paket zuweise steht in der EMC immer nur
Windows Benutzer: System
Paket: ElsterFormular 20.2.0
Version: 20.2.0
Revision: 0
Modus: install
Ergebnis: Success

Bei Modus hätte ich ein install (Machine) erwartet und dann einen neuen Eintrag für meinen User mit install (User).
Kann mir hier eine sagen warum??

Code: Select all

[SetupInfo]
Author                  = 
CreationDate            =28.03.2019 15:34:12 
InventoryID             = 
Description             = 
Method                  = MSI
Tested on               = 
Dependencies            = 
Command line options    =/S2 /AW
Last Change             = 
Build                   = 

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

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

[Requirements]

[Application]
ProductName=ElsterFormular
DeveloperName=Thüringer Landesamt für Finanzen
Version=20.2.0
Revision=0
SetupName=%ProductName% %Version% %SetupWizard%
Text1="%ProductName% %Version%",         Arial,           30, , 2170F3, 4,    , LEFT BOLD ITALIC
Text2="%DeveloperName%",                 Arial,           24, , 2170F3, 4,    , LEFT BOLD ITALIC
Text8="%Company%",                       Arial,           18, , 2170F3, 4,  10, RIGHT BOLD ITALIC
Text9="%InstallationFor% %WindowsUser%", Arial,           16, , 2170F3, 4, -18, BOTTOM ITALIC LEFT
BackgroundColor=EFEFEF,000000
CopyDialogRect=0%, 77%, 100%, 100%, HCENTER

; Register all installations in common registry key
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=NOREPAIR NOMODIFY
ReinstallMode=1
SrcDir=..

; Matrix42 Scripts are copied in a common scripts directory
ApplicationDir=%CommonAppData%\$Matrix42Scripts$\%DeveloperName%\%ProductName%\%Version%

SetupInfDir=Install
DataDir=%Personal%
AskUninstallOld=1
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]
V_MSIInstallerID=C27ED55D1F5B6F94EAF709B888D641D0
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%
V_MachineValuesPath=\\%EmpirumServer%\Values$\MachineValues\%DomainName%
V_UserValuesPath=%HKLM,"Software\matrix42\Software Depot","HomeServer"%\Values$\UserValues\%UserDomain%

DateDD=left("%sysdate%",2)
DateMM=mid("%sysdate%",3,2)
DateYY=right("%sysdate%",4)
TimeHH=left("%LongSysTime%",2)
TimeMM=mid("%LongSysTime%",3,2)
TimeSS=right("%LongSysTime%",2)

Processname1=%Productname%.exe

InstLogFile=%APP%\Install.%DateYY%-%DateMM%-%DateDD%_%TimeHH%-%TimeMM%-%TimeSS%.log
UninstLogFile=%APP%\Uninstall.%DateYY%-%DateMM%-%DateDD%_%TimeHH%-%TimeMM%-%TimeSS%.log

InstPara=ALLUSERS=1 REBOOT=REALLYSUPPRESS ARPSYSTEMCOMPONENT=1 /qn /L*vx "%InstLogFile%"
UninstPara=REBOOT=REALLYSUPPRESS /qn /L*vx "%UninstLogFile%"

MSIName=ElsterFormularKomplett.msi
MSIPara=

; 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]!!!

[Processes]
Process1=%Processname1%,ElsterFormular,KillProcess ABORT

[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
1:Files\Pica.ini, , NORMAL,0

[Product]
#Set:Preinstall, DONTDELETE
#Set:PostInstall, DONTDELETE
#Set:PostInstallClient, DONTDELETE CLIENT

#Set:PostUninstallClient, DELETE CLIENT
#Set:PostUninstall, DELETE
#Set:PreUninstall, DELETE

[Set:PreInstall]
#Set:Vars
If %Productcode% == "" Then "Set:GetProductcode" EndIF
Set ExistingVersion = %%HKLM,SOFTWARE%X64Registry%\Microsoft\Windows\CurrentVersion\Uninstall\%ProductCode%,DisplayVersion%%
;Set ExistingVersion = FileVersion("%Programfiles%\7-Zip\7zFM.exe")
ReplaceEnv ExistingVersion
If %ExistingVersion% = "" Then "Set:Setup" ELSE "Set:Reinstall" EndIF

[Set:PostInstall]
If DoesProcessExist (%Processname1%) == "1" Then "Set:KillProcess" EndIF
Del "%CommonDesktop%\*%Productname%*.lnk"
#Set:GetProductcode
If DoesRegKeyExist ("HKLM,SOFTWARE%X64Registry%\Microsoft\Windows\CurrentVersion\Uninstall\%ProductCode%,Systemcomponent") == "0" Then "Reg:HideSoftwareinControlpanel" EndIF

[Set:PostInstallClient]
#Set:DeleteFolder
#Set:CopySettings

[Set:PostUninstallClient]
#Set:DeleteFolder

[Set:PostUninstall]

[Set:PreUninstall]
If DoesRegKeyExist ("HKLM,SOFTWARE%X64Registry%\Microsoft\Windows\CurrentVersion\Uninstall\%ProductCode%,UnInstallString") == "1" Then "Set:Setup" EndIF
If %Productcode% == "" Then "Set:GetProductcode" EndIF 

[Set:DeleteFolder]
CallHidden cmd /c RmDir /s /q "%appdata%\elsterformular"
-CallHidden cmd /c RmDir /s /q "%appdata%\elsterformular"

[Set:CopySettings]
1:%App%\Files\pica.ini, %appdata%\elsterformular\pica\ini\, CLIENT USEFILENAME ALWAYS

[Set:Setup]
AddMeter -1
AskKillProcesses 300,Process1
Call %System%\msiexec.exe /I "%SRC%\%MSIName%" %InstPara% %MSIPara%
If %ErrorLevel% > 0 Then "Set:ResultCode" EndIf
-Call %System%\msiexec.exe /X %ProductCode% %UninstPara%
-AskKillProcesses 300,Process1
-AddMeter -1

[Set:Reinstall]
AddMeter -1
AskKillProcesses 300,Process1
If %ExistingVersion% = "16.1.20150424" THEN "Set:UninstallVersion16.1.2" EndIF
If %ExistingVersion% = "18.0.2.18.20170123" THEN "Set:UninstallVersion18.0.2" EndIF
If %ExistingVersion% = "19.5.0" THEN "Set:DeinstallMSI" EndIF
If %ExistingVersion% = "20.0.0" THEN "Set:DeinstallMSI" EndIF
If %ErrorLevel% > 0 Then "Set:ResultCode" EndIf
Sleep 2000
Call %System%\msiexec.exe /I "%SRC%\%MSIName%" %InstPara% %MSIPara%

[Set:UninstallVersion16.1.2]
CallHidden cmd /c "%ProgramData%\elsterformular\setup\uninstall.exe" --mode unattended --unattendedmodeui none
Callhidden c:\windows\sysnative\REG.exe DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Elster ElsterFormular 16.1.20150424k" /f
Callhidden c:\windows\sysnative\REG.exe DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ElsterFormular" /f
Callhidden c:\windows\sysnative\REG.exe DELETE "HKLM\SOFTWARE\Elster" /f

[Set:UninstallVersion18.0.2]
CallHidden cmd /c "%ProgramData%\elsterformular\uninstall.exe" --mode unattended --unattendedmodeui none
Callhidden c:\windows\sysnative\REG.exe DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Elster ElsterFormular 18.0.2.18" /f
Callhidden c:\windows\sysnative\REG.exe DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ElsterFormular" /f
Callhidden c:\windows\sysnative\REG.exe DELETE "HKLM\SOFTWARE\Elster" /f

[Set:DeinstallMSI]
Call %System%\msiexec.exe /X %ProductCode% %UninstPara%
Callhidden c:\windows\sysnative\REG.exe DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Matrix42 - Thüringer Landesfinanzdirektion ElsterFormular 19.5.0" /f
CallHidden c:\windows\system32\REG.exe DELETE "HKLM\SOFTWARE%X64Registry%\Microsoft\Windows\CurrentVersion\Uninstall\Matrix42 - Thüringer Landesamt für Finanzen ElsterFormular 20.0.0" /f

[Set:KillProcess]
KillProcess %Processname1%

[Reg:HideSoftwareinControlpanel]
HKLM,"SOFTWARE%X64Registry%\Microsoft\Windows\CurrentVersion\Uninstall\%ProductCode%","Systemcomponent",0x00010001,"0x00000001"

[Set:GetProductcode]
-ReplaceEnv ProductCode
Set ProductCode=GetUninstallKeyName ("%Productname%*")
ReplaceEnv ProductCode

[Set:Vars]
If %PROCESSOR_ARCHITECTURE% == "AMD64" Then "Setx64" Else "Setx86" EndIf

[Setx64]
Set ARCHITECTURE=\x64
Set SYSTEMDIR=SysWOW64
Set X64REGISTRY=\WOW6432Node

[Setx86]
Set ARCHITECTURE=\x86
Set SYSTEMDIR=System32
Set X64REGISTRY=

[Set:ResultCode]
If %ErrorLevel% == "3010" Then "RebootRequired" Else "Abort" EndIf

[RebootRequired]
SetReboot 1
-SetReboot 1

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

[Shell:Product]

Sascha Bernhard
Posts: 171
Joined: 20. Aug 2007, 13:53
Contact:

Re: Userteil wird nicht installiert

Post by Sascha Bernhard » 05. Apr 2019, 09:24

Hi,
hast Du den Userteil evtl. nachträglich eingebaut?.
Wenn ja das Paket nochmal aus dem Depot schmeissen und neu einbinden.

LG
Sascha

IronStorm
Posts: 72
Joined: 19. Jun 2018, 08:19
Contact:

Re: Userteil wird nicht installiert

Post by IronStorm » 09. Apr 2019, 12:00

In den CommandLine Options war kein /AW hinterlegt :(
nun funktioniert es.
Danke!

Post Reply

Return to “Paketierung”

Who is online

Users browsing this forum: Google [Bot] and 8 guests