Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/10se1ucgo/DisableWinTracking.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author10se1ucgo <hammaadu1@gmail.com>2015-08-04 00:58:37 +0300
committer10se1ucgo <hammaadu1@gmail.com>2015-08-04 00:58:37 +0300
commit0be17e737e53439aff260e25c459255ae0d5ed60 (patch)
tree1c122a206c484b93f235a43976e521edd2806f1c
parentf004a16d7bdb38efe933085dad8837c88dc58f99 (diff)
Because apparently people lose sleep over "Delete" being the first choice
-rw-r--r--README.md4
-rw-r--r--run.py8
2 files changed, 6 insertions, 6 deletions
diff --git a/README.md b/README.md
index 48bf824..420d50e 100644
--- a/README.md
+++ b/README.md
@@ -27,8 +27,8 @@ Clears and disables writing to the log located in "C:\ProgramData\Microsoft\Diag
Append known tracking domains to the HOSTS file located in "C:\Windows\System32\drivers\etc"
## Delete Services vs Disable Services?
-Selecting the "Delete" choice will completely delete the tracking services. This is the recommended choice.
-Selecting "Disable" however will simply stop the services from being able to run.
+Selecting "Disable" will simply stop the services from being able to run.
+Selecting the "Delete" choice will completely delete the tracking services.
#  
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
diff --git a/run.py b/run.py
index 5bbae51..bb31785 100644
--- a/run.py
+++ b/run.py
@@ -23,7 +23,7 @@ class WinFrame(wx.Frame):
self.redir = RedirectText(self.debug)
sys.stdout = self.redir
- if ctypes.windll.shell32.IsUserAnAdmin() != 1:
+ if ctypes.windll.shell32.IsUserAnAdmin() != 0:
self.warn = wx.MessageDialog(parent=wxpanel,
message="Program requires elevation, please run it as an administrator",
caption="ERROR", style=wx.OK | wx.ICON_WARNING)
@@ -47,7 +47,7 @@ class WinFrame(wx.Frame):
self.servicebox.Set3StateValue(0)
self.servicebox.Bind(wx.EVT_CHECKBOX, self.serviceradcheck)
- self.servicerad = wx.RadioBox(wxpanel, label="Service Method", pos=(135, 10), choices=["Delete", "Disable"])
+ self.servicerad = wx.RadioBox(wxpanel, label="Service Method", pos=(135, 10), choices=["Disable", "Delete"])
self.servicerad.Disable()
self.okbutton = wx.Button(wxpanel, -1, "Go Private!", (275, 25))
@@ -113,7 +113,7 @@ class WinFrame(wx.Frame):
except WindowsError:
print "Could not access HOSTS file. Is the program not elevated?"
- if self.servicerad.Selection == 0 and self.servicebox.IsChecked():
+ if self.servicerad.Selection == 1 and self.servicebox.IsChecked():
try:
win32serviceutil.RemoveService('dmwappushsvc') # Delete dmwappushsvc
print "dmwappushsvc successfully deleted."
@@ -126,7 +126,7 @@ class WinFrame(wx.Frame):
except pywintypes.error:
print "Diagnostics Tracking Service unable to be deleted. Deleted already, or is the program not elevated?"
- elif self.servicerad.Selection == 1 and self.servicebox.IsChecked():
+ elif self.servicerad.Selection == 0 and self.servicebox.IsChecked():
self.diagkeypath = r'SYSTEM\CurrentControlSet\Services\DiagTrack'
self.dmwakeypath = r'SYSTEM\CurrentControlSet\Services\dmwappushsvc'