* インストール先の変更 [#o4e4a3d9]

- -iaオプションでインストーラーにパラメータを渡す。
- -oオプションでインストーラーが(サイレントインストールではなく、実際にインストーラーダイアログが表示されて)起動する。

** インストーラー種別指定 [#i66e5d68]

*** MSI形式 [#b0007869]
 choco install foo -ia 'INSTALLDIR=C:\bar'
 choco install foo -ia 'TARGETDIR=C:\bar'
 
- http://stackoverflow.com/questions/8839978/install-msi-with-msiexec-in-a-specific-directory

*** Inno Setup形式 [#l0c90232]
 choco install foo -ia '/DIR=C:\bar'

- http://www.jrsoftware.org/ishelp/
- Other information - Setup Command Line Parameters

** 例 [#ca3825aa]

*** Git for Windows [#if9e5b3e]
 CMD> choco install git.install -ia '/DIR=C:\Git'

PowerShellからだと何故か動作しない?

** 参考 [#g618d19a]
https://github.com/chocolatey/chocolatey/wiki/GettingStarted#overriding-default-install-directory-or-other-advanced-install-concepts


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS