I have created a windows forms application does some function. The problem is when I deploy the application:
- If i deploy with ClickOnce then everything works fine. After installation the winforms application runs without asking for admin password.
- If i deploy with Visual Studio Setup Project and create a MSI setup then after installing it requires administrator password every time it runs.
I want to deploy using Visual Studio Setup Project(MSI) , but don't want the software asking for elevated privileges.
The MSI installation does not ask for a password but the installed program does.
Basically you need to edit (or add, if you don't have one yet) an app.manifest file, then use the requestedExecutionLevel to order what is the execution context required.
Read more about it in MSDN