Skip to content

im1ex/ImTryin.WindowsConsoleService

Repository files navigation

ImTryin.WindowsConsoleService

Library for creating Windows Services able to run as service and as console application.

Following command line arguments available:

                   - runs as Console service. Only one app instance is supported.

/hidden            - runs as Console service and hide console.
                     It is possible to show hidden console by starting app one more time.
                     And hide it again when console minimizes.

/installConsole    - installs Console service. Creates shortcut in User's Startup folder.
/uninstallConsole  - installs Console service. Deletes shortcut from User's Startup folder.

/installService    - installs Windows service. Administrative privileges are required.
/uninstallService  - uninstalls Windows service. Administrative privileges are required.

/startService      - starts Windows service. Administrative privileges are required.
/stopService       - stops Windows service. Administrative privileges are required.

/service           - runs as Windows service.
                     Only usable then starting by Window Service Control Manager.

See https://github.com/imlex/ImTryin.WindowsConsoleService/tree/master/ImTryin.WindowsConsoleService.SampleWindowsService for example.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages