Attached is my deployment command script for the SAP GUI. I originally used
it for the roll out last year and re-tooled it for this new version. Tested
against XP and Win 7 systems with the old GUI already installed, worked fine.
Good luck, everybody.
@@echo off
echo MSU SAP GUI Installation Script
echo.
set SourceDir=\\server\share
set Installer=msusapgui720P7.exe
del /f /q "%public%\Desktop\SAP Logon.lnk"
del /f /q "%allusersprofile%\Desktop\SAP Logon.lnk"
Echo Check for currently installed SAP GUI - Dec 2011
reg query HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\SAPGUI710 | find "7.20 Compilation 3"> nul && goto installed
reg query HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\SAPGUI710 | find "7.20 Compilation 3" > nul && goto installed
Echo Installing SAP GUI
eventcreate /id 1 /l Application /so "SAP GUI Installation" /t INFORMATION /d "SAP GUI installation process executing." > nul
"%SourceDir%\%Installer%" /silent || goto failed
del /f /q "%public%\Desktop\SAP Logon.lnk"
del /f /q "%allusersprofile%\Desktop\SAP Logon.lnk"
eventcreate /id 1 /l Application /so "SAP GUI Installation" /t INFORMATION /d "SAP GUI installation process complete." > nul
echo Installation Complete
exit /b 0
:installed
exit /b 0
:failed
eventcreate /id 1 /l Application /so "SAP GUI Installation" /t ERROR /d "SAP GUI installation process failed." > nul
echo Installation Failed
exit /b 1
|