From eadec78ae84d98e0e01263f11ccf1efc454ff79d Mon Sep 17 00:00:00 2001 From: CaiB Date: Tue, 4 Mar 2025 20:02:35 +0900 Subject: [PATCH] Made 'User' mode default, fixed not cleaning temp --- misc/install_xpack_gcc.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misc/install_xpack_gcc.ps1 b/misc/install_xpack_gcc.ps1 index 4f59e132..99bed6ce 100644 --- a/misc/install_xpack_gcc.ps1 +++ b/misc/install_xpack_gcc.ps1 @@ -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)] @@ -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') {