Skip to content

Commit

Permalink
Some shitty antiviruses freak out when they see the string "SOFTWARE\…
Browse files Browse the repository at this point in the history
…Microsoft\Windows\CurrentVersion\Run" in code, opening this key in 2 steps will avoid false positive detections. Fixes #3.

Here is the shame list of AV with crappy heuristics:
Ad-Aware
AegisLab
Arcabit
Avast
AVG
BitDefender
Cyren
Emsisoft
eScan
F-Secure
GData
MAX
Palo Alto Networks
Qihoo-360
Rising
SentinelOne
TrendMicro-HouseCall
  • Loading branch information
poma committed Aug 30, 2017
1 parent 10a56ca commit b254748
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Hotsapi.Uploader.Windows/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ public string VersionString
public bool StartWithWindows
{
get {
var reg = Registry.CurrentUser.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Run");
var reg = Registry.CurrentUser.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion").OpenSubKey(@"Run");
return reg.GetValue("Hotsapi") != null;
}
set {
var reg = Registry.CurrentUser.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Run", true);
var reg = Registry.CurrentUser.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion").OpenSubKey(@"Run", true);
if (value) {
string command = $@"""{Directory.GetParent(AppDir)}\Update.exe"" --processStart Hotsapi.Uploader.exe --process-start-args ""--autorun""";
reg.SetValue("Hotsapi", command);
Expand Down
4 changes: 2 additions & 2 deletions Hotsapi.Uploader.Windows/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0.0")]
[assembly: AssemblyFileVersion("1.2.0.0")]
[assembly: AssemblyVersion("1.3.0.0")]
[assembly: AssemblyFileVersion("1.3.0.0")]

0 comments on commit b254748

Please sign in to comment.