Packaging SAP GUI 7.50

Ahmed
Beiträge: 21
Registriert: 12. Dez 2018, 13:46
Kontaktdaten:

Packaging SAP GUI 7.50

Beitrag von Ahmed » 13. Dez 2018, 11:38

I try to packaging SAP GUI but when i try install it , ishould do all steps manual. i wan it installed automatic how can i do it?

Benutzeravatar
Hendrik_Ambrosius
Moderator
Moderator
Beiträge: 7409
Registriert: 13. Dez 2004, 23:10
Wohnort: Adendorf/Lüneburg

Re: Packaging SAP GUI 7.50

Beitrag von Hendrik_Ambrosius » 13. Dez 2018, 13:50

The call in the setup.inf should look like this:
Call "%Src%\Setup\NwSapSetup.exe" /Package:"Standard" /Silent

You can create the package with the SAPAdmin tool provided by SAP.
Hendrik Ambrosius / Senior Consultant
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 AG | 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 AG or of the support team.

Ahmed
Beiträge: 21
Registriert: 12. Dez 2018, 13:46
Kontaktdaten:

Re: Packaging SAP GUI 7.50

Beitrag von Ahmed » 14. Dez 2018, 13:03

Thank You very much. But it dosen't Work.
Could You please look at my Setup.ini Code .

Code: Alles auswählen

;****************************************************************************************************************
;*                                                                                                              *
;*  Copyright (C) 2010-2018 neo42 GmbH. All rights reserved.                                                    *
;*                                                                                                              *
;*  neo42 is a registered trademark of neo42 GmbH.                                                              *
;*  Matrix42 and Empirum are registered trademarks of Matrix42 AG.                                              *
;*  All other marks and names mentioned herein are trademarks of their respective companies and organisations.  *
;*                                                                                                              *
;*  Any other use, including disclosure to third parties, publication and dissemination is prohibited.          *
;*  This applies both to the entire script as well as parts of it. Subject to change.                           *
;*                                                                                                              *
;*  Terms and conditions see: http://www.neo42.de/agb/                                                          *
;*                                                                                                              *
;*  If you have questions or problems, please send an email to paketdepot@neo42.de.                             *
;*                                                                                                              *
;****************************************************************************************************************

[SetupInfo]
Author                  = Emperum Test
CreationDate            = 14.12.2018
InventoryID             = 
Description             = SAP SE SAP GUI for Windows 7.50  (Patch 8 Hotfix 1) 7.50 Compilation 2 DEU
Method                  = SAP Front-End Installer
Tested on               = Win7 x64, Win10 x64
Dependencies            = 
Command line options    = /S2 
Last Change             = 14.12.2018
Build                   = 0

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

[Application]
ProductName=SAP GUI for Windows 7.50  (Patch 8 Hotfix 1)
DeveloperName=SAP SE
Version=7.50 Compilation 2
Revision=0
;$$$neoDesign1
SetupName=%Packagename% %SetupWizard%
Text1="%Packagename%", Arial, 32, , 000000, 25#, 25#, LEFT BOLD
BackgroundColor=ffa0a0,ffffff
CopyDialogRect=25#, -25#, 0, 0, NORMAL
Logo=Logo.bmp, -25#, -25#, 0, 0, FFFFFF, TRANSPARENT
UninstallDisplayIcon=%App%\%SetupInfDir%\Setup.ico,0
;$$$neoDesign2
;$$$neoRegistry1
UserKeyName=neoPackages\%DeveloperName%\%ProductName%
MachineKeyName=neoPackages\%DeveloperName%\%ProductName%\%Version%
UninstallKeyName=neoPackage %DeveloperName% %ProductName% %Version%
UninstallDisplayName=neoPackage %DeveloperName% %ProductName% %Version%
;$$$neoRegistry2
UninstallString=%ReinstallString% /U
ReinstallString="%CommonSetupDir%\Setup.exe" "%App%\%SetupInfDir%\Setup.inf"
ReinstallMode=0
SrcDir=..
ApplicationDir=%ProgramFilesDir%\neoPackages\%DeveloperName%\%ProductName%\%Version%
SetupInfDir=neoInstall
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 fuer:
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
LANG=DEU
LANGID=1031
LANGTEXT=Deutsch

[SysStrings:09]
Users=Users
LANG=ENU
LANGID=1033
LANGTEXT=English

[Environment]
CommonSetupDir=%CommonFilesDir%\Setup%SetupBits%

Packagename=%DeveloperName% %ProductName% %Version%
DisplayVersion=7.50 Compilation 2

Uninstallkey=SAPGUI

InstallLocation=%ProgramFilesDir%\SAP\SapSetup\Setup

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)
InstLogFile=%APP%\Install.%DateYY%-%DateMM%-%DateDD%_%TimeHH%-%TimeMM%-%TimeSS%.log
UninstLogFile=%APP%\Uninstall.%DateYY%-%DateMM%-%DateDD%_%TimeHH%-%TimeMM%-%TimeSS%.log

