There are tens of command-line options that the SAP Installer supports, and a few hundred combinations too. In here, we discuss some of the most important combinations that will take you through most of your deployment requirements.
Before I get going through some of the most important scenarios, here are some things that are good to know:
- You can use /silent for a totally UI-less deployment, or /nodlg for a non-interactive deployment with a progress indicator. These are mutually exclusive, and usually give you the same end-result.
- The /silent or /nodlg installation command-line is visible (or even copy-paste-able) from the administrative console NWSAPSetupAdmin.
Now, lets get going with stuff that you need the most:
Question: How do I install a front-end product / component (say SAP GUI for Windows 710) silently?*Answer: </p><p><installation source>\setup\nwsapsetup.exe /silent /product="SAPGUI710"</p><p>In here, the item in bold above is the product's command-line name, which you can find via NWSAPSetupAdmin.</p><p> </p><p>Question: How do I uninstall a specific product (say SAP GUI for Windows 710) silently?</p><p>Answer:* In general, adding /uninstall to an install command-line will do the job:
nwsapsetup.exe /silent /product="SAPGUI710" /uninstall
Question: How do I install multiple components available on the Installation Server (say, SAP GUI for Windows 710 and Business Explorer) silently using a single command-line?Answer: Use the '' operator (no, really!):</p><p><installation source>\setup\nwsapsetup.exe /silent */product="SAPGUI710SAPBI"*\setup\nwsapsetup.exe /silent /package="Package Name"
Question: How do I uninstall all SAP front-end components from a Workstation?Answer: Use /Uninstall /All
nwsapsetup.exe /silent /uninstall /all
Question: How do I update workstations silently from an updated / patched Installation Server?Answer: \setup\nwsapsetup.exe /silent /update
Question: How do I apply the update selectively to (say) update only SAPGUI when the installation server contains updated version of other installed products too?Answer: \setup\nwsapsetup.exe /silent /product="SAPGUI710" /update
Question: How do I update an installed package?Answer: \setup\nwsapsetup.exe /silent /package="package name" /update
Question: I am doing a silent remote installation (via SMS or other landscape management tools). How do I get the workstation to restart automatically when done?Answer: Starting SAP Installer versions 8.1.0.81 and higher (shipped with SAPGUI PL9), use /ForceWindowsRestart in any of your install or uninstall or update command-lines. Example:\setup\nwsapsetup.exe /silent /product="SAPGUI710" /ForceWindowsRestart(Caution: This really will restart Windows automatically i.e. reboot the workstation when done.)