Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

creating an msi that requires adminstrative privilages to install

Posted on 2010-08-22
1
Medium Priority
?
224 Views
Last Modified: 2013-11-27
I have an msi that will require the user to install .NET 4.0.  I want to have the msi that I've created using VS 2010 require the user to have adminstrative privilages.  How would I make this happen?  I initially was thinking that there would be a setting for that in the properties of the set-up project.
0
Comment
Question by:PeterTrefren
1 Comment
 
LVL 16

Accepted Solution

by:
Vikram Singh Saini earned 2000 total points
ID: 33498618
Hi,

Here is a property named AdminUser which can help to  achieve your goal.

Please follow these steps:

1) Open your Setup Project, View->Launch Conditions.
2) Right click on Launch Conditions, and add a new  Condition in your Launch Conditions.
3) Right click the Condition, choose Properties Window.
4) Set Condition to AdminUser.  
5) Build and install.

Reference:
http://social.msdn.microsoft.com/Forums/en-US/winformssetup/thread/e5c47ca7-ebce-44ed-ae10-f3d0928521bc/

Regards,
V.S.Saini
0

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question