RegUninstallKey=HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\%Uninstallkey%,DisplayName
RegDisplayVersion=%%HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\%Uninstallkey%,DisplayVersion%%

InstPara= "%Src%\neoSource\SAPALL.exe" /Package:"SAPALL" /nodlg
UninstProg="%ProgramFilesDir%\SAP\SapSetup\Setup\NwSapSetup.exe"
UninstPara=%UninstProg% /product="???" /nodlg /uninstall

[Processes]
APP1=saplogon.exe, Saplogon, KillProcess Abort

[Disks]
1=%Disk1%

[Options]
Installer  = %InstallerName%, COPYALWAYS, Installer,  "%InstallerDesc%"
neoProduct = %ProductName%,   COPYALWAYS, neoProduct, "%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:%Temp%\Setup64.exe,                  %CommonSetupDir%\Setup.exe, OPTIONAL NOSIZEWARNING SETUP ALWAYS WINDOWS64,      0
1:%SetupInfDir%\Logo.bmp,                              , NORMAL,                                             0
1:%SetupInfDir%\Setup.ico,                             , NORMAL,                                             0

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

[AppExistMsg]
ErrorLogMsg Application is already present. Installation is not executed. Only setup.inf is copied and package is registered. Exit!
SetReboot 2
Exit
[AppExist]
ReplaceEnv RegDisplayVersion
If %RegDisplayVersion% >= %DisplayVersion% & DoesRegKeyExist ("HKLM,Software\%MachineKeyName%\Setup,ProductName") == "0" Then "AppExistMsg" EndIf

[neoProduct]
#AppExist, MACHINE DONTDELETE
AskKillProcesses 600, APP1
#Set:neoProduct, DONTDELETE
#Set:neoUninstall, DELETE
#Product
-AskKillProcesses 600, APP1
#AppNotExist, MACHINE DELETE

[Set:neoProduct]
If DoesRegKeyExist ("%RegUninstallKey%") == "1" Then "neoReinstall" Else "neoInstall" EndIf

[neoReinstall]
AddMeter -1
Call %UninstPara%
If "%ErrorLevel%" == "3010" Then "neoRebootRequired" EndIf
Sleep 5000
If DoesRegKeyExist ("%RegUninstallKey%") == "1" Then "Set:neoUninstallError" EndIf
Call %InstPara%
If "%ErrorLevel%" == "3010" Then "neoRebootRequired" EndIf
Sleep 5000
If DoesRegKeyExist ("%RegUninstallKey%") == "0" Then "Set:neoInstallError" EndIf

[neoInstall]
AddMeter -1
Call %InstPara%
If "%ErrorLevel%" == "3010" Then "neoRebootRequired" EndIf
Sleep 5000
If DoesRegKeyExist ("%RegUninstallKey%") == "0" Then "Set:neoInstallError" EndIf

[Set:neoUninstall]
If DoesRegKeyExist ("%RegUninstallKey%") == "1" Then "Set:neoUninstallError" EndIf
-Sleep 5000
If "%ErrorLevel%" == "3010" Then "neoRebootRequired" EndIf
-Call %UninstPara%
-AddMeter -1

[neoRebootRequired]
SetReboot 1
-SetReboot 1

[Set:neoInstallError]
Set ErrorOutput=%ErrorLogMessage% ErrorLevel: %ErrorLevel%
ErrorLogMsg %ErrorOutput%
Abort %ErrorOutput%

[Set:neoUninstallError]
Set ErrorOutput=%ErrorLogMessage% ErrorLevel: %ErrorLevel%
ErrorLogMsg %ErrorOutput%
Abort %ErrorOutput%
-Abort %ErrorOutput%
-ErrorLogMsg %ErrorOutput%
-Set ErrorOutput=%ErrorLogMessage% ErrorLevel: %ErrorLevel%

;~~~~~~~~~~~~~~~~~ Diff - Tuning ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Product]
#Set:Product
#Reg:Product
#Ini:Product
#Security:Product
#Shell:Product

[Set:Product]
Set DESKTOPSHORTCUT=%%%SRC%\%Setupinfdir%\Setup.cfg,Options,DESKTOPSHORTCUT%%
ReplaceEnv DESKTOPSHORTCUT
If "%DESKTOPSHORTCUT%" != "1" Then "Set:Desktopshortcut0" Else "Set:Desktopshortcut1" EndIf
-Del "%CommonDesktop%\SAP Logon.lnk"

[Set:Desktopshortcut0]
Del "%CommonDesktop%\SAP Logon.lnk"

[Set:Desktopshortcut1]
Copy "%CommonPrograms%\SAP Front End\SAP Logon.lnk" "%CommonDesktop%\SAP Logon.lnk"

[Reg:Product]
HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\%Uninstallkey%","SystemComponent",0x00010001,1

[Ini:Product]

[Security:Product]

[Shell:Product]
Zuletzt geändert von Ahmed am 14. Dez 2018, 13:27, insgesamt 2-mal geändert.

