From 5e2bdb2ce7107d8c9776a17e3f652372dea41dae Mon Sep 17 00:00:00 2001 From: Asteski Date: Thu, 6 Feb 2025 22:52:05 +0100 Subject: [PATCH] updated install.ps1 --- bin/{ => iconpack}/iconpack_blue_folders.exe | Bin .../iconpack_yellow_folders.exe | Bin pwsh/install.ps1 | 18 ++++++++++++------ 3 files changed, 12 insertions(+), 6 deletions(-) rename bin/{ => iconpack}/iconpack_blue_folders.exe (100%) rename bin/{ => iconpack}/iconpack_yellow_folders.exe (100%) diff --git a/bin/iconpack_blue_folders.exe b/bin/iconpack/iconpack_blue_folders.exe similarity index 100% rename from bin/iconpack_blue_folders.exe rename to bin/iconpack/iconpack_blue_folders.exe diff --git a/bin/iconpack_yellow_folders.exe b/bin/iconpack/iconpack_yellow_folders.exe similarity index 100% rename from bin/iconpack_yellow_folders.exe rename to bin/iconpack/iconpack_yellow_folders.exe diff --git a/pwsh/install.ps1 b/pwsh/install.ps1 index fe256cc..0cd3133 100644 --- a/pwsh/install.ps1 +++ b/pwsh/install.ps1 @@ -54,14 +54,15 @@ if (!($noGUI)) { $iconFolderPath = Join-Path -Path $parentDirectory -ChildPath $iconFolderName $topTextBlock = "PowerShell GUI deployment wizard for Windows and macOS hybrid" $bottomTextBlock1 = 'Important Notes:' - $bottomTextBlock2 = 'PowerShell profile files will be removed and replaced with new ones. Please make sure to backup your current profiles if needed.' - $bottomTextBlock3 = 'The author of this script is not responsible for any damage caused by running it. Highly recommend to create a system restore point before proceeding with the installation process to ensure you can revert any changes if necessary.' - $bottomTextBlock4 = 'For guide on how to use the script, please refer to the Wiki page on WinMac GitHub page: https://github.com/Asteski/WinMac/wiki' + $bottomTextBlock2 = 'Please disable Windows Defender/3rd party Anti-virus to prevent issues with applying icons pack or exclude .\bin\iconpack subdirectory in locally cloned WinMac folder.' + $bottomTextBlock3 = 'PowerShell default profile will be removed and replaced with new one. Please make sure to backup your current profile if needed.' + $bottomTextBlock4 = 'The author of this script is not responsible for any damage caused by running it. Highly recommend to create a system restore point before proceeding with the installation process to ensure you can revert any changes if necessary.' + $bottomTextBlock5 = 'For guide on how to use the script, please refer to the Wiki page on WinMac GitHub page: https://github.com/Asteski/WinMac/wiki' [xml]$xaml = @" + Title="WinMac Deployment Wizard" Height="920" Width="480" WindowStartupLocation="CenterScreen" Background="$backgroundColor" Icon="$iconFolderPath\wizard.ico"> @@ -185,6 +186,7 @@ if (!($noGUI)) { + @@ -299,6 +301,10 @@ running it. Highly recommend to create a system restore point before proceeding with the installation process to ensure you can revert any changes if necessary. +Please disable Windows Defender/3rd party Anti-virus to prevent issues +with applying icons pack or exclude ".\bin\iconpack" subdirectory +in locally cloned WinMac folder. + For guide on how to use the script, please refer to the Wiki page on WinMac GitHub page: @@ -1229,10 +1235,10 @@ IconResource=C:\WINDOWS\System32\imageres.dll,-87 ## Icons Pack if ((Get-ItemProperty -Path $regPath -Name "IconPack" -ErrorAction SilentlyContinue).IconPack -ne 1) { if ($blueOrYellow -eq "B" -or $blueOrYellow -eq "b") { - $exePath = "..\bin\iconpack_blue_folders.exe" + $exePath = "..\bin\iconpack\iconpack_blue_folders.exe" } elseif ($blueOrYellow -eq "Y" -or $blueOrYellow -eq "y") { - $exePath = "..\bin\iconpack_yellow_folders.exe" + $exePath = "..\bin\iconpack\iconpack_yellow_folders.exe" } $arguments = "/S" Write-Host "Deploying icon pack..." -ForegroundColor DarkYellow