Make your own free website on

SAP Basis Components, Functional and ABAP Programming Books

Automatic installations of SAP

If you plan to do automatic installations for your SAP applications on each computer using the Windows logon scripts.
e.g. c:\winnt\system32\repl\import\scripts\ntlogon.bat

There's 3 command lines needed:

1. If you do have a GUI 4.5B or earlier already installed on the local PC, you should run SAPSWEEP to clean up the
    Windows registry. The command is:
    >Installation server>\Netinst\ SAPSWEEP /all /y /nocancel /delsubdirs /delregkeys

2. To install the GUI use command: \Netinst\SapSetup.exe /p:"Package name" /install /noDialog /silent

3. To automatically apply patches you have installed on the Installation server add the following command to your logon script:
    \Netinst \sapsetup.exe /Intellimode /CheckDB /p:

In addition you need to distribute the needed INI files

Before you can use the sapsetup /p:package name , you have to install SAPGUI Installation Server using sapgui installation CD, run sapsetup on dialog choose SAPGUI installation server.

It will then create SAPGUI Installation server and copy all the packages to the server.

It will also create a shortcut SAPADMIN.

Run SAPADMIN and it will prompt you to configure the installation server, and configure netinstall. After you have do that, you can also create your own packages using SAPADMIN dialog.

From then onwards, you can use netsetup /p:"packagename" /install /intellimode on (which is in the installation directory) your login script. You have to use options Intellimode so the user don't have to choose any options and if don't want the user to know about your installation use option /silent.

If you happened have 46B installed, you can use netsetup /update and it will update the component to 46D (an example of the new upgrade version), then you don't have to uninstall the 46B installation.

Back to Previous

Return to SAP Hints and Tips on Configuration and ABAP/4 Programming