install plist before linking

If linking fails,  won't try to re-install the plist.

Closes #20843.