├── .gitattributes ├── .gitignore ├── .gitmodules ├── Deploy ├── Installer │ ├── Icon.ico │ ├── Installer.nsi │ ├── License.txt │ └── nsis.ps1 └── Portable │ └── portable.ps1 ├── DisableNvidiaTelemetry.sln ├── DisableNvidiaTelemetry ├── App.config ├── App.xaml ├── App.xaml.cs ├── Controller │ ├── NvidiaController.cs │ └── NvidiaControllerResult.cs ├── DisableNvidiaTelemetry.csproj ├── Icon.ico ├── MainWindow.xaml ├── MainWindow.xaml.cs ├── MarginSetter.cs ├── Model │ ├── ITelemetry.cs │ ├── TaskNotFoundException.cs │ ├── TelemetryRegistryKey.cs │ ├── TelemetryService.cs │ └── TelemetryTask.cs ├── PortableSettingsProvider.cs ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── Settings.Designer.cs │ └── Settings.settings ├── Resources │ ├── GitHub-Mark-Light-120px-plus.png │ ├── bg.png │ ├── binoculars-256.png │ ├── btn_donate_92x26.png │ ├── honeycomb-dark.png │ └── honeycomb-gray.png ├── SwitchCheckbox.cs ├── Utilities │ ├── AppUtils.cs │ ├── GeforceUtilities.cs │ ├── Logging.cs │ ├── ServiceHelper.cs │ ├── TaskSchedulerUtilities.cs │ ├── UpdaterUtilities.cs │ └── WindowsUtils.cs ├── View │ ├── TelemetryControl.xaml │ └── TelemetryControl.xaml.cs ├── app.manifest └── packages.config ├── README.md └── appveyor.yml /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | # User-specific files 5 | *.suo 6 | *.user 7 | *.userosscache 8 | *.sln.docstates 9 | 10 | # User-specific files (MonoDevelop/Xamarin Studio) 11 | *.userprefs 12 | 13 | # Build results 14 | [Dd]ebug/ 15 | [Dd]ebugPublic/ 16 | [Rr]elease/ 17 | [Rr]eleases/ 18 | x64/ 19 | x86/ 20 | bld/ 21 | [Bb]in/ 22 | [Oo]bj/ 23 | [Ll]og/ 24 | 25 | # Visual Studio 2015 cache/options directory 26 | .vs/ 27 | # Uncomment if you have tasks that create the project's static files in wwwroot 28 | #wwwroot/ 29 | 30 | # MSTest test Results 31 | [Tt]est[Rr]esult*/ 32 | [Bb]uild[Ll]og.* 33 | 34 | # NUNIT 35 | *.VisualState.xml 36 | TestResult.xml 37 | 38 | # Build Results of an ATL Project 39 | [Dd]ebugPS/ 40 | [Rr]eleasePS/ 41 | dlldata.c 42 | 43 | # DNX 44 | project.lock.json 45 | artifacts/ 46 | 47 | *_i.c 48 | *_p.c 49 | *_i.h 50 | *.ilk 51 | *.meta 52 | *.obj 53 | *.pch 54 | *.pdb 55 | *.pgc 56 | *.pgd 57 | *.rsp 58 | *.sbr 59 | *.tlb 60 | *.tli 61 | *.tlh 62 | *.tmp 63 | *.tmp_proj 64 | *.log 65 | *.vspscc 66 | *.vssscc 67 | .builds 68 | *.pidb 69 | *.svclog 70 | *.scc 71 | 72 | # Chutzpah Test files 73 | _Chutzpah* 74 | 75 | # Visual C++ cache files 76 | ipch/ 77 | *.aps 78 | *.ncb 79 | *.opendb 80 | *.opensdf 81 | *.sdf 82 | *.cachefile 83 | *.VC.db 84 | *.VC.VC.opendb 85 | 86 | # Visual Studio profiler 87 | *.psess 88 | *.vsp 89 | *.vspx 90 | *.sap 91 | 92 | # TFS 2012 Local Workspace 93 | $tf/ 94 | 95 | # Guidance Automation Toolkit 96 | *.gpState 97 | 98 | # ReSharper is a .NET coding add-in 99 | _ReSharper*/ 100 | *.[Rr]e[Ss]harper 101 | *.DotSettings.user 102 | 103 | # JustCode is a .NET coding add-in 104 | .JustCode 105 | 106 | # TeamCity is a build add-in 107 | _TeamCity* 108 | 109 | # DotCover is a Code Coverage Tool 110 | *.dotCover 111 | 112 | # NCrunch 113 | _NCrunch_* 114 | .*crunch*.local.xml 115 | nCrunchTemp_* 116 | 117 | # MightyMoose 118 | *.mm.* 119 | AutoTest.Net/ 120 | 121 | # Web workbench (sass) 122 | .sass-cache/ 123 | 124 | # Installshield output folder 125 | [Ee]xpress/ 126 | 127 | # DocProject is a documentation generator add-in 128 | DocProject/buildhelp/ 129 | DocProject/Help/*.HxT 130 | DocProject/Help/*.HxC 131 | DocProject/Help/*.hhc 132 | DocProject/Help/*.hhk 133 | DocProject/Help/*.hhp 134 | DocProject/Help/Html2 135 | DocProject/Help/html 136 | 137 | # Click-Once directory 138 | publish/ 139 | 140 | # Publish Web Output 141 | *.[Pp]ublish.xml 142 | *.azurePubxml 143 | # TODO: Comment the next line if you want to checkin your web deploy settings 144 | # but database connection strings (with potential passwords) will be unencrypted 145 | *.pubxml 146 | *.publishproj 147 | 148 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 149 | # checkin your Azure Web App publish settings, but sensitive information contained 150 | # in these scripts will be unencrypted 151 | PublishScripts/ 152 | 153 | # NuGet Packages 154 | *.nupkg 155 | # The packages folder can be ignored because of Package Restore 156 | **/packages/* 157 | # except build/, which is used as an MSBuild target. 158 | !**/packages/build/ 159 | # Uncomment if necessary however generally it will be regenerated when needed 160 | #!**/packages/repositories.config 161 | # NuGet v3's project.json files produces more ignoreable files 162 | *.nuget.props 163 | *.nuget.targets 164 | 165 | # Microsoft Azure Build Output 166 | csx/ 167 | *.build.csdef 168 | 169 | # Microsoft Azure Emulator 170 | ecf/ 171 | rcf/ 172 | 173 | # Windows Store app package directories and files 174 | AppPackages/ 175 | BundleArtifacts/ 176 | Package.StoreAssociation.xml 177 | _pkginfo.txt 178 | 179 | # Visual Studio cache files 180 | # files ending in .cache can be ignored 181 | *.[Cc]ache 182 | # but keep track of directories ending in .cache 183 | !*.[Cc]ache/ 184 | 185 | # Others 186 | ClientBin/ 187 | ~$* 188 | *~ 189 | *.dbmdl 190 | *.dbproj.schemaview 191 | *.pfx 192 | *.publishsettings 193 | node_modules/ 194 | orleans.codegen.cs 195 | 196 | # Since there are multiple workflows, uncomment next line to ignore bower_components 197 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 198 | #bower_components/ 199 | 200 | # RIA/Silverlight projects 201 | Generated_Code/ 202 | 203 | # Backup & report files from converting an old project file 204 | # to a newer Visual Studio version. Backup files are not needed, 205 | # because we have git ;-) 206 | _UpgradeReport_Files/ 207 | Backup*/ 208 | UpgradeLog*.XML 209 | UpgradeLog*.htm 210 | 211 | # SQL Server files 212 | *.mdf 213 | *.ldf 214 | 215 | # Business Intelligence projects 216 | *.rdl.data 217 | *.bim.layout 218 | *.bim_*.settings 219 | 220 | # Microsoft Fakes 221 | FakesAssemblies/ 222 | 223 | # GhostDoc plugin setting file 224 | *.GhostDoc.xml 225 | 226 | # Node.js Tools for Visual Studio 227 | .ntvs_analysis.dat 228 | 229 | # Visual Studio 6 build log 230 | *.plg 231 | 232 | # Visual Studio 6 workspace options file 233 | *.opt 234 | 235 | # Visual Studio LightSwitch build output 236 | **/*.HTMLClient/GeneratedArtifacts 237 | **/*.DesktopClient/GeneratedArtifacts 238 | **/*.DesktopClient/ModelManifest.xml 239 | **/*.Server/GeneratedArtifacts 240 | **/*.Server/ModelManifest.xml 241 | _Pvt_Extensions 242 | 243 | # Paket dependency manager 244 | .paket/paket.exe 245 | paket-files/ 246 | 247 | # FAKE - F# Make 248 | .fake/ 249 | 250 | # JetBrains Rider 251 | .idea/ 252 | *.sln.iml 253 | 254 | # ========================= 255 | # Operating System Files 256 | # ========================= 257 | 258 | # OSX 259 | # ========================= 260 | 261 | .DS_Store 262 | .AppleDouble 263 | .LSOverride 264 | 265 | # Thumbnails 266 | ._* 267 | 268 | # Files that might appear in the root of a volume 269 | .DocumentRevisions-V100 270 | .fseventsd 271 | .Spotlight-V100 272 | .TemporaryItems 273 | .Trashes 274 | .VolumeIcon.icns 275 | 276 | # Directories potentially created on remote AFP share 277 | .AppleDB 278 | .AppleDesktop 279 | Network Trash Folder 280 | Temporary Items 281 | .apdisk 282 | 283 | # Windows 284 | # ========================= 285 | 286 | # Windows image file caches 287 | Thumbs.db 288 | ehthumbs.db 289 | 290 | # Folder config file 291 | Desktop.ini 292 | 293 | # Recycle Bin used on file shares 294 | $RECYCLE.BIN/ 295 | 296 | # Windows Installer files 297 | *.cab 298 | *.msi 299 | *.msm 300 | *.msp 301 | 302 | # Windows shortcuts 303 | *.lnk 304 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "Deploy/Installer/NsisDotNetChecker"] 2 | path = Deploy/Installer/NsisDotNetChecker 3 | url = https://github.com/ReVolly/NsisDotNetChecker.git 4 | -------------------------------------------------------------------------------- /Deploy/Installer/Icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NateShoffner/Disable-Nvidia-Telemetry/f5434902eddec792043180d1a7f9e5f78aed1335/Deploy/Installer/Icon.ico -------------------------------------------------------------------------------- /Deploy/Installer/Installer.nsi: -------------------------------------------------------------------------------- 1 | !include "MUI2.nsh" 2 | !include "NsisDotNetChecker\nsis\DotNetChecker.nsh" 3 | 4 | !addplugindir "NsisDotNetChecker\bin" 5 | 6 | ;-------------------------------- 7 | ;Constants 8 | 9 | !define PRIMARY_EXE_NAME "Disable Nvidia Telemetry" 10 | 11 | !define PRODUCT_NAME "Disable Nvidia Telemetry" 12 | !define PRODUCT_VERSION "${APPLICATION_VERSION}" 13 | !define PRODUCT_PUBLISHER "Nate Shoffner" 14 | !define PRODUCT_WEB_SITE "https://nateshoffner.com" 15 | !define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\${PRIMARY_EXE_NAME}.exe" 16 | !define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" 17 | !define PRODUCT_UNINST_ROOT_KEY "HKLM" 18 | 19 | ;-------------------------------- 20 | ;General 21 | 22 | Name "${PRODUCT_NAME} ${PRODUCT_VERSION}" 23 | OutFile "${PRODUCT_NAME} ${PRODUCT_VERSION} Setup.exe" 24 | 25 | ;Default installation folder 26 | InstallDir "$PROGRAMFILES\${PRODUCT_NAME}" 27 | 28 | ;Get installation folder from registry if available 29 | InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" "" 30 | 31 | ShowInstDetails show 32 | ShowUnInstDetails show 33 | 34 | SetCompressor lzma 35 | 36 | ;Request application privileges for Windows Vista 37 | RequestExecutionLevel admin 38 | 39 | BrandingText "${PRODUCT_PUBLISHER}" 40 | 41 | ;-------------------------------- 42 | ;Interface Settings 43 | 44 | !define MUI_ABORTWARNING 45 | !define MUI_ICON "Icon.ico" 46 | !define MUI_UNICON "Icon.ico" 47 | 48 | ;-------------------------------- 49 | ;Pages 50 | 51 | !insertmacro MUI_PAGE_LICENSE "License.txt" 52 | !insertmacro MUI_PAGE_DIRECTORY 53 | !insertmacro MUI_PAGE_INSTFILES 54 | !insertmacro MUI_UNPAGE_CONFIRM 55 | !insertmacro MUI_UNPAGE_INSTFILES 56 | !define MUI_FINISHPAGE_RUN 57 | !define MUI_FINISHPAGE_RUN_TEXT "Run Program" 58 | !define MUI_FINISHPAGE_RUN_FUNCTION "LaunchProgram" 59 | !insertmacro MUI_PAGE_FINISH 60 | 61 | Section 62 | 63 | SetOutPath "$INSTDIR" 64 | SetOverwrite ifnewer 65 | 66 | !insertmacro CheckNetFramework 45 ; 67 | 68 | File "License.txt" 69 | File "${SOLUTION_DIRECTORY}\DisableNvidiaTelemetry\bin\Release\Disable Nvidia Telemetry.exe" 70 | File "${SOLUTION_DIRECTORY}\DisableNvidiaTelemetry\bin\Release\Disable Nvidia Telemetry.exe.config" 71 | File "${SOLUTION_DIRECTORY}\DisableNvidiaTelemetry\bin\Release\log4net.dll" 72 | File "${SOLUTION_DIRECTORY}\DisableNvidiaTelemetry\bin\Release\Microsoft.Win32.TaskScheduler.dll" 73 | File "${SOLUTION_DIRECTORY}\DisableNvidiaTelemetry\bin\Release\Newtonsoft.Json.dll" 74 | File "${SOLUTION_DIRECTORY}\DisableNvidiaTelemetry\bin\Release\ExtendedVersion.dll" 75 | File "${SOLUTION_DIRECTORY}\DisableNvidiaTelemetry\bin\Release\FontAwesome5.WPF.dll" 76 | File "${SOLUTION_DIRECTORY}\DisableNvidiaTelemetry\bin\Release\WPFCustomMessageBox.dll" 77 | 78 | CreateDirectory "$SMPROGRAMS\${PRODUCT_NAME}" 79 | CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\${PRIMARY_EXE_NAME}.lnk" "$INSTDIR\${PRIMARY_EXE_NAME}.exe" 80 | 81 | SectionEnd 82 | 83 | ;-------------------------------- 84 | ;Languages 85 | 86 | !insertmacro MUI_LANGUAGE "English" 87 | 88 | ;-------------------------------- 89 | ;Uninstaller Section 90 | 91 | Section "Uninstall" 92 | 93 | ExecWait "$INSTDIR\Disable Nvidia Telemetry.exe -unregistertask" $0 94 | 95 | Delete "$INSTDIR\License.txt" 96 | Delete "$INSTDIR\Disable Nvidia Telemetry.exe" 97 | Delete "$INSTDIR\\Disable Nvidia Telemetry.exe.config" 98 | Delete "$INSTDIR\log4net.dll" 99 | Delete "$INSTDIR\Microsoft.Win32.TaskScheduler.dll" 100 | Delete "$INSTDIR\Newtonsoft.Json.dll" 101 | Delete "$INSTDIR\ExtendedVersion.dll" 102 | Delete "$INSTDIR\FontAwesome5.WPF.dll" 103 | Delete "$INSTDIR\WPFCustomMessageBox.dll" 104 | Delete "$INSTDIR\Uninstall.exe" 105 | Delete "$SMPROGRAMS\Disable Nvidia Telemetry\Disable Nvidia Telemetry.lnk" 106 | RMDir "$SMPROGRAMS\Disable Nvidia Telemetry" 107 | RMDir "$INSTDIR" 108 | 109 | DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" 110 | DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}" 111 | 112 | SetAutoClose true 113 | 114 | SectionEnd 115 | 116 | Function .onInstSuccess 117 | WriteUninstaller "$INSTDIR\Uninstall.exe" 118 | WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\${PRIMARY_EXE_NAME}.exe" 119 | WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)" 120 | WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\Uninstall.exe" 121 | WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\${PRIMARY_EXE_NAME}.exe" 122 | WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}" 123 | WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}" 124 | WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}" 125 | FunctionEnd 126 | 127 | Function LaunchProgram 128 | ExecShell "" "$INSTDIR\Disable Nvidia Telemetry.exe" 129 | FunctionEnd -------------------------------------------------------------------------------- /Deploy/Installer/License.txt: -------------------------------------------------------------------------------- 1 | Copyright (C) 2018 Nate Shoffner 2 | 3 | This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. 4 | 5 | Redistribution of this software is allowed, but the origin of this software must not be misrepresented; you must not claim that you wrote the original software. 6 | 7 | E-mail: nate.shoffner@gmail.com 8 | Homepage: https://nateshoffner.com -------------------------------------------------------------------------------- /Deploy/Installer/nsis.ps1: -------------------------------------------------------------------------------- 1 | & git clone "https://github.com/ReVolly/NsisDotNetChecker" "$env:APPVEYOR_BUILD_FOLDER\Deploy\Installer\NsisDotNetChecker" 2>&1 | % { $_.ToString() } 2 | 3 | & "C:\Program Files (x86)\NSIS\makensis.exe" /DAPPLICATION_VERSION="$env:APPVEYOR_BUILD_VERSION" /DSOLUTION_DIRECTORY="$env:APPVEYOR_BUILD_FOLDER" "$env:APPVEYOR_BUILD_FOLDER\Deploy\Installer\Installer.nsi" 4 | 5 | $installer = "$env:APPVEYOR_BUILD_FOLDER\Deploy\Installer\Disable Nvidia Telemetry $env:APPVEYOR_BUILD_VERSION Setup.exe" 6 | 7 | # move executable to project directory for clean AppVeyor artifact name 8 | Move-Item "$installer" "$env:APPVEYOR_BUILD_FOLDER" -------------------------------------------------------------------------------- /Deploy/Portable/portable.ps1: -------------------------------------------------------------------------------- 1 | $temp_directory = "$env:APPVEYOR_BUILD_FOLDER\Deploy\Portable\~TEMP" 2 | New-Item "$temp_directory" -type directory 3 | 4 | $zip_archive = "$env:APPVEYOR_BUILD_FOLDER\Deploy\Portable\Disable Nvidia Telemetry $env:APPVEYOR_BUILD_VERSION Portable.exe" 5 | 6 | # build using portable configuration 7 | & msbuild.exe "$env:APPVEYOR_BUILD_FOLDER\DisableNvidiaTelemetry.sln" /p:Configuration=Portable 8 | 9 | $output_directory = "$env:APPVEYOR_BUILD_FOLDER\DisableNvidiaTelemetry\bin\Portable" 10 | 11 | # copy files 12 | Get-ChildItem -Path "$output_directory" | % { 13 | Copy-Item $_.fullname "$temp_directory" -Force -Exclude @("*.xml", "*.pdb", "*.manifest", "*.application", "*.vshost.*", "JetBrains.Annotations.dll") 14 | } 15 | 16 | # zip contents in self-extracting archive 17 | & 7z "a" "$zip_archive" "-mmt" "-mx5" "-sfx7z.sfx" "-r" "$temp_directory\*.*" 18 | 19 | # move executable to project directory for clean AppVeyor artifact name 20 | Move-Item "$zip_archive" "$env:APPVEYOR_BUILD_FOLDER" -------------------------------------------------------------------------------- /DisableNvidiaTelemetry.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.26228.9 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DisableNvidiaTelemetry", "DisableNvidiaTelemetry\DisableNvidiaTelemetry.csproj", "{96BD5143-61F8-4B32-A6DD-8125A4EFE8AA}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Portable|Any CPU = Portable|Any CPU 12 | Release|Any CPU = Release|Any CPU 13 | EndGlobalSection 14 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 15 | {96BD5143-61F8-4B32-A6DD-8125A4EFE8AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 16 | {96BD5143-61F8-4B32-A6DD-8125A4EFE8AA}.Debug|Any CPU.Build.0 = Debug|Any CPU 17 | {96BD5143-61F8-4B32-A6DD-8125A4EFE8AA}.Portable|Any CPU.ActiveCfg = Portable|Any CPU 18 | {96BD5143-61F8-4B32-A6DD-8125A4EFE8AA}.Portable|Any CPU.Build.0 = Portable|Any CPU 19 | {96BD5143-61F8-4B32-A6DD-8125A4EFE8AA}.Release|Any CPU.ActiveCfg = Release|Any CPU 20 | {96BD5143-61F8-4B32-A6DD-8125A4EFE8AA}.Release|Any CPU.Build.0 = Release|Any CPU 21 | EndGlobalSection 22 | GlobalSection(SolutionProperties) = preSolution 23 | HideSolutionNode = FALSE 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /DisableNvidiaTelemetry/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 |
6 | 8 |
11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 |
26 | 27 |