From d45c62e470401d35d0f8c6d4ca5e7e1e36b5def1 Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Thu, 2 Jul 2026 20:20:38 +0300 Subject: [PATCH] Cleanup start.ps1 (#4587) * Update start.ps1 * Update start.ps1 * Update start.ps1 * Update start.ps1 * Update start.ps1 * Update start.ps1 * Update start.ps1 * Update start.ps1 * Update start.ps1 * Fix startup logging regression --------- Co-authored-by: Chris Titus --- scripts/start.ps1 | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/scripts/start.ps1 b/scripts/start.ps1 index 25e82580..ed1d4164 100644 --- a/scripts/start.ps1 +++ b/scripts/start.ps1 @@ -55,13 +55,8 @@ if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]: break } -# Load DLLs -Add-Type -AssemblyName PresentationFramework -Add-Type -AssemblyName System.Windows.Forms - # Variable to sync between runspaces $sync = [Hashtable]::Synchronized(@{}) -$sync.PSScriptRoot = $PSScriptRoot $sync.version = "#{replaceme}" $sync.configs = @{} $sync.Buttons = [System.Collections.Generic.List[PSObject]]::new() @@ -73,22 +68,15 @@ $sync.selectedTweaks = [System.Collections.Generic.List[string]]::new() $sync.selectedToggles = [System.Collections.Generic.List[string]]::new() $sync.selectedFeatures = [System.Collections.Generic.List[string]]::new() $sync.currentTab = "Install" -$sync.selectedAppsStackPanel -$sync.selectedAppsPopup $dateTime = Get-Date -Format "yyyy-MM-dd_HH-mm-ss" - -# Set the path for the winutil directory $winutildir = "$env:LocalAppData\winutil" -New-Item $winutildir -ItemType Directory -Force | Out-Null $sync.winutildir = $winutildir $logdir = "$winutildir\logs" -New-Item $logdir -ItemType Directory -Force | Out-Null $sync.logPath = "$logdir\winutil_$dateTime.log" $sync.transcriptPath = $sync.logPath Start-Transcript -Path $sync.logPath -Append -NoClobber | Out-Null -# Set PowerShell window title -$Host.UI.RawUI.WindowTitle = "WinUtil (Admin)" -clear-host +$Host.UI.RawUI.WindowTitle = "WinUtil" +Clear-Host