Update SetupScriptLabo.ps1

This commit is contained in:
2023-10-23 09:53:36 +00:00
parent 86455d1bda
commit 3a476d54ed

View File

@@ -185,7 +185,7 @@ function InstallExe {
function InstallZipSetup {
param (
[string] $zip
[string] $exe
[string] $exe,
)
$zipName = [System.IO.Path]::GetFileNameWithoutExtension($zip)
Expand-Archive -Path (Join-Path $tmpPath $zip) -DestinationPath $tmpPath -Force
@@ -195,8 +195,8 @@ function InstallZipSetup {
function InstallZip {
param (
[string] $zip
[string] $exe
[string] $app
[string] $exe,
[string] $app,
)
$zipName = [System.IO.Path]::GetFileNameWithoutExtension($zip)
@@ -208,7 +208,7 @@ function InstallZip {
function createShortcut {
param (
[string] $exe
[string] $app
[string] $app,
)
$shell = New-Object -ComObject WScript.Shell
$shortcut = $shell.CreateShortcut($(Join-Path $env:PUBLIC "Desktop\$app.lnk"))