Use array format for powershell script arguments

also normalize/cleanup style
This commit is contained in:
Adam Goldsmith 2020-10-29 16:53:59 -04:00
parent 7b3ae85e50
commit a9dcfa48bb
7 changed files with 54 additions and 63 deletions

View File

@ -17,4 +17,4 @@
<dependency id="vcredist140" />
</dependencies>
</metadata>
</package>
</package>

View File

@ -1,14 +1,11 @@
$packageName = 'chitubox'
$installerType = 'exe'
$silentArgs = '/S'
$url64 = '\\ucs\software\CHITUBOX64Install_1.6.1.exe'
$checksum64 = 'd399dcc7f44f3a34a878a93e1ca6f9c4fefe845a46a743c49e1353efda5cc16b'
$checksumType64 = 'sha256'
$validExitCodes = @(0,1223)
Install-ChocolateyPackage -PackageName $packageName `
-FileType $installerType `
-SilentArgs $silentArgs `
-Url64bit $url64 `
-ValidExitCodes $validExitCodes `
-Checksum64 $checksum64 `
-ChecksumType64 $checksumType64
$packageArgs = @{
packageName = $env:ChocolateyPackageName
FileType = 'exe'
SilentArgs = '/S'
Url64 = '\\ucs\software\CHITUBOX64Install_1.6.1.exe'
Checksum64 = 'd399dcc7f44f3a34a878a93e1ca6f9c4fefe845a46a743c49e1353efda5cc16b'
ChecksumType64 = 'sha256'
ValidExitCodes = @(0, 1223)
}
Install-ChocolateyPackage @packageArgs

View File

@ -1,19 +1,19 @@
$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)
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'
PackageName = 'shopbot-driver'
FileType = 'exe'
File64 = 'C:\Program Files (x86)\ShopBot\ShopBot 3\Drivers\ShopBotControllerV201\Sb_Controller_Drivers.exe'
Checksum64 = 'a244f6fb77ac40d1ee5c6988a3b74bcf55345de871684684ab7f4f54e2a20f7b'
ChecksumType64 = 'sha256'
}

View File

@ -1,14 +1,11 @@
$packageName = 'vcarve-pro-makerspace-10.5'
$installerType = 'exe'
$silentArgs = '/S'
$url64 = '\\ucs\software\VCarveProMakerspaceEditionV10507_Setup.exe'
$checksum64 = '553c1ecc51d41314a44016b4183c80f43cbe88ae61292f7e43048bce414db686'
$checksumType64 = 'sha256'
$validExitCodes = @(0,1223)
Install-ChocolateyPackage -PackageName $packageName `
-FileType $installerType `
-SilentArgs $silentArgs `
-Url64bit $url64 `
-ValidExitCodes $validExitCodes `
-Checksum64 $checksum64 `
-ChecksumType64 $checksumType64
$packageArgs = @{
packageName = $env:ChocolateyPackageName
FileType = 'exe'
SilentArgs = '/S'
Url64 = '\\ucs\software\VCarveProMakerspaceEditionV10507_Setup.exe'
Checksum64 = '553c1ecc51d41314a44016b4183c80f43cbe88ae61292f7e43048bce414db686'
ChecksumType64 = 'sha256'
ValidExitCodes = @(0, 1223)
}
Install-ChocolateyPackage @packageArgs

View File

@ -1,8 +1,8 @@
$packageArgs = @{
PackageName = 'vcarve-pro-makerspace-10.5'
FileType = 'exe'
File = 'C:\Program Files\VCarve Pro - Makerspace Edition 10.5\uninst.exe'
SilentArgs = '/S'
PackageName = 'vcarve-pro-makerspace-10.5'
FileType = 'exe'
File = 'C:\Program Files\VCarve Pro - Makerspace Edition 10.5\uninst.exe'
SilentArgs = '/S'
}
Uninstall-ChocolateyPackage @packageArgs

View File

@ -1,14 +1,11 @@
$packageName = 'vcarve-pro-trial-10.5'
$installerType = 'exe'
$silentArgs = '/S'
$url64 = '\\ucs\software\VCarveProTrialEditionV10505_Setup.exe'
$checksum64 = '28491b876f541c4c0f3dc9056139820ec43ba4e703f0cf2bd575d059a946a84f'
$checksumType64 = 'sha256'
$validExitCodes = @(0,1223)
Install-ChocolateyPackage -PackageName $packageName `
-FileType $installerType `
-SilentArgs $silentArgs `
-Url64bit $url64 `
-ValidExitCodes $validExitCodes `
-Checksum64 $checksum64 `
-ChecksumType64 $checksumType64
$packageArgs = @{
packageName = $env:ChocolateyPackageName
FileType = 'exe'
SilentArgs = '/S'
Url64 = '\\ucs\software\VCarveProTrialEditionV10505_Setup.exe'
Checksum64 = '28491b876f541c4c0f3dc9056139820ec43ba4e703f0cf2bd575d059a946a84f'
ChecksumType64 = 'sha256'
ValidExitCodes = @(0, 1223)
}
Install-ChocolateyPackage @packageArgs

View File

@ -1,8 +1,8 @@
$packageArgs = @{
PackageName = 'vcarve-pro-trial-10.5'
FileType = 'exe'
File = 'C:\Program Files\VCarve Pro Trial Edition 10.5\uninst.exe'
SilentArgs = '/S'
PackageName = 'vcarve-pro-trial-10.5'
FileType = 'exe'
File = 'C:\Program Files\VCarve Pro Trial Edition 10.5\uninst.exe'
SilentArgs = '/S'
}
Uninstall-ChocolateyPackage @packageArgs