Benutzeravatar
Hendrik_Ambrosius
Moderator
Moderator
Beiträge: 7409
Registriert: 13. Dez 2004, 23:10
Wohnort: Adendorf/Lüneburg

Re: Packaging SAP GUI 7.50

Beitrag von Hendrik_Ambrosius » 14. Dez 2018, 13:12

What does not work?
Any error messages?

Instead of using the neo42 template you can try the Matrix42 package wizard with the unattended option.
Hendrik Ambrosius / Senior Consultant
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 AG | 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 AG or of the support team.

Ahmed
Beiträge: 21
Registriert: 12. Dez 2018, 13:46
Kontaktdaten:

Re: Packaging SAP GUI 7.50

Beitrag von Ahmed » 14. Dez 2018, 13:20

Show me this Error Msg.
[Imgur]https://i.imgur.com/6UaczWv.png[/img]

The installation / deinstallation was aborted with an error message! ErrorLevel: 70

Benutzeravatar
Hendrik_Ambrosius
Moderator
Moderator
Beiträge: 7409
Registriert: 13. Dez 2004, 23:10
Wohnort: Adendorf/Lüneburg

Re: Packaging SAP GUI 7.50

Beitrag von Hendrik_Ambrosius » 14. Dez 2018, 13:59

I have no idea what your screenshot shows.
Actually I was asking for a setup error log message...
What happens if you run the sapsetup-call from a batchfile/commandline?
Hendrik Ambrosius / Senior Consultant
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 AG | 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 AG or of the support team.

Ahmed
Beiträge: 21
Registriert: 12. Dez 2018, 13:46
Kontaktdaten:

Re: Packaging SAP GUI 7.50

Beitrag von Ahmed » 14. Dez 2018, 14:03

This is setup error log message

Bild

Benutzeravatar
Hendrik_Ambrosius
Moderator
Moderator
Beiträge: 7409
Registriert: 13. Dez 2004, 23:10
Wohnort: Adendorf/Lüneburg

Re: Packaging SAP GUI 7.50

Beitrag von Hendrik_Ambrosius » 14. Dez 2018, 14:05

OK. Error 70 is "permission denied".
Did you run the command prompt with "run as administrator"?
Hendrik Ambrosius / Senior Consultant
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 AG | 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 AG or of the support team.

Ahmed
Beiträge: 21
Registriert: 12. Dez 2018, 13:46
Kontaktdaten:

Re: Packaging SAP GUI 7.50

Beitrag von Ahmed » 14. Dez 2018, 14:13

Yes i did. i have tested other Pakaging Software and working without problem but with SAP dosen't work.

Benutzeravatar
Hendrik_Ambrosius
Moderator
Moderator
Beiträge: 7409
Registriert: 13. Dez 2004, 23:10
Wohnort: Adendorf/Lüneburg

Re: Packaging SAP GUI 7.50

Beitrag von Hendrik_Ambrosius » 14. Dez 2018, 14:19

Do you get another error message if you remove /silent or /nodlg?
Hendrik Ambrosius / Senior Consultant
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 AG | 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 AG or of the support team.

Ahmed
Beiträge: 21
Registriert: 12. Dez 2018, 13:46
Kontaktdaten:

Re: Packaging SAP GUI 7.50

Beitrag von Ahmed » 14. Dez 2018, 14:26

i removed /nodlg now its work. but i have to do manuel installation.

Benutzeravatar
Hendrik_Ambrosius
Moderator
Moderator
Beiträge: 7409
Registriert: 13. Dez 2004, 23:10
Wohnort: Adendorf/Lüneburg

Re: Packaging SAP GUI 7.50

Beitrag von Hendrik_Ambrosius » 14. Dez 2018, 14:30

What about /silent?
Are you sure the SAPALL configuration exists? Did you double check in the SAPADMIN tool?
Hendrik Ambrosius / Senior Consultant
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 AG | 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 AG or of the support team.

Ahmed
Beiträge: 21
Registriert: 12. Dez 2018, 13:46
Kontaktdaten:

Re: Packaging SAP GUI 7.50

Beitrag von Ahmed » 14. Dez 2018, 14:38

i Added /silent and show the same Error massage

Benutzeravatar
Hendrik_Ambrosius
Moderator
Moderator
Beiträge: 7409
Registriert: 13. Dez 2004, 23:10
Wohnort: Adendorf/Lüneburg

Re: Packaging SAP GUI 7.50

Beitrag von Hendrik_Ambrosius » 14. Dez 2018, 14:43

OK - so the unattended setup does not work in general.
Maybe you should contact the SAP support and start creating the Empirum package after fixing the SAP unattended setup.
Hendrik Ambrosius / Senior Consultant
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 AG | 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 AG or of the support team.

Ahmed
Beiträge: 21
Registriert: 12. Dez 2018, 13:46
Kontaktdaten:

Re: Packaging SAP GUI 7.50

Beitrag von Ahmed » 14. Dez 2018, 14:48

I thik i should do that.Thank you for your time

Antworten

Zurück zu „Packaging“

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast