When I was trying to create a custom setup application in C# I needed the requireAdministrator privilege.
I need the requireAministrator privilege to prevend the "This program might not have installed correctly" message.
Normally this is done by adding the following line to your application manifest as described here.
But the problem was not solved.