I created a C # application that I tested on my other computer throughout the development phase. However, now that I have completed the application with a few recent things that I have added, the application is detected as a virus (AVG does not show which virus). Here are some changes I made:
- A registry setting has been added that allows the user to run the application when Windows starts.
- Changed the assembly name and assembly information (because I wanted to rename the application).
- I entered the subscription settings and clicked on the "Sign ClickOnce manifest" button.
- I went to the security system and clicked on this application with full confidence.
The app is just a weather app. It reads data from XML and displays it. I never had a false positive until I made these changes. So what is the problem and how to solve it?
I added the following settings:
RegistryKey rk = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true); if (startupCheck.Checked) { rk.SetValue("WeTile", "\"" + Application.ExecutablePath.ToString() + "\""); } else { rk.DeleteValue("WeTile", false); }
source share