From a4dfbc20cfe936e8470bf2644abe9294ac0524b8 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 27 Feb 2020 21:20:17 -0500 Subject: [PATCH] shopbot: Also install shopbot USB drivers the installer has a dotnet3.5 dependency, for some stupid reason --- shopbot/shopbot.nuspec | 3 ++- shopbot/tools/chocolateyInstall.ps1 | 36 ++++++++++++++++++----------- 2 files changed, 24 insertions(+), 15 deletions(-) diff --git a/shopbot/shopbot.nuspec b/shopbot/shopbot.nuspec index c7838fe..42c03e5 100644 --- a/shopbot/shopbot.nuspec +++ b/shopbot/shopbot.nuspec @@ -2,7 +2,7 @@ shopbot - 3.8.50 + 3.8.50.20200227 Shopbot Control Software ShopBot Tools Adam @@ -15,6 +15,7 @@ router cnc shopbot + diff --git a/shopbot/tools/chocolateyInstall.ps1 b/shopbot/tools/chocolateyInstall.ps1 index 29a9b62..79b59b8 100644 --- a/shopbot/tools/chocolateyInstall.ps1 +++ b/shopbot/tools/chocolateyInstall.ps1 @@ -1,14 +1,22 @@ -$packageName = 'shopbot' -$installerType = 'exe' -$silentArgs = '/verysilent /suppressmsgboxes /norestart /sp-' -$url64 = '\\ucs\software\Setup_Shopbot3_8_50.exe' -$checksum64 = '40ceb163b1cb6395bd4704db1da5359b20ee769ddb413609e4608d780db44c33' -$checksumType64 = 'sha256' -$validExitCodes = @(0,1223) -Install-ChocolateyPackage -PackageName $packageName ` - -FileType $installerType ` - -SilentArgs $silentArgs ` - -Url64bit $url64 ` - -ValidExitCodes $validExitCodes ` - -Checksum64 $checksum64 ` - -ChecksumType64 $checksumType64 +$basePackageArgs = @{ + PackageName = 'shopbot' + FileType = 'exe' + SilentArgs = '/verysilent /suppressmsgboxes /norestart /sp-' + Url64 = '\\ucs\software\Setup_Shopbot3_8_50.exe' + Checksum64 = '40ceb163b1cb6395bd4704db1da5359b20ee769ddb413609e4608d780db44c33' + ChecksumType64 = 'sha256' + ValidExitCodes = @(0, 1223) +} + +$driverPackageArgs = @{ + PackageName = 'shopbot-driver' + FileType = 'exe' + File64 = 'C:\Program Files (x86)\ShopBot\ShopBot 3\Drivers\ShopBotControllerV201\Sb_Controller_Drivers.exe' + Checksum64 = 'a244f6fb77ac40d1ee5c6988a3b74bcf55345de871684684ab7f4f54e2a20f7b' + ChecksumType64 = 'sha256' +} + + +Install-ChocolateyPackage @basePackageArgs + +Install-ChocolateyInstallPackage @driverPackageArgs