cancel
Showing results for 
Search instead for 
Did you mean: 

SAPSetup, how do I call uninstall SAPGUI 32bit version?

former_member793971
Discoverer
3,337

Hello SAPSetup Guru's

I am pretty new to using SAPSetup.exe and I am having trouble removing SAPGUI 7.70 32bit from our devices via SAPSetup onWindows 10 (OS-19044.3086) 64bit devices.

I can manually remove the previous 32bit SAPSUI version if I open a command promt as admin, change directory and run:

C:\Program Files (x86)\SAP\SapSetup\Setup>NwSapSetup.exe /uninstall /all /DisableRuntimeInstall /NoDlg

I was expecting to be able to be able to remove 32bit SAPGUI via SAPSetup using the below:

'====================================================================================================='

' Uninstall Previous SAP intallatios

'====================================================================================================='

NwEngine.Shell.ExecuteRC(String cmdline, Bool visible)

cmdline = %SapSrcDir%\NwSapSetup.exe /all /silent /uninstall /DisableRuntimeInstall /NoDlg

Else

NwEngine.Context.Log.Write ""%SapSrcDir%\NwSapSetup.exe " does not exist"

End If

The install fails complaining there can't be both 32 and 64bit versions in red text

Accepted Solutions (1)

Accepted Solutions (1)

former_member793971
Discoverer
0 Kudos

Thank You Harish,

I am able to un-install the 32bit version via the command prompt as you say.

My question is:

Can I get NwSAPSetup.exe to remove/un-install the previous 32bit SAPGUI and also Install the new SAPGUI 8SP 64bit version?

Many thanks

Stuart

Harish_Vatsa
Active Contributor

Dear Stuart,

Yes, you can install SAPGUI 8SP 64 bit version with NWSAPSetup.exe with the following command:

C:\Program Files\SAP\SapSetup\Setup>NwSapSetup.exe /install /silent /configpath="C:\path\to\config.xml"

Kindly update the parameters as per your system.

Note: Please run the above command as an administrator.

--Regards,H.V.
Harish_Vatsa
Active Contributor

Dear stuart.corrigan,

If your query is resolved and you don't have any further questions, request you to accept the answer.

--

Regards,

H.V.

Kim_Heckscher
Explorer
0 Kudos

Hi harishvatsa, @stuart.corrigan, had the Same question as I have.

I Also whant to create a single File Installer wich is able to uninstall the 32Bit Version

of SAP GUI and install the 64Bit Version!

All together on one executable File created by Installation Server!

Any Ideas ?

Regards
Kim

Answers (3)

Answers (3)

Harish_Vatsa
Active Contributor

Dear stuart.corrigan,

The error message you encountered suggests that the installation failed due to the presence of both 32-bit and 64-bit versions of SAP GUI on your device.

To resolve this issue, you need to uninstall the SAPGUI 32-bit version from your device. You can use the following command for uninstallation:

C:\Program Files (x86)\SAP\SapSetup\Setup>NwSapSetup.exe /uninstall /all /DisableRuntimeInstall /NoDlg

After successfully uninstalling the 32-bit version, you can proceed with the installation of the SAPGUI 64-bit version using the SAPSetup.exe tool.

--

Regards,

Kim_Heckscher
Explorer

OK now i have a Reply from Support:

Dear Mr. Heckscher,

It is notpossible to perform an uninstall during an installation process using event scripts.

The reason for this behavior is that the uninstall will start a new process of NwSapSetup.exe,
however only 1 instance of NwSapSetup.exe is possible (which is already running for the installation procedure).

What you can try is to use a VBS or windows logon script to perform an uninstall first, and then start the new installation.

Best regards,
Marc
SAP Product Support

OK We will start NwSapSetup.exe twice, first for the uninstallation of SAP GUI and then for the installation..

former_member793971
Discoverer
0 Kudos

Thank you for your advise and help