Update SetupScriptLabo.ps1
This commit is contained in:
@@ -172,14 +172,14 @@ function InstallExe {
|
|||||||
[string] $app
|
[string] $app
|
||||||
)
|
)
|
||||||
$appName = [System.IO.Path]::GetFileNameWithoutExtension($app)
|
$appName = [System.IO.Path]::GetFileNameWithoutExtension($app)
|
||||||
|
Write-Host "Installing $appName..."
|
||||||
$targetPath = Join-Path $env:ProgramFiles $appName
|
$targetPath = Join-Path $env:ProgramFiles $appName
|
||||||
if (-not (Test-Path -Path $targetPath -PathType Container)) {
|
if (-not (Test-Path -Path $targetPath -PathType Container)) {
|
||||||
New-Item -Path $targetPath -ItemType Directory
|
New-Item -Path $targetPath -ItemType Directory
|
||||||
}
|
}
|
||||||
$appFilePath = Join-Path $tmpPath $app
|
$appFilePath = Join-Path $tmpPath $app
|
||||||
Copy-Item -Path $appFilePath -Destination $targetPath -Force
|
Copy-Item -Path (Join-Path $tmpPath $app) -Destination $targetPath -Force
|
||||||
createShortcut -exe $appFilePath -app $appName
|
createShortcut -exe (Join-Path $targetPath $app) -app $appName
|
||||||
}
|
}
|
||||||
|
|
||||||
function InstallZipSetup {
|
function InstallZipSetup {
|
||||||
|
|||||||
Reference in New Issue
Block a user