Darrel,
What I found with my situation is even after explicitly choosing the default program, windows was 'confused' about which 'codestudio.exe' it should use in the \mecanique\ folder.

So that drove me into the registry were I found the conflicting values.

I guess I should have made that clear first.