Reputation: 952
I have created a windows forms application does some function. The problem is when I deploy the application:
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.
Upvotes: 1
Views: 5684
Reputation: 8285
you need to work with
UAC elevated permission
. take a look at this Ms Documentation link
Also this project doing some R&D with UAC example
Hope this Helps
Upvotes: 2
Reputation: 2309
You'll need to create and embed an application manifest (UAC) in your application, as described here. If you don't want to do that, ClickOnce might be a solution.
MSDN has some useful information on this topic, specifically:
Impact to the user's computer. With Windows Installer deployment, applications often rely on shared components, with the potential for versioning conflicts; with ClickOnce deployment, each application is self-contained and cannot interfere with other applications.
Security permissions. Windows Installer deployment requires administrative permissions and allows only limited user installation; ClickOnce deployment enables non-administrative users to install and grants only those Code Access Security permissions necessary for the application.
Upvotes: 1