This Batch script is used to install the services in the event they weren’t installed correctly. This can be run as a .bat file or as single command line items, though if you choose to run these in CMD ensure you delete the additional backslashes (used for escaping in a .bat file.)

Please note that you will have to adjust these scripts as necessary depending on drive letter or engine number.

To Delete a Bad Service:

sc delete <ServiceName>
POWERSHELL

If you are encountering an error after trying to create a service below following the above deletion, make sure to close the Services menu between the deletion and the creation of the new service or you may receive error 1072

To Use:

The script has all the services so only run what you need from this script and remove what you don’t.

sc create MongoDB binPath= "\"C:\GetSmart\MongoDB\bin\mongod.exe\" --config \"C:\getsmart\mongod.cfg\" --service" start=auto
sc create Globalforms binPath="\"C:\Program Files\nodejs\Node.exe\" \"C:\GlobalForms\Service\" --run" start=auto depend="MongoDB"
sc create ssBatchPortal binPath= "\"C:\Getsmart\BatchPortal\ssBatchPortal.exe\" -service" start=auto depend="MongoDB"
sc create SSLicenseClean binPath= "\"C:\GetSmart\SSLicenseClean.exe\" -service" start=auto depend="MSMQ"
sc create ssCaptureManager binPath= "\"C:\GetSmart\ssCaptureManager.exe\" -service" start=auto ***
sc create GlobalCapture_[EngineNumberHere] binPath= "\"C:\GetSmart\CaptureServices\GlobalCapture_1\Square9.GlobalCapture.exe\" -service" start=auto depend="MongoDB" **
sc create Square9.GlobalAction binPath= "\"C:\GetSmart\Square9.GlobalAction.exe\" -service" start=auto depend="MongoDB"
sc create GlobalAction_[EngineNumberHere] binPath= "\"C:\GetSmart\ActionServices\GlobalAction_1\Square9.GlobalAction.exe\" -service" start=auto depend="MongoDB" *
sc create ssContentIndex binPath= "\"C:\GetSmart\ssContentIndex.exe\" -service" start=auto
sc create ssDocWFManager binPath= "\"C:\GetSmart\ssDocWFManager.exe\" -service" start=auto
sc create ssImpEngine binPath= "\"C:\GetSmart\SSIMPORTERWS.exe\" -service" start=auto
POWERSHELL

* Only necessary on GlobalCapture versions 2.2.0.X or later

** Only necessary on GlobalCapture versions 2.1.2.X and prior

*** Only necessary on GlobalSearch versions prior to 4.4.X.X