Use array format for powershell script arguments
also normalize/cleanup style
This commit is contained in:
parent
7b3ae85e50
commit
a9dcfa48bb
@ -1,14 +1,11 @@
|
|||||||
$packageName = 'chitubox'
|
$packageArgs = @{
|
||||||
$installerType = 'exe'
|
packageName = $env:ChocolateyPackageName
|
||||||
$silentArgs = '/S'
|
FileType = 'exe'
|
||||||
$url64 = '\\ucs\software\CHITUBOX64Install_1.6.1.exe'
|
SilentArgs = '/S'
|
||||||
$checksum64 = 'd399dcc7f44f3a34a878a93e1ca6f9c4fefe845a46a743c49e1353efda5cc16b'
|
Url64 = '\\ucs\software\CHITUBOX64Install_1.6.1.exe'
|
||||||
$checksumType64 = 'sha256'
|
Checksum64 = 'd399dcc7f44f3a34a878a93e1ca6f9c4fefe845a46a743c49e1353efda5cc16b'
|
||||||
$validExitCodes = @(0,1223)
|
ChecksumType64 = 'sha256'
|
||||||
Install-ChocolateyPackage -PackageName $packageName `
|
ValidExitCodes = @(0, 1223)
|
||||||
-FileType $installerType `
|
}
|
||||||
-SilentArgs $silentArgs `
|
|
||||||
-Url64bit $url64 `
|
Install-ChocolateyPackage @packageArgs
|
||||||
-ValidExitCodes $validExitCodes `
|
|
||||||
-Checksum64 $checksum64 `
|
|
||||||
-ChecksumType64 $checksumType64
|
|
||||||
|
@ -1,19 +1,19 @@
|
|||||||
$basePackageArgs = @{
|
$basePackageArgs = @{
|
||||||
PackageName = 'shopbot'
|
PackageName = 'shopbot'
|
||||||
FileType = 'exe'
|
FileType = 'exe'
|
||||||
SilentArgs = '/verysilent /suppressmsgboxes /norestart /sp-'
|
SilentArgs = '/verysilent /suppressmsgboxes /norestart /sp-'
|
||||||
Url64 = '\\ucs\software\Setup_Shopbot3_8_50.exe'
|
Url64 = '\\ucs\software\Setup_Shopbot3_8_50.exe'
|
||||||
Checksum64 = '40ceb163b1cb6395bd4704db1da5359b20ee769ddb413609e4608d780db44c33'
|
Checksum64 = '40ceb163b1cb6395bd4704db1da5359b20ee769ddb413609e4608d780db44c33'
|
||||||
ChecksumType64 = 'sha256'
|
ChecksumType64 = 'sha256'
|
||||||
ValidExitCodes = @(0, 1223)
|
ValidExitCodes = @(0, 1223)
|
||||||
}
|
}
|
||||||
|
|
||||||
$driverPackageArgs = @{
|
$driverPackageArgs = @{
|
||||||
PackageName = 'shopbot-driver'
|
PackageName = 'shopbot-driver'
|
||||||
FileType = 'exe'
|
FileType = 'exe'
|
||||||
File64 = 'C:\Program Files (x86)\ShopBot\ShopBot 3\Drivers\ShopBotControllerV201\Sb_Controller_Drivers.exe'
|
File64 = 'C:\Program Files (x86)\ShopBot\ShopBot 3\Drivers\ShopBotControllerV201\Sb_Controller_Drivers.exe'
|
||||||
Checksum64 = 'a244f6fb77ac40d1ee5c6988a3b74bcf55345de871684684ab7f4f54e2a20f7b'
|
Checksum64 = 'a244f6fb77ac40d1ee5c6988a3b74bcf55345de871684684ab7f4f54e2a20f7b'
|
||||||
ChecksumType64 = 'sha256'
|
ChecksumType64 = 'sha256'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,14 +1,11 @@
|
|||||||
$packageName = 'vcarve-pro-makerspace-10.5'
|
$packageArgs = @{
|
||||||
$installerType = 'exe'
|
packageName = $env:ChocolateyPackageName
|
||||||
$silentArgs = '/S'
|
FileType = 'exe'
|
||||||
$url64 = '\\ucs\software\VCarveProMakerspaceEditionV10507_Setup.exe'
|
SilentArgs = '/S'
|
||||||
$checksum64 = '553c1ecc51d41314a44016b4183c80f43cbe88ae61292f7e43048bce414db686'
|
Url64 = '\\ucs\software\VCarveProMakerspaceEditionV10507_Setup.exe'
|
||||||
$checksumType64 = 'sha256'
|
Checksum64 = '553c1ecc51d41314a44016b4183c80f43cbe88ae61292f7e43048bce414db686'
|
||||||
$validExitCodes = @(0,1223)
|
ChecksumType64 = 'sha256'
|
||||||
Install-ChocolateyPackage -PackageName $packageName `
|
ValidExitCodes = @(0, 1223)
|
||||||
-FileType $installerType `
|
}
|
||||||
-SilentArgs $silentArgs `
|
|
||||||
-Url64bit $url64 `
|
Install-ChocolateyPackage @packageArgs
|
||||||
-ValidExitCodes $validExitCodes `
|
|
||||||
-Checksum64 $checksum64 `
|
|
||||||
-ChecksumType64 $checksumType64
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
$packageArgs = @{
|
$packageArgs = @{
|
||||||
PackageName = 'vcarve-pro-makerspace-10.5'
|
PackageName = 'vcarve-pro-makerspace-10.5'
|
||||||
FileType = 'exe'
|
FileType = 'exe'
|
||||||
File = 'C:\Program Files\VCarve Pro - Makerspace Edition 10.5\uninst.exe'
|
File = 'C:\Program Files\VCarve Pro - Makerspace Edition 10.5\uninst.exe'
|
||||||
SilentArgs = '/S'
|
SilentArgs = '/S'
|
||||||
}
|
}
|
||||||
|
|
||||||
Uninstall-ChocolateyPackage @packageArgs
|
Uninstall-ChocolateyPackage @packageArgs
|
||||||
|
@ -1,14 +1,11 @@
|
|||||||
$packageName = 'vcarve-pro-trial-10.5'
|
$packageArgs = @{
|
||||||
$installerType = 'exe'
|
packageName = $env:ChocolateyPackageName
|
||||||
$silentArgs = '/S'
|
FileType = 'exe'
|
||||||
$url64 = '\\ucs\software\VCarveProTrialEditionV10505_Setup.exe'
|
SilentArgs = '/S'
|
||||||
$checksum64 = '28491b876f541c4c0f3dc9056139820ec43ba4e703f0cf2bd575d059a946a84f'
|
Url64 = '\\ucs\software\VCarveProTrialEditionV10505_Setup.exe'
|
||||||
$checksumType64 = 'sha256'
|
Checksum64 = '28491b876f541c4c0f3dc9056139820ec43ba4e703f0cf2bd575d059a946a84f'
|
||||||
$validExitCodes = @(0,1223)
|
ChecksumType64 = 'sha256'
|
||||||
Install-ChocolateyPackage -PackageName $packageName `
|
ValidExitCodes = @(0, 1223)
|
||||||
-FileType $installerType `
|
}
|
||||||
-SilentArgs $silentArgs `
|
|
||||||
-Url64bit $url64 `
|
Install-ChocolateyPackage @packageArgs
|
||||||
-ValidExitCodes $validExitCodes `
|
|
||||||
-Checksum64 $checksum64 `
|
|
||||||
-ChecksumType64 $checksumType64
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
$packageArgs = @{
|
$packageArgs = @{
|
||||||
PackageName = 'vcarve-pro-trial-10.5'
|
PackageName = 'vcarve-pro-trial-10.5'
|
||||||
FileType = 'exe'
|
FileType = 'exe'
|
||||||
File = 'C:\Program Files\VCarve Pro Trial Edition 10.5\uninst.exe'
|
File = 'C:\Program Files\VCarve Pro Trial Edition 10.5\uninst.exe'
|
||||||
SilentArgs = '/S'
|
SilentArgs = '/S'
|
||||||
}
|
}
|
||||||
|
|
||||||
Uninstall-ChocolateyPackage @packageArgs
|
Uninstall-ChocolateyPackage @packageArgs
|
||||||
|
Loading…
Reference in New Issue
Block a user