Formally install, almost cursing (5,2)
I believe the answer is:
swear in
'formally install' is the definition.
I can't judge whether this definition defines the answer.
'almost cursing' is the wordplay.
'almost' means to remove the last letter (almost the whole word is kept).
'cursing' becomes 'swearing' ('swear' can be a synonym of 'curse').
'swearing' with its final letter taken away is 'SWEAR IN'.
Can you help me to learn more?
(Other definitions for swear in that I've seen before include "Get into office" , "Administer oath to one taking up office" , "Induct into office" , "Admit to office" , "bring candidate to office" .)