Stop detect my application as a virus

前端 未结 4 1568
闹比i
闹比i 2021-01-14 07:17

I make an application that, when you run it, will put the .exe in Startup. I have this code for that:

RegistryKey rkApp = Registry.CurrentUser.OpenSubKey(\"S         


        
相关标签:
4条回答
  • 2021-01-14 07:20

    Is your application digitally signed? If not you should try signing your application (you need a public certificate, but that costs money)

    Application signing/verification

    0 讨论(0)
  • 2021-01-14 07:37

    If you need to run at startup, the generally preferred way is to run it as a windows service.

    If you need a gui as well, then you should have a gui that talks to the windows service that hosts your application.

    0 讨论(0)
  • 2021-01-14 07:38

    I think any way of having an application automatically attempt to run at startup will be flagged as virus like behavior by any anti-virus system. Just tell your users to approve the change when your solution is installing.

    Unless (of course) you are trying to write a virus.

    In that case stop.

    0 讨论(0)
  • 2021-01-14 07:39

    Typically your installer (MSI) would set the "launch application at startup" registry setting however I think that if your application is digitally signed with an authenticode signature then this problem will disappear.

    0 讨论(0)
提交回复
热议问题