How to share data with an app launched as a Windows service

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hello there,

    So i'm creating an app that will be launched as a Windows service (it's a bluewing server app that will be always running on a Windows Server, i need it to be a service app to be able to launch with the system at each reboot) called "Bluewing.exe" and i have a monitor app called "Bluewing_monitor.exe".

    I tried to use "Shared Data" to be able share data between "Bluewing.exe" and "Bluewing_monitor.exe" but it doesn't work if "Bluewing.exe" is running as a Windows service...

    Is there any other extension or way to be able to achieve that?

  • Global Function object, Instance Communicator, and you could try just writing to a file. Once the other process stops writing to it, the other will be cleared for opening it.

    Darkwire Software Lead Programmer (C++ & C#)
    Please login to see this link. | Please login to see this link. | Please login to see this link. | Please login to see this link.

  • Global Function object, Instance Communicator, and you could try just writing to a file. Once the other process stops writing to it, the other will be cleared for opening it.

    I didn't expected the creator of the bluewing object to be the one to give me solutions, thank you :D

    I had the file method in head, but i was afraid that it could create issues. Because as i need immediate actions (when i change some settings in the main app by using the monitor app), it will be reading the text (ini) file everytime. I'll give a look to global function and instance communicator first ;)


    edit:

    Unfortunately, no extension seems to communicate when the app is launched as a service. :(

    (I'll try the simple text method)

  • You might have to have the service logged in as the user account of the monitoring program.

    You could use scheduled tasks instead of services, as well - you can set it to run every minute and cancel run if process is already running, for example.

    Darkwire Software Lead Programmer (C++ & C#)
    Please login to see this link. | Please login to see this link. | Please login to see this link. | Please login to see this link.

  • I had this issue with running an exe I created as a windows service. I am assuming you are using srvany.exe? If not, research it.

    Once you get the windows service running properly, you may be limited due to windows permission issues. Make sure you run the service from an administrator user account, and not the local service account.

    Also, keep in mind that if you run your exe as a service, and you have that exe file launch another exe file, it will not work.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!