LoginSignup
2
3

More than 5 years have passed since last update.

Windows 10 環境構築における検討

Last updated at Posted at 2017-09-07

方針

  1. Portable 版がある場合は Portable 版を利用する。
  2. サイレントインストール可能なインストーラがあれば利用する。
  3. 大物はインストーラで手動インストールする。
  4. 上記以外は chocolatey を利用する。
  5. 自動更新可能なものはアプリ側で行う。

作業フロー

  1. OS インストール
  2. OS 初期設定
  3. powershell の Invoke-WebRequest で最低限必要なものをインストール(gitなど)
  4. github からインストールスクリプトをダウンロードして実行

初期インストールスクリプト

手入力できるように工夫する。

  • gist に保存
  • gist の URL を URL 短縮サービスに登録
  • powershell でダウンロードして実行

こんな感じ

(iwr http://tiny.cc/hogehoge).content

chocolatey

google chrome 等、自動更新機能があるパッケージへの対応

https://stackoverflow.com/questions/44144253/should-i-disable-built-in-auto-update-of-packages-installed-by-chocolatey
https://chocolatey.org/docs/how-to-install-upgrade-package-without-scripts#application-is-self-updating-like-google-chrome

choco pin add -n=googlechrome

パッケージリストの作成

Write-Output "<?xml version=`"1.0`" encoding=`"utf-8`"?>"
Write-Output "<packages>"
choco list -lo -r -y | % { "   <package id=`"$($_.SubString(0, $_.IndexOf("|")))`" />" } | Select-String "chocolatey" -NotMatch | % { $_.Line }
Write-Output "</packages>"
2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3