Here's the script that I ended up slopping together. It should do the job, I
guess.
I /think/ it works, but I don't really have anything to connect to so who knows!
@@echo off
echo MSU SAP GUI Installation Script
echo.
set SourceDir="\\[server]\[share]\[dir]
reg query HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\SAPGUI710 > nul && goto installed
reg query HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\SAPGUI710 > 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%\msusapgui720.exe" /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
|