Update SetupScriptLabo.ps1
This commit is contained in:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user