I'm currently creating a .vbs script which is used to change the default program for a specific file extension however I'm not fully certain as to what registry keys/values I need to change. Doing a google search, I came across many posts in which they all mentioned to change values in HKLM, HKCR and HKCU, it was a bit confusing because it's all pointing towards different places.
Let's say I want to change the .txt file extension so it opens using CustomProgram.exe, what are all the Keys/Values and their locations in which I need to change in order for it to work without any sort of error?