From f9d0d823efc366e76e1e629e7762c80fb39e35ad Mon Sep 17 00:00:00 2001 From: Xavier Jouvenot Date: Mon, 18 Sep 2023 23:14:04 +0200 Subject: [PATCH] Runs the install script from 2fast package when installing it. --- automatic/2fast/tools/chocolateyInstall.ps1 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/automatic/2fast/tools/chocolateyInstall.ps1 b/automatic/2fast/tools/chocolateyInstall.ps1 index 57663e33a1..0a2f9c1efe 100644 --- a/automatic/2fast/tools/chocolateyInstall.ps1 +++ b/automatic/2fast/tools/chocolateyInstall.ps1 @@ -3,11 +3,16 @@ $url64 = '' $checksum64 = '' +$toolsPath = Split-Path $MyInvocation.MyCommand.Definition + $packageArgs = @{ packageName = $env:ChocolateyPackageName url64Bit = $url64 checksum64 = $checksum64 checksumType64 = 'sha256' - unzipLocation = Split-Path $MyInvocation.MyCommand.Definition + unzipLocation = $toolsPath } + Install-ChocolateyZipPackage @packageArgs + +if (Test-Path $toolsPath/install.ps1) { . $toolsPath/install.ps1 }