工作我正嘗試在廚師中安裝Windows Azure Powershell與chocolatey_package。即使在安裝成功之後,新的0.9.10.2版本的Chocolatey也會返回應用程序退出代碼,該代碼可以不爲0。忽略軟件包退出代碼在巧克力v0.9.10.2中無法與廚師
0 - most widely used success exit code
1605 - (MSI uninstall) - the product is not found, could have already been uninstalled
1614 (MSI uninstall) - the product is uninstalled
1641 (MSI) - restart initiated
3010 (MSI, InnoSetup can be passed to provide this) - restart required
在這種情況下,代碼是3010,因爲安裝成功,但需要重新啓動。廚師顯示以下消息: Expected process to exit with [0], but received '3010'
。 對於廚師0是唯一的成功退出代碼。我試圖發送選項的巧克力忽略應用程序退出代碼發送0到廚師,但沒有的格式,似乎工作:
chocolatey_package 'windowsazurepowershell' do
options "--ignore-package-exit-codes=true"
end
基礎上我自己也嘗試
options "--ignore-package-exit-codes=3010"
options "--use-package-exit-codes=false"
文檔下列選項應該是有效的:
ignorepackagecodes ignorepackageexitcodes ignore-package-codes ignore-package-exit-codes
usepackagecodes usepackageexitcodes use-package-codes use-package-exit-codes
編輯
感謝您的幫助,我已經測試了新的0.9.10.3版本的巧克力,並與
chocolatey_package 'windowsazurepowershell' do
options "--ignore-package-exit-codes"
end
我已經測試了這個修補程序,並且與 '巧克力包裝'windowsazurepowershell'做' '選項「--ignore包裝退出代碼」' '結束' –