SAP GUI and App-V

A couple of notes on howto sequence SAP GUI successfully within Application Virtualization 4.6. This requires that you know howto install SAP GUI. This recipe will not contain the steps to install SAP GUI. It will only contain App-V specific parts. This recipe is based on SAP GUI 7.2

This is not for anyone who does not know howto install and configure SAP GUI and all its prerequisites.

I am not kidding on that part – if you have questions on the below steps, don’t try this.

Pre sequencing

Ensure you have a clean sequencing machine with no Microsoft Office components installed.

Run the following command;

REG ADD HKCR\CLSID\{00020820-0000-0000-C000-000000000046}\InprocHandler32 /f
REG ADD HKCR\CLSID\{00020820-0000-0000-C000-000000000046}\InprocServer32 /f

This is prep work to resolve exports to Excel and the Excel-in-place feature – especially when you get the blank spreadsheet.

During sequencing

Install SAP GUI to the Q: – drive

Create new folder:  Q:\<suite name>\SAP\Common
Move (not copy) the following files from C:\Windows\system32 to Q:\<suite name>\SAP\Common: librfc32.dll, SAPbtmp.dll, icuin34.dll, and libsapu16vc90.dll
From Control Panel, add Q:\<suite name>\SAP\Common to the PATH environment variable.

The above action resolves any error messages relating to launching SAPLOGON.exe

Run the following commands;

REG DELETE HKCR\CLSID\{00020820-0000-0000-C000-000000000046}\InprocHandler32 /f
REG DELETE HKCR\CLSID\{00020820-0000-0000-C000-000000000046}\InprocServer32 /f

This actually resolves the issues when using Excel-in-place feature and getting a blank spreadsheet.

Post sequencing

Remove the following keys

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer

The above action resolves the conflict that occurs when installing SAPs packaged VC++ redists  (which are installed silently in the background) ontop of all other VC++ redists and causing errors when using a native Office.
Error message is; “Microsoft Excel has not been installed by the current user. Please run setup to install the application”

Ensure LOCAL_INTERACTION_ALLOWED is set to true

The above ensures interaction with locally installed applications and sequenced prerequisites

4 thoughts on “SAP GUI and App-V

  1. Shekhar Mantry Reply

    I virtualized SAP GUI 7.30 using APPV 5.0 SP2. During testing it was found that the virtual package was not using the INI files we configured during virtualizing but using the PATH variable set for the physical install (we had version 7.20 installed on the box). Can you help me fix this ? I dont want the APPV package to communicate with the physical install.

    Much appreciated.

    • nickekallen Post authorReply

      Hello,
      You can use Process Monitor to learn where SAP GUi tries to load the file from and see if that helps.

  2. Shekhar Mantry Reply

    Should APPV app communicate with system environment variables ?

  3. Daniel PG Reply

    I know this is an old thread but I have been vitualising SAP GUI 7.40 with App-V 5.0 and it’s working fine for the most part but for some reason I keep on getting the short dump MESSAGE_TYPE_X all over the system, SM04, PFCG, all sorts of places.
    Program SAPLOLEA
    Include LOLEAU02
    Module type (FUNCTION)
    Module Name AC_SYSTEM_FLUSH

    Has anyone seen this or got an ideas ?

Leave a Reply

Your email address will not be published. Required fields are marked *