null

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

To support advanced deployment scenarios, like multi-tenancy, or networking / permission issues, the service can be installed and activated manually without the MSI.

What does this mean?

If there are 4 separate printers, create x4 OneFlo users, one for each print queue. The sender will need to do these steps x4 times for each service on the server that has access to the printers.

Installation

  • Extract .zip package to a folder

  • Update the following settings in the appsettings.json file

    1. AutoprintApiKey: The API Key generated for the user via OneFlo.

    2. ClientId: THis needs to be set to a unique guid, can generate a new one at https://www.guidgen.com/

    3. AutoPrintServiceName: The service name should be unique to allow multiple instances of the service to run successfully. The name should meeting the following criteria:

      1. The name must be unique - if it is not uniquely named, the target windows service will not run. If there are existing services that are already running with the same name, this will cause issues.

      2. The name length cannot exceed 50 characters.

      3. The name should not have the following characters: <,>,:,",/,\,|,?,*,.

image-20240402-024451.png

  • Activate the client by running Autoprint.WindowsService.exe /activate from a command prompt in the installation directory.

  • At this point the service can be run as a console app as the logged in user if required, without installing it as a windows service.

  • But to install it as a windows service:

    • Run: sc.exe create "OneFlo Autoprint {custom text}" binpath=c:\ {installdirectory}\Autoprint.WindowsService.exe type= own start= auto depend= spooler

    • If the service needs to run as a user other than Local System, for instance if it needs the ability to access network printers, modify the service’s Login user manually through the services screen.

    • Start the service

 

Simpler Steps With Screenshots

Log into OneFlo

Log into OneFlo using username configured

login.png

Download file

Click on the Below link to download the autoprint file

Navigate to https://portal.oneflo.com.au/PrinterConfig/download-v2-zip

Download the Zip and unzip it

Configure Folder

Copy the whole folder AutoPrint 2.3.10 into C:\Program Files (x86)\Flip Group

  • if you don't have Flip group folder, you can create one

image-20240412-015112.png

Rename folder AutoPrint - 2.3.10 something meaningful related to username. Ideally name folder AutoPrint Username

image-20240412-015212.png

Edit Settings

  1. Open folder AutoPrint-TestUser1

  2. Edit file appsettings.json

  3. Please open the file under admin

image-20240402-030405.png

  1. Generate Key

image-20240412-015826.png

  1. Add AutoPrintAPI Key

image-20240412-015934.png

  1. Also to Get ClientID click on below link and click on Generate new GUID and copy to update in the above file

Generate GUIDs online

image-20240412-020232.png

7. And add ClientID to file

image-20240412-020535.png

  1. When creating a multi instance installation you will need to provide the AutoPrint service name, and for all installations it must be unique. (Alphanumeric only, limit of 50 chars)

So here I have put Autoprint-TestUser1 as here the username is unique

image-20240412-020335.png

 

  1. Save and Close

Create Service

Open CMD prompt as Administrator

Navigate to install directory

image-20240412-035219.png

Activate Service

Run Autoprint.WindowsService.exe /a to activate the windows service 

image-20240412-035328.png

sc.exe create "OneFlo Autoprint {custom text}" binpath=
c:\{installdirectory}\Autoprint.WindowsService.exe" type= own start= delayed-auto depend= spooler

If the service has been installed but can’t be seen then perhaps the service does not have a logon or access to printers

eg

sc.exe create "OneFlo Autoprint Username" binpath= "C:\Program Files (x86)\Flip Group\AutoPrint-AutoPrint-TestUser1\Autoprint.WindowsService.exe" type= own start= delayed-auto depend= spooler

 

image-20240412-035549.png

Check the service exists in Windows Services named OneFlo Autoprint Username

image-20240412-035726.png

 Please Follow this step again, for other users who are using that same workstation.

Configure the Printer Settings

AutoPrint - OneFlo Printer Configuration

Stopping the service

If you need to delete the service

sc.exe delete "OneFlo Autoprint Username"

  • No labels