I have created a C# application that I've been testing on my other computer throughout the developing phase. However now that I've completed the app with few recent things that I added, the app is detected as virus (AVG doesn't show what kind of virus). Here are a few changes I did:
- Added a registry setting to allow user to start the app at Windows Startup.
- Changed the Assembly Name and Assembly Information (Because I wanted to rename the app).
- Went into signing settings and clicked on Sign the ClickOnce manifests.
- Went into security and clicked this is a full trust application.
The app is just a simple weather application. It reads data from an XML and displays it. I never had a false positive until I did these changes. So what would be the problem here and how do I resolve 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);
}
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); }
Is what I used. And the full trust app is just for the sake of it, honestly I don't even know what it does.