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,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,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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user