this is wrong on many levels
1) its for wood
2) such sprays are silicone based which is harmful for rubber in long run
soon your sunroof may stop working
if these sort of sprays worked Mercedes wouldn't have specified grease in their manuals.
i also have a altis 2010 with sunroof and never had any problem, due to using correct products for protection and lubrication.