Solved

creating an msi that requires adminstrative privilages to install

Posted on 2010-08-22
1
212 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 500 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

770 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