How can I make sure the user installing my software has admin rights

From NSIS Wiki

Use the UserInfo plug-in. For an example see the 'Examples\UserInfo' folder.

Personal tools
donate