シェフでchocolatey_packageを使用してWindows Azure Powershellをインストールしようとしています。 Chocolateyの新しい0.9.10.2バージョンは、インストールが成功した後でも0以外のアプリケーション終了コードを返します。シェフとChocolatey v0.9.10.2でignore-package-exit-codesが動作しない
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を送信するためにChocolateyにオプションを送信しようとしましたが、フォーマットのどれも動作するようには思えません:
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
EDIT 01助けのためのの
おかげで、私はChocolateyの新しい0.9.10.3バージョンをテストし、
chocolatey_package 'windowsazurepowershell' do
options "--ignore-package-exit-codes"
end
私は修正プログラムをテストしていると 'chocolatey_packageとの素晴らしい作品が 'オプション "--ignore-パッケージ出口コード" '' end'をdo' 'windowsazurepowershell' –