11 Replies Latest reply on Nov 21, 2016 2:58 AM by aShen

    SAP GUI 7.20 Software Distribution

    Apprentice

      Hi There,

       

      Does anybody have any ideas of sending this via software distribution ?

       

      Thanks,

      Mark.

        • 1. Re: SAP GUI 7.20 Software Distribution
          Rookie

          Hi,

           

          The entire SAP package contains a NwSapSetupAdmin.exe. With the SAP installation server you can configure your SAP GUI with all necessary components or patchlevels and generate a self-installing Exe. Even custom actions or the saplogon.ini can be inserted into the package.
          This Exe file can be send with the command line /Silent.

          • 2. Re: SAP GUI 7.20 Software Distribution
            Apprentice

            Hi igeoper,

             

            I used the tool NwSapSetupAdmin.exe, and created a self installing exe for the SAP GUI. But there is a problem, when i run that exe the installer tells me the following:

             

            "This package cannot be installed as it is incomplete on the installation source"

             

            what did i do wrong ? also the exe file is 112mb.

             

            Thanks,

            Mark.

            • 3. Re: SAP GUI 7.20 Software Distribution
              Rookie

              Hi,

               

              From where you start the installation? Network share or via HTTP? Attempt to copy the package locally on the machine and start it.

              Which components and patch level you have integrated in the package? Or you have configured a script in the installation and the path is wrong? I read that the patch level 6 requires a hotfix.

              • 4. Re: SAP GUI 7.20 Software Distribution
                Apprentice

                Hi igeoper

                 

                I start the installation from my c:\ drive, as when i create the exe, i save it to the local hard drive. I dont use a network share or http.

                 

                I have included a screen shot of the package installer, for the components i am selecting (as you see i am selecting all the components for SAP GUI 7.20).

                 

                I have no script configured at all. All i did was simply created a package and then created the exe.

                 

                Thanks,

                Mark.

                • 5. Re: SAP GUI 7.20 Software Distribution
                  Apprentice

                  Here is how I got it to work: used SAPGUI720\setup\NwSapSetupAdmin.exe to select all the packages, saved the package under this as "SAPGUI720".  I use a folder under the C drive called "mis" (c:\mis) and copy, extract or move the install files there to keep for later use if needed.

                  Two batch files are used, one blank one, to copy the files down and a second one to run the install:

                  SAPGUI720_1COPY.bat:

                  --------------------------------------

                  @echo off

                  cls

                   

                  exit /B 0

                  --------------------------------------

                  SAPGUI720_2INSTALL.bat:

                  --------------------------------------

                  @echo off

                  :start
                  :: clear screen and set color
                  cls
                  title SAP GUI Install
                  color 1f
                  ::notes, winrar creates c:\mis\SAPGUI720 folder


                  :workin050
                  ::check if SAP files are there
                  if exist "C:\Program Files\LANDesk\LDClient\sdmcache\packages\SAPGUI720" goto workin100
                  if not exist "C:\Program Files\LANDesk\LDClient\sdmcache\packages\SAPGUI720" goto workin075

                  :workin075
                  ::SAP not installed exit
                  "%programfiles%\LANDesk\LDClient\sdclient.exe" /msg="RunCopyDownFirst"
                  exit /B 0


                  :workin100
                  ::extract files to c:\mis\SAPGUI720 folder

                  ::winrar was used to zip the files up

                  ::-s1 switch, start extract and show progress
                  echo extracting files
                  C:
                  CD\
                  CD "C:\Program Files\LANDesk\LDClient\sdmcache\packages\SAPGUI720"
                  SAPGUI720.exe -s1
                  echo.
                  echo.

                   

                  :workin150
                  ::uninstall old sapgui to install new sapgui
                  C:
                  CD\
                  echo Uninstalling old SAP to install new SAP
                  "C:\Program Files\SAP\SAPsetup\setup\NwSapSetup.exe" /product="SAPBI" /uninstall /silent
                  echo.
                  echo.

                  "C:\Program Files\SAP\SAPsetup\setup\NwSapSetup.exe" /uninstall /product="ECL710+GUI710TWEAK+BW350+KW710+GUI710ISHMED+SAPGUI710" /TitleComponent:"SAPGUI710" /IgnoreMissingProducts /silent
                  echo.
                  echo.

                  echo patch for office 03, will skip for 07
                  CD\
                  CD c:\mis\SAPGUI720\patch
                  office2003-KB907417.exe /Q
                  echo.
                  echo.

                   

                  :workin200
                  ::run sapgui720 install
                  echo running install
                  CD\
                  CD c:\mis\SAPGUI720\setup
                  echo.
                  echo.
                  NwSapSetup.exe /noDlg /Package="SAPGUI720"
                  echo.
                  echo.

                  :workin250
                  echo copying config files
                  echo.
                  xcopy /ey "c:\mis\SAPGUI720\saplogon.ini" "c:\windows"
                  echo.
                  echo.

                   

                  :workin300

                  ::copy over services file
                  CD\
                  CD C:\WINDOWS\system32\drivers\etc\
                  echo.
                  echo.
                  DEL /Q SERVICES_OLD
                  echo.
                  echo.
                  rename SERVICES SERVICES_OLD
                  echo.
                  echo.
                  xcopy /ey "c:\mis\SAPGUI720\SERVICES" "C:\WINDOWS\system32\drivers\etc\"
                  echo.
                  echo.

                   

                  :workin350
                  ::Install Patches
                  echo installing SAP patches
                  CD\
                  CD c:\mis\SAPGUI720\patch
                  echo.
                  echo.
                  echo gui patch 5
                  gui720_5.exe /noDlg
                  echo.
                  echo.
                  echo bex patch 3
                  bi720sp03p_.exe /noDlg
                  echo.
                  echo.

                   

                  :workin400
                  color 0f
                  echo Finishing up
                  echo.
                  echo.
                  echo cleanup....
                  ::Delete Icons

                  ::not my decision : )
                  %SystemDrive%
                  CD\
                  CD %allusersprofile%\desktop
                  del "SAP Logon.lnk"
                  del "Tweak SAP GUI.lnk"
                  echo.
                  echo.

                  ::Delete under program files
                  cd\
                  cd "C:\Documents and Settings\All Users\Start Menu\Programs"
                  rmdir /S /Q "Business Explorer"
                  echo.
                  rmdir /S /Q "SAP Front End"
                  echo.

                   

                  ::ie7 8 issue with new windows coming up blank

                  ::after SAPGUI install

                  CD\
                  CD c:\mis\SAPGUI720\Setup

                  SapRegSv.exe mshtml.tlb /s

                  echo.
                  echo    Installation is Complete.
                  echo.
                  echo.
                  echo.

                   

                  :end
                  exit /B 0

                  --------------------------------------

                  Since the install is about 784mb's, I zip it up using winrar or 7-zip.  Open the SAPGUI720 folder, select all, right click, add to archive, name it "SAPGUI720.exe" select Create SFX archive, path to extract to, etc, etc.  You will have to figure out the folder paths, etc, for extracting to, etc, I use 7-zip now.  Once zipped the install folder is about 487 mb's.

                  In Console, created two jobs, one is a batch push, Copy down SAPGUI720, using first batch file.  Second job is the install, made this available thru the software portal, etc.  Run copy job first, install job second. Good luck, we are still trying to get to version 7.20, there are many Notes(SAP patches) that need to be applied to many servers still.  Same basic process we used to push out SAPGUI 7.10 to about 6000+ workstations

                  • 6. Re: SAP GUI 7.20 Software Distribution
                    Specialist

                    In for later...

                     

                    I did something similar with 7.10 Patch 17 not to long ago.  I have a script that checked, let me see if I can post it a little later.

                    • 7. Re: SAP GUI 7.20 Software Distribution
                      Specialist

                      I created the compressed SAP install just like you did.  I created a BATCH distribution and included the compressed file with the BAT file.

                       

                      Here's my .bat file.

                       

                      It also updates as the task moves along.  You may need to remove some of the reboot commands as it's a bit tricky to get them to work on a regular basis.

                       

                      @ECHO ON
                      :: This batch file runs pre-reboot tasks, reboots, and
                      :: then runs post-reboot tasks.

                       

                      :checkparameter
                      :: Batch fails if two parameters are given or if the first
                      :: parameter is does not match a valid label.
                      IF NOT "%2."=="." GOTO invalidparameter
                      IF "%1."=="." GOTO pre-reboot
                      IF "%1"=="post-reboot" GOTO %1

                       

                      :invalidparameter
                      :: Only one parameter is allowed.
                      ECHO Error: Invalid Parameter
                      ECHO Valid parameter: [post-reboot]
                      sdclient.exe /msg="An invalid parameter (%errorlevel%) was passed, a manual install is needed."
                      GOTO End

                       

                      :pre-reboot
                      sdclient.exe /msg="Checking system - %date% - %time%"
                      ::some pre-reboot tasks happen here
                      ::This next line is an internal App that checks for SAP being installed
                      ::PrepSAPGUIupgrade.exe
                      IF "%ERRORLEVEL%"=="0" GOTO Post-Reboot
                      IF "%ERRORLEVEL%"=="80" GOTO Already-Installed
                      IF "%ERRORLEVEL%"=="3010" GOTO Reboot
                      GOTO ERROR

                       

                      :Reboot
                      sdclient.exe /msg="Rebooting - %date% - %time%"
                      sdclient.exe /onreboot /bat /p=%0 /cmds=post-reboot
                      sdclient.exe /reboot
                      GOTO End

                       

                      :Post-Reboot
                      sdclient.exe /msg="Installing - %date% - %time%"
                      ::some post-reboot tasks happen here
                      Default_SAP_Client_201077_1446.exe /noDlg
                      IF "%ERRORLEVEL%"=="0" GOTO Success
                      IF "%ERRORLEVEL%"=="129" GOTO Success
                      GOTO ERROR

                       

                      :Success
                      sdclient.exe /msg="Installation completed successfully - EC: %errorlevel% - %date% - %time%"
                      exit /b 0

                       

                      :Error
                      sdclient.exe /msg="Error (%errorlevel%) during installation process, manual install is needed - %date% - %time%"
                      exit /b %errorlevel%

                       

                      :Already-Installed
                      sdclient.exe /msg="Installation skipped, already installed - EC: %errorlevel% - %date% - %time%"
                      exit /b 0

                       

                      :End

                      • 8. Re: SAP GUI 7.20 Software Distribution
                        Rookie

                        I have a problem whem I want to execute my VBS.

                        At the beginning of the execution of ma package, I have this picture.

                         

                        Do you know how pass over this ?

                        Thanks

                        Stephane

                        • 9. Re: SAP GUI 7.20 Software Distribution
                          derekhamaker Apprentice

                          I deployed SAP 7.20 patch 6 with BW patch 5 successfully to about 2400 global users using an HTTP package.

                          I used the SAP Server Configuration to build my package the way I wanted.  I then created a single EXE using the same tool.

                          I had some other customizations (registry edits, deletion of shortcuts, etc) that I needed to do, so I called that exe and everything else from a batch file.

                          I then created a ZIP file and used WinZip Self Extractor (yeah- I bought a license for it) to convert the ZIP that had all the install files, batch file, extra files needed, etc into a single EXE.

                          I then built a distribution package with the single file using HTTP.

                          My delivery method was a download with prompt before install.

                          I multicasted globally for about two weeks before our deployment started.  I have had a near perfect success rate with this. My scarce one offs are a result of a real lack of full standardization of our systems.

                          If you want some more info, let me know. I'm more than happy to help.

                          -Derek

                          • 10. Re: SAP GUI 7.20 Software Distribution
                            wensenwu Rookie

                            Hi Can you give me some advise about SAP Gui 7.10 deployment using LDMS2016? I encounter some problem in additional file, I add all below files as additional file,but it failed with the return code"105" while the task start.

                            11.png

                            • 11. Re: SAP GUI 7.20 Software Distribution
                              aShen SupportEmployee

                              From the logs it seems you are trying to download a .config file which might be blocked by your IIS by default. You'll need to remove .config from the blocked extension to resolve this issue. Please follow these instructions (doc referenced: Issue: Some driver files are not getting copied to the computer with HII ):

                               

                              For IIS 7 modify the LANDESK web directory under the Default Web Site as follows:

                               

                              1. 1. Open Internet Information Services (IIS) Manager on the Core Server.
                              2. 2. Click on the LANDESK website under Sites | Default Web Site 3. Double-click Request Filtering in the center pane under IIS.
                              3. 4. In the Request Filtering pane on the "File Name Extensions" tab, right-click the file extensions that are failing to download and select the Remove option.
                              4. 5. Run IISRESET from Start | Run on the Core Server.
                              5. 6. Try software distribution again.
                              1 of 1 people found this helpful