diff --git a/Bin/set-telemetry.ps1 b/Bin/set-telemetry.ps1 index 3f4bfc09ae4..bcd6b4f853d 100644 --- a/Bin/set-telemetry.ps1 +++ b/Bin/set-telemetry.ps1 @@ -37,6 +37,3 @@ $node = $doc.CreateElement('item'); $node.InnerXml = "TelemetryEnabled$telemetryEnabled"; $_ = $topNode.AppendChild($node); $doc.Save($userAppDataPath) - -# this script now deletes itself -Remove-Item $MyINvocation.InvocationName diff --git a/Setup/UI/TelemetryDlg.wxs b/Setup/UI/TelemetryDlg.wxs index 07374e96fcc..905ef62cbb6 100644 --- a/Setup/UI/TelemetryDlg.wxs +++ b/Setup/UI/TelemetryDlg.wxs @@ -14,11 +14,10 @@ - + Value=""[POWERSHELLEXE]" -NoProfile -NonInteractive -InputFormat None -ExecutionPolicy Bypass -Command "& '[INSTALLDIR]set-telemetry.ps1' [TELEMETRY_ENABLED]; exit $$($Error.Count)"" />