Service Wrapper for oscam

Ok this is one of those “if you need it, you’ll know what I’m talking about posts”!

I recently started using oscam and being that I don’t like sever applications that need to run in the foreground I wrote a small windows service wrapper to handle oscam for me.

Just drop it in your oscam folder and install it by running oscamSVC -install

Using oscam as a system service also overcomes the issue that some people have found with  some USB card readers such as the Omnikey disconnecting or ejcecting when a remote desktop connection is made to the PC running oscam.



Version History & Changes – Current version

  • Added settings form (Loaded by starting oscamSVC.exe without any parameter)
  • Added start-up delay option
    Use this option if you see card detection errors in your oscam log. I did – even though I made oscamSVC dependent on the smartcard service.
    Adding the delay just lets Windows start a bit more which for what ever reason seems to help. It will be dependent on your reader.
    During the delay the service is kept in the ‘starting’ state so you can still add service dependencies using regedit.
    e.g. MediaPortal TVServer depends on oscamSVC.
  • Changed command line options from slash to dash
    (i.e oscamSVC.exe -install instead of oscamSVC.exe /install)

  • Initial public release




Requires .NET 2.0


oscamSVC (5678 downloads)

, , , ,

12 Responses to Service Wrapper for oscam

  1. ed April 25, 2019 at 5:43 am #

    Hi, is it possible to uninstall oscamsvc.exe and how to do? Thanks

    • RhysGoodwin October 7, 2019 at 6:11 pm #

      Hi Ed, very late reply sorry! simply run oscamSVC.exe -uninstall

  2. Sven December 23, 2018 at 9:31 pm #

    Hi, can you Share the code or redeploy the Tool with a modern .Net (4.x).

  3. marcos September 20, 2015 at 2:14 pm #

    please oscam need the program will be that you can help me


  4. Http://Buffalogalsellshomes.Com/ January 3, 2013 at 6:51 pm #

    Your blog post, “Service Wrapper for oscam” was
    indeed worth writing a comment down here in the comment section!
    Basically wanted to admit you really did a terrific
    work. Thanks for your effort -Margo

  5. tbergman July 11, 2011 at 5:52 pm #

    Thank you anyway. It’s all appreciated.



  6. tbergman July 11, 2011 at 5:34 pm #


    Now, a question that may be slightly off-topic.

    In Australia, the TV providers did something to the encryption that caused all of us that were using Oscam Cygwin, Acamd, TVsource via W7 Media centre to not receive the transmission and ending up with black screens only.

    I’ve done some research and believe that this might have something to do with AES keys (?).

    Would you have any insight into this, or be able to point me in the right direction?

    Thanks again

    • RhysGoodwin July 11, 2011 at 5:44 pm #

      Ah yes I’ve been following the thread on asutech. I wish a could help but unfortunately writing a Windows service wrapper in .NET is a far cry from writing c++ code like what is found in oscam! No I can’t help there sorry 🙁 All I can do is hope the same thing doesn’t happen down here.

  7. tbergman July 11, 2011 at 4:55 pm #


    does this mean that cygwin is no longer required?

    Forgive me if this a stupid question, but my knowledge is limited.

    • RhysGoodwin July 11, 2011 at 5:13 pm #

      Hey Tony, you will still need cygwin but all that means is that you need to have:


      in the same folder as oscam. That’s all the cygwin you need :). This service wrapper just controls starting and stopping of oscam and it means that oscam will start after a reboot without having to log on the PC.


  8. RhysGoodwin July 2, 2011 at 12:44 pm #

    Cheers Mike, let me know if you have any issues. I’ve only done basic testing.

  9. mike July 1, 2011 at 12:00 pm #

    thanks save the pain of having to do this manual. thanks

Leave a Reply