From 8aec3e65918868bacbc4959a2d384889d88b35b2 Mon Sep 17 00:00:00 2001 From: romanitho <96626929+Romanitho@users.noreply.github.com> Date: Sat, 14 Oct 2023 18:53:40 +0200 Subject: [PATCH] Continuing the rework process --- Winget-AutoUpdate-Install.ps1 | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Winget-AutoUpdate-Install.ps1 b/Winget-AutoUpdate-Install.ps1 index afb8356..25105ca 100644 --- a/Winget-AutoUpdate-Install.ps1 +++ b/Winget-AutoUpdate-Install.ps1 @@ -124,6 +124,7 @@ param( . "$PSScriptRoot\Winget-AutoUpdate\functions\Get-WinGetAvailableVersion.ps1" . "$PSScriptRoot\Winget-AutoUpdate\functions\Update-WinGet.ps1" . "$PSScriptRoot\Winget-AutoUpdate\functions\Update-StoreApps.ps1" +. "$PSScriptRoot\Winget-AutoUpdate\functions\Add-Shortcut.ps1" function Install-Prerequisites { @@ -584,16 +585,6 @@ function Start-WingetAutoUpdate { } } -function Add-Shortcut ($Target, $Shortcut, $Arguments, $Icon, $Description) { - $WScriptShell = New-Object -ComObject WScript.Shell - $Shortcut = $WScriptShell.CreateShortcut($Shortcut) - $Shortcut.TargetPath = $Target - $Shortcut.Arguments = $Arguments - $Shortcut.IconLocation = $Icon - $Shortcut.Description = $Description - $Shortcut.Save() -} - <# APP INFO #>