# Windows 10再インストールしたメモ
昔自動化するためにスクリプトを書いたんだけどChocolatey使わなくなったりして変わったので手動でやった。スクリプトに書き起こすためのメモ。
## 再インストールする前にバックアップがいると思うもの
- Blender
- `AppData/Roaming/Blender Foundation/Blender`
- OBS-Studio
- `AppData/Roaming/obs-studio`
- VRoidの制作したやつ
- `ドキュメント/vroid`
- Stylusのusercss
- Violentmonkeyのuserscript
- ダウンロードフォルダ
- 秘密鍵系
- `.gitconfig`
## 再起動が必要な項目
デカい処理中に再起動が必要だとめんどくさいので先にやっておく
### WSLの有効化
https://docs.microsoft.com/ja-jp/windows/wsl/install-win10
```
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
```
## Windows10Debloater
https://github.com/Sycnex/Windows10Debloater
スタートメニューとかにあるゴミを消すやつ
なんかあまり消えてくれない感じあるけどまあ
あとCortanaを殺せる
```PowerShell
iex ((New-Object System.Net.WebClient).DownloadString('https://git.io/debloat'))
```
## 今度使いたいやつら
### Win10-Initial-Setup-Script
https://github.com/Disassembler0/Win10-Initial-Setup-Script
今回は使わなかったけど、エクスプローラーで拡張子を表示するようにするみたいなやつをコマンドでできるやつらしい
### concfg
https://github.com/lukesampson/concfg
コンソールのテーマを一発で入れられるやつ
## scoop
https://scoop.sh/
パッケージマネージャ
```PowerShell
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
iwr -useb get.scoop.sh | iex
```
## scoopで入れたアプリ
```
scoop install git
scoop bucket add extras
```
mainとextra:
```
PS C:\Users\Eai> scoop list
Installed apps:
7zip 19.00
aria2 1.35.0-1
bitwarden 1.18.0 [extras]
crystaldiskinfo 8.6.0 [extras]
discord 0.0.306 [extras]
discord-canary 0.0.266 [extras]
discord-ptb 0.0.52 [extras]
fastcopy 3.89 [extras]
ffmpeg 4.2.3
firefox 77.0.1 [extras]
firefox-developer 78.0b6 [extras]
firefox-nightly 79.0a1.20200613214137 [extras]
flux 4.111 [extras]
fontbase 2.11.3 [extras]
git 2.27.0.windows.1
gitkraken 7.0.1 [extras]
go 1.14.4
googlechrome 83.0.4103.97 [extras]
handbrake 1.3.3 [extras]
imageglass 7.6.4.30 [extras]
imagemagick 7.0.10-19
losslesscut 3.23.7 [extras]
manictime 4.4.7.1 [extras]
mpc-be 1.5.4.4969 [extras]
musicbee 3.3.7367 [extras]
nvm 1.1.7
obs-studio 25.0.8 [extras]
screentogif 2.25 [extras]
sharex 13.1.0 [extras]
winmerge 2.16.6 [extras]
```
nonportable:
```
scoop bucket add nonportable
```
```
google-japanese-input-np 2.25.3700.0 [nonportable]
svg-explorer-extension-np 1.1.0 [nonportable]
```
dodorz: https://github.com/dodorz/scoop-bucket
```
scoop bucket add dodorz https://github.com/dodorz/scoop-bucket
```
```
Sizer 4.0_dev640 [dodorz]
```
naderi: https://github.com/naderi/scoop-bucket
```
scoop bucket add naderi https://github.com/naderi/scoop-bucket
```
```
cppcryptfs 1.4.2.2 [naderi]
```
いろんなbucketからscoopのアプリ一覧するやつ: https://rasa.github.io/scoop-directory/by-apps
`pureref`が今対応できてないらしい: https://github.com/lukesampson/scoop-extras/issues/3921
### 最初Scoopで入れたけど問題があったので結局手動で入れたもの
- `vscode`
- 更新された際、マニフェストの更新待ちになるのになかなか更新されなくて通知がうざかった
- `google-chrome`
- 自動更新がおかしくなるため
- 別にアンインストールするものでもないので普通に入れて問題ないため
### node
`scoop`で入れた`nvm`は`nvm-windows`のこと: https://github.com/coreybutler/nvm-windows
**管理者のPowerShellで行うこと**
ltsって指定したいんだがないのでバージョンを https://nodejs.org/ で見る
```
nvm install 12.18.0
nvm use 12.18.0
```
```
npm i -g yarn
```
以降すべてyarnで管理
## 手動で入れたアプリ
- Affinityスイート: https://store.serif.com/ja-jp/account/downloads/
- Google Backup and Sync: https://www.google.com/intl/ja_ALL/drive/download/backup-and-sync/
- `ghq`: https://github.com/x-motemen/ghq
- `go get github.com/x-motemen/ghq`
- UnityHub: https://unity3d.com/jp/get-unity/download
- Unity 2018.4.20f1 (VRChat)
- Android Build Support
- なんかUnityいれたらVS2017も勝手に入ってお得
- alt-ime-ahk:https://github.com/karakaram/alt-ime-ahk
- `shell:startup`に入れておく
- WindowGrid: http://windowgrid.net/
- `shell:startup`に入れておく
- Keybase: https://keybase.io/download
- Charles: https://www.charlesproxy.com/
- GeForce Experience: https://www.nvidia.com/ja-jp/geforce/geforce-experience/
- Spotify: https://www.spotify.com/jp/
- Bandicam: https://www.bandicam.jp/downloads/
- NVIDIA RTX Voice: https://www.nvidia.com/en-us/geforce/guides/nvidia-rtx-voice-setup-guide/
- GTXで使う際、アクセス権が~とかしなくても7zipで展開すればいい
- Meiryo UIも大っきらい!!: https://github.com/Tatsu-syo/noMeiryoUI
- これをつかってUIフォントをYu Gothic UIから**Meiryo UIにする**
- 冒涜的
## ストアから入れたアプリ
- Windows Terminal
- EarTrumpet
## シェルシェルdracula
PowerShellの色をマシにする
https://github.com/dracula/powershell
なんか管理者の色がうまく行かないので頑張ってコピーする
https://github.com/dracula/windows-terminal
普段はWindows Terminalを使うように頑張る
## シェルシェル
PowerShellの余計なエイリアスを滅ぼす
```PowerShell
del alias:curl
del alias:wget
```
## scoopのマニフェストを作りたい
メモです
- NeeView
- AssetStudio
- uTinyRipper
- UnityHub
- UnityEx
- Keybase
- Charles
- Tubeyomi
- BouyomiChan
- ASF
- Spotify
- Bandicam
- VRoidStudio
- WindowGrid
- virtualhere
- PlayStationDiscord
多くね?
## TODO
### 等幅フォント
Meiryoの最新版に対応してなくてMeiryoKeが使えないので
`BIZ UDゴシック`が悪くない感じ
