Self install Windows Service in .NET

后端 未结 3 1799
眼角桃花
眼角桃花 2020-12-12 17:40

I have read this question. I have same issue, but I don\'t understand the answer from lubos hasko. How exactly can I do it? Can you someone post me full walkthrough?

3条回答
  •  忘掉有多难
    2020-12-12 17:52

    System.Environment.UserInteractive property tells you that whether a Windows process or a service like IIS that runs without a user interface.

    If this property is false, do not display modal dialogs or message boxes because there is no graphical user interface for the user to interact with. Source

    Check this article as well.

提交回复
热议问题