Update SetupScriptLabo.ps1
This commit is contained in:
@@ -185,7 +185,7 @@ function InstallExe {
|
|||||||
function InstallZipSetup {
|
function InstallZipSetup {
|
||||||
param (
|
param (
|
||||||
[string] $zip
|
[string] $zip
|
||||||
[string] $exe
|
[string] $exe,
|
||||||
)
|
)
|
||||||
$zipName = [System.IO.Path]::GetFileNameWithoutExtension($zip)
|
$zipName = [System.IO.Path]::GetFileNameWithoutExtension($zip)
|
||||||
Expand-Archive -Path (Join-Path $tmpPath $zip) -DestinationPath $tmpPath -Force
|
Expand-Archive -Path (Join-Path $tmpPath $zip) -DestinationPath $tmpPath -Force
|
||||||
@@ -195,8 +195,8 @@ function InstallZipSetup {
|
|||||||
function InstallZip {
|
function InstallZip {
|
||||||
param (
|
param (
|
||||||
[string] $zip
|
[string] $zip
|
||||||
[string] $exe
|
[string] $exe,
|
||||||
[string] $app
|
[string] $app,
|
||||||
)
|
)
|
||||||
$zipName = [System.IO.Path]::GetFileNameWithoutExtension($zip)
|
$zipName = [System.IO.Path]::GetFileNameWithoutExtension($zip)
|
||||||
|
|
||||||
@@ -208,7 +208,7 @@ function InstallZip {
|
|||||||
function createShortcut {
|
function createShortcut {
|
||||||
param (
|
param (
|
||||||
[string] $exe
|
[string] $exe
|
||||||
[string] $app
|
[string] $app,
|
||||||
)
|
)
|
||||||
$shell = New-Object -ComObject WScript.Shell
|
$shell = New-Object -ComObject WScript.Shell
|
||||||
$shortcut = $shell.CreateShortcut($(Join-Path $env:PUBLIC "Desktop\$app.lnk"))
|
$shortcut = $shell.CreateShortcut($(Join-Path $env:PUBLIC "Desktop\$app.lnk"))
|
||||||
|
|||||||
Reference in New Issue
Block a user