I'd like to add some more confusion!I agree with James that he is unlikely to be a soldier.The uniform items are a complete mis match.Piper's type glengarry with cockfeather,drummers plaid,Lowland doublet, (Highland type don,t have 'tails'below the waistbelt in front),officer/WO1 epaulette with possible stars,no collar badges,walking out swagger stick,drummers/soldier type white belt,hosetops worn by amongst others Argylls(note double L)Gordons and Seaforths.My final point is his legdress.The left leg is dressed correctly.Nothing more needs to be said about the right leg.He was definitely not subject to an inspection before leaving barracks!
The badge on his sporran is similar to some militia/volunteer regiments in the 1800's.A clearer picture of his belt buckle would help a lot.
Not a lot of help but it may rule out some options.
Jim.