Is it legal to secretly install spyware software on my wife's cell phone?

Question Details:

My wife is having an affair and I would like to have proof so I can confront her with it. Want to know if I can legally install software on her cell phone that will let me be able to view her text messages with out her knowing the software is on there? Important Notice