I was wondering: How can a Windows program ask for permission from the user to get administrator rights? I know there's an option when you right-click the exe, but can the program do it from the inside?

I'm asking because I want to create a Setup-like program but I can't write to Program Files if i don't have administrator rights...

Anyways, thanks for all those future answers!