Skip to content

Commit

Permalink
Made 'User' mode default, fixed not cleaning temp
Browse files Browse the repository at this point in the history
  • Loading branch information
CaiB committed Mar 4, 2025
1 parent 04892d6 commit eadec78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions misc/install_xpack_gcc.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ using namespace System.IO.Compression.FileSystem;
[CmdletBinding(DefaultParameterSetName = 'DestPreset')]
param (
# Uses one of the preset locations to install to
[Parameter(ParameterSetName = 'DestPreset', Position = 0, Mandatory = $true)]
[Parameter(ParameterSetName = 'DestPreset', Position = 0)]
[ValidateSet('User', 'System')]
[string]$Destination,
[string]$Destination = 'User',

# If a preset location is not used, then the user must specify a path to install to
[Parameter(ParameterSetName = 'DestPath', Position = 0, Mandatory = $true)]
Expand Down Expand Up @@ -43,7 +43,7 @@ $ErrorActionPreference = 'Stop';

[EnvironmentVariableTarget] $PathScope = [EnvironmentVariableTarget]::User;
[string] $TempFolder = [Path]::GetTempPath();
[bool] $NoClearTemp = $true;
[bool] $NoClearTemp = $false;

if ($PSCmdlet.ParameterSetName -EQ 'DestPreset')
{
Expand Down

0 comments on commit eadec78

Please sign in to comment.