HP Sprinter 11.50 installation hangs at “run_before_finish.bat” step

While installing Sprinter, the installation process hangs and cannot be finished successfully. No errors are observed, but in task manager the process "AddFullTrust.exe" is showed, but it is not progressing. If manually killed that process, the installation continued.

The reason of the problem is old version (1.1.xxx and older) of Microsoft .NET Framework installed on the machine.

The problem has been resolved in Sprinter 11.52 installer that can be downloaded from https://hpln.hp.com/group/sprinter.

If for some reason it is necessary to use an old installer please follow below steps to successfully install Sprinter:

1. Disable Data Execution Prevention (DEP):

Click Start, and then click Control Panel.

Under Pick a category, click Performance and Maintenance.

Under or Pick a Control Panel icon, click System.

Click the Advanced tab, and in the Startup and Recovery area, click Settings.

In the SystemStartup area, click Edit.

In Notepad, click Edit and then click Find.

In the Find what field, type /noexecute and then click Find Next.

In the Find dialog box click Cancel.

Replace the policy_level (for example, "OptIn" default) with "AlwaysOff" (without the quotes).

WARNING: Be sure to enter the text carefully. Your boot.ini file switch should now read:

/noexecute=AlwaysOff

In Notepad, click File and then click Save.

Click OK to close Startup and Recovery.

Click OK to close System Properties and then restart your computer.

2. Uninstalling of the old version of .NET Framework, which is causing the problem.

Error: Cannot find sprinter agent. You need to run sprinter agent on secondary machine

If you are getting the following error message when working with Sprinter

Error: Cannot find sprinter agent. You need to run sprinter agent on secondary machine

The cause of this error is due to some security settings in the customer’s environment, it is possible that Sprinter will fail to establish communication with the ‘Sprinter Agent’ on secondary machine (while customer attempts to execute test which requires the secondary machine for mirroring), in this case, the customer will see the error message during the tests startup.

In order to solve the problem (detect and fix the required security settings), please try the following steps:

1. On the secondary machine:

a. Close the ‘Sprinter Agent’ (if running): right-click on the tray icon, then click the ‘Exit’ option.

b. Change logging level of ‘Sprinter Agent’:

i. Go to ‘bin’ folder within installation of Sprinter.

ii. Open file ‘SprinterAgent.exe.config’.

iii. Find the comment which explains how to change the logging level (find this string: ‘To control the lowest logging level’).

iv. Act according the comment, and change the level to ‘All’.

c. Launch ‘Sprinter Agent’.

d. Find the URI where the ‘Sprinter Agent’ is listening:

i. Open file ‘%appdata%/HP/Sprinter/Log/SprinterAgent.exe.log’.

ii. Find entry which contains this string: ‘Inspection listener was opened successfully’.

iii. Copy the written value (e.g. ‘http://+:8080/HP_Sprinter_Agent_Service_Inspection/1/’) to notepad.

iv. Replace the ‘+’ with ‘127.0.0.1’ (e.g. create this text: ‘http://127.0.0.1:8080/HP_Sprinter_Agent_Service_Inspection/1/’).

e. Try to establish communication (via ‘127.0.0.1’) with the local ‘Sprinter Agent’:

i. Open the Internet Explorer browser.

ii. Copy the text from notepad to the browser’s address bar.

iii. Click ‘Enter’ (this action will send kind of HTTP request to the ‘Sprinter Agent’).

iv. The browser’s main window supposed to display text (the HTTP response which sent from ‘Sprinter Agent’).

v. Clicking on ‘View’ > ‘Source’ will display XML of the response. E.g.:

<HTML><BODY><?xml version="1.0" encoding="utf-16"?>

<InspectionInfoEx xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<SessionInfo>

<Username>…</Username>

<UserDomain>…</UserDomain>

<SessionId>…</SessionId>

</SessionInfo>

<Endpoints>

<string>net.tcp://localhost:64865/MirrorTestingAgentService</string>

<string>net.pipe://localhost/Agent-…/MirrorTestingAgentService</string>

</Endpoints>

<ProtectSessions>true</ProtectSessions>

</InspectionInfoEx></BODY></HTML>

vi. If all works fine (browser shows valid response from ‘Sprinter Agent’) – continue to paragraph ‘f’.

vii. If exists problem (browser shows error message) – customer should change security settings on this machine, until all works fine.

f. Try to establish communication (via real IP Address) with the local ‘Sprinter Agent’:

i. Repeat paragraph ‘e’, but now replace the ‘127.0.0.1’ with real IP Address of the secondary machine (e.g. enter this string to the browser’s address bar: ‘http://a.b.c.d:8080/HP_Sprinter_Agent_Service_Inspection/1/’, where ‘a.b.c.d’ stands for real IP Address of the secondary machine).

ii. If all works fine (browser shows valid response from ‘Sprinter Agent’) – continue to paragraph ‘2’.

iii. If exists problem (browser shows error message) – customer should change security settings on this machine, until all works fine.

2. On the primary machine:

a. Try to establish communication (via real IP Address) with the remote ‘Sprinter Agent’:

i. Repeat paragraph ‘1.f’ (but now from the primary machine).

ii. If all works fine (browser shows valid response from ‘Sprinter Agent’) – continue to paragraph ‘b’.

iii. If exists problem (browser shows error message) – customer should change security settings on the primary/secondary machine, until all works fine.

b. Try to establish communication (via Sprinter) with the remote ‘Sprinter Agent’:

i. Define and run test which use the secondary machine for mirroring.

ii. The test startup supposed to end successfully (without any error message).