I've updated the installation script we use to install the SAP GUI client on
our workstations for version 7.30. Hope you guys can make use of it. Make
sure you edit the Source variable with your server/share names.
@@echo off
echo MSU SAP GUI Installation Script
echo.
echo David Graff
echo Michigan State University
echo Physical Plant
echo [log in to unmask]
set SourceDir=\\server\share
set Installer=msusapgui_730.exe
echo.
echo Cleaning up shortcuts
del /f /q "%public%\Desktop\SAP Logon.lnk" > nul
del /f /q "%allusersprofile%\Desktop\SAP Logon.lnk" > nul
echo.
Echo Check for currently installed SAP GUI 7.30 - Feb 2013
reg query HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\SAPGUI710 | find "7.30 Compilation 1"> nul && goto installed
reg query HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\SAPGUI710 | find "7.30 Compilation 1" > nul && goto installed
echo.
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" > nul
del /f /q "%allusersprofile%\Desktop\SAP Logon.lnk" > nul
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
|