@@ -402,7 +402,9 @@ function VM-Install-From-Zip {
402
402
# $powershellCommand = "Get-Content README.md"
403
403
# $powershellCommand = "Import-Module module.ps1; Get-Help Main-Function"
404
404
[Parameter (Mandatory = $false )]
405
- [string ] $powershellCommand
405
+ [string ] $powershellCommand ,
406
+ [Parameter (Mandatory = $false )]
407
+ [string ] $iconLocation
406
408
)
407
409
try {
408
410
$toolDir = Join-Path ${Env: RAW_TOOLS_DIR} $toolName
@@ -432,20 +434,20 @@ function VM-Install-From-Zip {
432
434
433
435
if ($powershellCommand ) {
434
436
$executablePath = $toolDir
435
- VM- Install-Shortcut - toolName $toolName - category $category - arguments $powershellCommand - executableDir $executablePath - powershell
437
+ VM- Install-Shortcut - toolName $toolName - category $category - arguments $powershellCommand - executableDir $executablePath - powershell - iconLocation $iconLocation
436
438
}
437
439
elseif ($withoutBinFile ) { # Used when tool does not have an associated executable
438
440
if (-Not $executableName ) { # Tool is located in $toolDir (c3.vm for example)
439
441
$executablePath = $toolDir
440
442
} else { # Tool is in a specific directory (pma-labs.vm for example)
441
443
$executablePath = Join-Path $toolDir $executableName - Resolve
442
444
}
443
- VM- Install-Shortcut - toolName $toolName - category $category - executablePath $executablePath
445
+ VM- Install-Shortcut - toolName $toolName - category $category - executablePath $executablePath - iconLocation $iconLocation
444
446
}
445
447
else {
446
448
if (-Not $executableName ) { $executableName = " $toolName .exe" }
447
449
$executablePath = Join-Path $toolDir $executableName - Resolve
448
- VM- Install-Shortcut - toolName $toolName - category $category - executablePath $executablePath - consoleApp $consoleApp - arguments $arguments
450
+ VM- Install-Shortcut - toolName $toolName - category $category - executablePath $executablePath - consoleApp $consoleApp - arguments $arguments - iconLocation $iconLocation
449
451
Install-BinFile - Name $toolName - Path $executablePath
450
452
}
451
453
return , @ ($toolDir , $executablePath )
0 commit comments