Skip to content

Commit

Permalink
Workaround for antivirus detection
Browse files Browse the repository at this point in the history
  • Loading branch information
poma committed Jan 1, 2018
1 parent 4f39306 commit 27db4cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion Hotsapi.Uploader.Windows/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -225,12 +225,18 @@ public static void RestoreSettings()
Settings.Upgrade();

if (string.IsNullOrEmpty(Settings.ApplicationVersion)) { // < v1.7
var reg = Registry.CurrentUser.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion").OpenSubKey(@"Run");
/* Apparently even reading "start with windows" setting from the previous version triggers antivirus software
* Commenting this out
*
* Now "start with windows" setting will be lost and switched to "off" when upgrading from earlier versions
*
* var reg = Registry.CurrentUser.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion").OpenSubKey(@"Run");
if (reg.OpenSubKey(@"Run").GetValue("Hotsapi") != null) {
reg.OpenSubKey(@"Run", true).DeleteValue("Hotsapi", false);
DummyUpdateManager.CreateShortcutsForExecutable(App.AppFile, ShortcutLocation.Startup, false, "--autorun");
}
*/
} else {
var previous = Version.Parse(Settings.ApplicationVersion);

Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
environment:
core_version: 2.0.0
core_version: 2.0.1
GitHubToken:
secure: Hq962a6/5Qpa9d37AJuVplk7sYc4AYRn9b5dg4eLi1jXBkdvbj2zRsG+8r+4nNE3
image: Visual Studio 2017
Expand Down

0 comments on commit 27db4cd

Please sign in to comment.