Skip to content

Instantly share code, notes, and snippets.

@mkht
Created November 27, 2017 12:57
Show Gist options
  • Save mkht/f4fde36c633c6c68278180e3e66261e7 to your computer and use it in GitHub Desktop.
Save mkht/f4fde36c633c6c68278180e3e66261e7 to your computer and use it in GitHub Desktop.
Photoshopの関連付けを64bit版に直すスクリプト
$PS32 = 'C:\Program Files (x86)\Adobe\Adobe Photoshop CC 2018 (32 Bit)\Photoshop.exe'
$PS64 = 'C:\Program Files\Adobe\Adobe Photoshop CC 2018\Photoshop.exe'
gci HKLM:\SOFTWARE\Classes | ? {$_.Name -match 'Photoshop'} | gci -Recurse | gp | ? {$_.'(default)'.contains($PS32)} | % { sp -Path $_.PSPath -Name '(default)' -Value $_.'(default)'.Replace($PS32,$PS64)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment