Skip to content

Commit

Permalink
Unescape
Browse files Browse the repository at this point in the history
  • Loading branch information
RussKie committed Sep 11, 2019
1 parent 141365d commit 6861560
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Bin/set-telemetry.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ $_ = $topNode.AppendChild($node);
$doc.Save($userAppDataPath)

# this script now deletes itself
if (![string]::IsNullOrWhiteSpace($ScriptPath)) {

This comment has been minimized.

Copy link
@mast-eu

mast-eu Sep 11, 2019

Member

This will fail on Win7 SP1, because PowerShell version < 3.0 doesn't have IsNullOrWhiteSpace (#7079 (comment))

This comment has been minimized.

Copy link
@RussKie

RussKie via email Sep 11, 2019

Author Member
$ScriptPath = $ScriptPath.Trim();
}
$fullScriptPath = [System.IO.Path]::Combine($ScriptPath, 'set-telemetry.ps1');
if (Test-Path -Path $fullScriptPath) {
Remove-Item $fullScriptPath -Force -ErrorAction SilentlyContinue
Expand Down
2 changes: 1 addition & 1 deletion Setup/UI/TelemetryDlg.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<SetProperty Id="ConfigureTelemetry"
Before ="ConfigureTelemetry"
Sequence="execute"
Value="&quot;[POWERSHELLEXE]&quot; -NoProfile -NonInteractive -InputFormat None -ExecutionPolicy Bypass -Command &quot;&amp; '[INSTALLDIR]set-telemetry.ps1' '[INSTALLDIR]' [TELEMETRY_ENABLED]; exit $$($Error.Count)&quot;" />
Value="&quot;[POWERSHELLEXE]&quot; -NoProfile -NonInteractive -InputFormat None -ExecutionPolicy Bypass -Command &quot;&amp; '[INSTALLDIR]set-telemetry.ps1' '[INSTALLDIR] ' [TELEMETRY_ENABLED]; exit $$($Error.Count)&quot;" />

<CustomAction Id="ConfigureTelemetry" BinaryKey="WixCA" DllEntry="WixQuietExec" Execute="deferred" Return="check" Impersonate="yes" />

Expand Down

0 comments on commit 6861560

Please sign in to comment.