Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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: <,>,:,",/,\,|,?,*,.

...

  • 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

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.

 

Simpler Steps With Screenshots

...

Log into OneFlo using username configured

...

Download file

Click on the Below link to download the autoprint file

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

...

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

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

...

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

...

image-20240412-015212.pngImage Added

Edit Settings

  1. Open folder AutoPrint

...

  1. -TestUser1

  2. Edit file appsettings.json

  3. Please open the file under admin

...

  1. Generate Key

...

image-20240412-015826.pngImage Added

  1. Add AutoPrintAPI Key

...

image-20240412-015934.pngImage Added

  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

...

7. And add ClientID to file

...

  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

...

 

Get ClientID

Generate GUIDs online

Add ClientID to file

...

  1. Save and Close

Create Service

Open CMD prompt as Administrator

Navigate to install directory

cmdprompt.pngImage Removedimage-20240412-035219.pngImage Added

Activate

...

The Client

Execute the command Autoprint.WindowsService.exe /a to activate the windows service AutoPrint client

image-20240412-035328.pngImage Added

Create AutoPrint Windows Service

Execute the create command to link service to application

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

...

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

 

image-20240412-035549.pngImage Added

Check the service exists in Windows Services named OneFlo Autoprint Username

 image-20240412-035726.pngImage Added

Configure the Printer Settings In OneFlo

AutoPrint - OneFlo Printer Configuration

Repeat Steps For Each User

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

Stopping the service

Info

If you need to delete the service

sc.exe delete "OneFlo Autoprint Username"