Configure the STPI Client as a Service

This step is required to have the STPISecure client start automatically when Windows starts, and have it run silently in the background.

Important Icon

IMPORTANT! If you have already configured the STPIClient application shortcut to start automatically with Windows by copying its shortcut to the Windows StartUp folder, be sure to un-do this configuration before proceeding further.

  1. Using Windows Explorer, browse to:

     

    C:\Program Files (x86)\PayFacto\STPISecure\Install_As_Service\STPI InstallAsService\

     

    Depending on your operating system, select the Win64 folder for 64-bit versions of Windows or Win32 for 32-bit versions of Windows.

    Path to Win64 folder

  2. Locate the file called InstallTGIClientService64.bat (for 64-bit Windows) or InstallTGIClientService32.bat (for 32-bit Windows). Right-click the file and select Run as administrator.

    Run as Admin

  3. You may see a UAC prompt. Click Yes.

    UAC Prompt - Windows Command Processor

  4. A command prompt window saying Running admin shell will appear. Leave it there. Do not close it.

    CMD Prompt - Running Admin Shell

  5. The MSSM service installer window will open. Click the browse button (3 dots) next to the Path field:

    MSSM Service Installer

  6. In the Locate Application File window, browse to:

     

    C:\Program Files (x86)\PayFacto\STPISecure\STPIClient\

     

    Select the Run.bat file and click Open.

    Select Run.bat

  7. You will be taken back to the MSSN service Installer window. Click the Install Service button.

    Install Service

  8. A confirmation message will appear. Click OK.

    Service Install Successful

  9. Locate the file called StartSTPIClientService64.bat (for 64-bit Windows) or StartSTPIClientService32.bat (for 32-bit Windows). Right-click the file and select Run as administrator.

    Start Service

  10. You may see a UAC prompt. Click Yes.

    UAC Prompt - Windows Command Processor

Verify that the service is running properly

  1. To verify that the service is started properly, right-click the Windows start button and select the Run… option. You can also press the Windows key + R on your keyboard. In the Open: box, type services.msc and click OK.

    Run

  2. In the services list, look for the StpiClient service. The Status should be Running and the Startup Type should be Automatic.

    Local Services Window

Test automatic startup

At this point, it is good practice to test your system to make sure it will recover properly in case of an unexpected restart. To do this, simply restart the PC and log back on.

From there, make sure that the STPIClient service is running by looking at the Windows services as described above.

Congratulations!

The STPI Client is now up-and-running. It is also properly configured as a service and will start automatically in the background whenever Windows restarts.