But some applications require the ownership of some registry key or some system file or folder. This requires application to always run in administrator mode to work. But what to do so that the application starts in Adminstrator mode by default. Manifest file is the answer.
Manifest file is a file in VB project which contains the information about the contents of file distribution. It may contain checksum or hash to verify that file is original and isn’t modified in any way. Modifying a file will change its checksum value.
1. Open VB.NET project and click Project -> Add New Item
3. Open this manifest file. Look for the code as highlighted in following image:
4. Replace asInvoker with requireAdministrator or highestAvailable and you’re done! Both ways will work.
This will make the application run with highest available privileges. If you still have some doubt or problem, you can ask in comments!