From 60f126e7c89e28f6195b366bee4d3bb9574459d3 Mon Sep 17 00:00:00 2001 From: Lightemerald Date: Mon, 23 Oct 2023 13:02:57 +0000 Subject: [PATCH] Update SetupScriptLabo.ps1 --- SetupScriptLabo.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SetupScriptLabo.ps1 b/SetupScriptLabo.ps1 index 9a6a9c9..ee6008c 100644 --- a/SetupScriptLabo.ps1 +++ b/SetupScriptLabo.ps1 @@ -172,14 +172,14 @@ function InstallExe { [string] $app ) $appName = [System.IO.Path]::GetFileNameWithoutExtension($app) - + Write-Host "Installing $appName..." $targetPath = Join-Path $env:ProgramFiles $appName if (-not (Test-Path -Path $targetPath -PathType Container)) { New-Item -Path $targetPath -ItemType Directory } $appFilePath = Join-Path $tmpPath $app - Copy-Item -Path $appFilePath -Destination $targetPath -Force - createShortcut -exe $appFilePath -app $appName + Copy-Item -Path (Join-Path $tmpPath $app) -Destination $targetPath -Force + createShortcut -exe (Join-Path $targetPath $app) -app $appName } function InstallZipSetup {