1. Sailaja Sumanam
  2. PowerBuilder
  3. Tuesday, 17 September 2024 17:58 PM UTC

Hi,

 

I want to trigger one of my PB application (2022 R3 version) and make it run as windows service. I am trying to first set it up in my local laptop.

I am using NSSM to set the application as service. There are certain input login parameters which are needed to be provided to the application to run. Initially I have setup NSSM by providing the input arguments concatenated as command line argument and changed the code in my application object to look for it. If the command line argument is available then it will read the inputs and execute the application exe providing these login parameters. But I don't want this hardcoding to be done, instead it should pick up from a configuration / ini file having the details of the Login.

 

How can this be achieved through NSSM settings? Please let me know as I am stuck here and not able to proceed.

 

Thanks,

Sailaja.

Sailaja Sumanam Accepted Answer Pending Moderation
  1. Wednesday, 18 September 2024 14:24 PM UTC
  2. PowerBuilder
  3. # 1

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 18 September 2024 14:03 PM UTC
  2. PowerBuilder
  3. # 2

Hi Sailaja ;

  NSSM should work great for PB Apps as a service.   Why not just use an INI file for the login parameters?

Regards .. Chris

Comment
  1. Sailaja Sumanam
  2. Wednesday, 18 September 2024 14:20 PM UTC
Thanks Chris for the information. I had tried to setup the parameters in INI file and does this INI filed needs to be given as Arguments when setting up the service through NSSM as shown in the image?
  1. Helpful
  1. Chris Pollach @Appeon
  2. Wednesday, 18 September 2024 14:38 PM UTC
No, as the INI handling would be all done via your PB App. NSSM would only be used to start / stop the service. Thus, the App would be encapsulated from NSSM's POV.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.