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 {