.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Install/uninstall Software Automatically

Posted By:      Posted Date: October 24, 2010    Points: 0   Category :WPF


I need your help to solve my problem. I want to create an application that will install and un-install software without user interaction. e.g i will give an .exe file (installer.exe) to my application, it will run that installer and follow the installation steps by clicking "Next " Button accept License and go on until installation is completed. 

There are solutions available which can install specific software by recording steps and run them in next installation. But i want to make it generic that our application pick MSI installer from a folder and it will take care for rest of the installation steps.

Looking forward for your kind solution and suggestions.. thanks in advance




View Complete Post

More Related Resource Links

guide to uninstall sql express 2008 and install sql express with managment studio

i have installed sql express 2008 and i need to install sql express 2008 with management studio what steps do i have to follow ? I have downloaded the 3 variances of sql1.sql express 2. sql express with management studio . 3.sql express with advanced servicesHow can i completely uninstall sql 2008 express and install it with management studio?Thank you for your timeAlex

Unable to install VS 2005 after uninstall


I installed VS 2005 on my machine few months back and I worked with it. And now(its been 4 or 5 months I opened it last time)  I saw that all the file options are missing and I'm unable to select any options( file->open ->website or web application) to open. so I uninstalled the VS 2005 from my machine and now tring to reinstall it. But I'm getting the following error.

Microsoft Visual Studio 2005 Setup
The Windows Installer package:

c:\documents and settings\Desktop\vs_setup.msi

could not be opened.


Choose Retry to try again. Choose Cancel for exit setup.
Retry   Cancel  


Mine is 32-bit XP machine. Any help would me really apriciated.

SQL 2005 will not install because of edition upgrade rules do I need to uninstall existing SQL "lite

SQL 2005 will not install because of edition upgrade rules.  Do I need to uninstall existing SQL "lite"?

SQL 2005 will not install blocked because of edition upgrade rules should I uninstall existing SQL?

SQL 2005 will not install   blocked because of edition upgrade rules    should I uninstall existing SQL?

Update-SPSolution vs Uninstall, Remove, Add, Install

I just want to confirm that by calling Update-SPSolution with a new .wsp is just the same as calling it in four steps e.g.


or is there something else this method does?
SharePoint Solution Architect, Perth Australia - Microsoft Virtual Technical Specialist - MCTS WSS Dev, WSS Adm, MOSS Dev, MOSS Adm - http://wss.made4the.net/ - Founder of http://www.sharepointdevwiki.com/

Automatically Populating TextBoxes of a software from another vendor from my DB?


Hello All:

I have a software which I will be using. The software has a number of textboxes and I cannot get an access to the code. How can I automatically populate these textboxes through my own databases?

So for example I have a win form of another vendor which has textfield of:

  1. First Name
  2. Last Name
  3. Address

Now I want to populate these textboxes from my own database. Is there anyway to do it?

Thank You!

Broken Sql 2008 install, can't uninstall or repair


I recently got a dedicated server from a hosting company. It is running Windows 2008 R2 on x64. I think there may have been a previous Sql or Sql Express install which I removed.

I tried to install Sql 2008 Enterprise and got an error about INSTANCESHAREDDIR and/or INSTANCESHAREDWOWDIR not being valid and that I needed to add them into the command line. I added INSTALLSHAREDDIR and INSTALLSHAREDWOWDIR to the command line and was able to get the install to complete but it said some of the components failed (one of which was the actual database engine).

So now I'm trying to uninstall or repair, but every time I do I get a message that the INSTANCESHAREDDIR and INSTANCEWOWDIR are not valid and need to be included as part of the command line. When I do include them I get a message that they are not allowed as part of the command line for an uninstall or repair.

Basically I'm completely stuck because I can't uninstall or repair. I've been trying things for a few hours with no luck. If anyone can help I'd be happy to include any of the log files, exact error messages, etc. Please just let me know if you'd like to troubleshoot the uninstall or repair issue. Also if anyone knows where I could manually set values for those 2 variables I could try doing that.

Thanks in advance,


Software Development Life Cycle (SDLC)

This is also known as Classic Life Cycle Model (or) Linear Sequential Model (or) Waterfall Method. This model has the following activities.

SDLC Approach or Software Development Life Cycle

SDLC process stats from conception to completion of any software project. According to this approach the software development team is responsible for the whole project development life cycle. After doing SRS and requirements analysis; developers follow different models of Software development Life Cycle (SDLC) available, while the most common model is SDLC waterfall model. They divide project in different stages & phases and the output of each stage or phase becomes the input for next stage.

Data Recovery Software

Nokia mobile phone bulk SMS sending software sends unlimited text messages through a GSM based mobile phone connected with your computer system to other mobile phone. Bulk message broadcasting application sends business related messages, notifications, personal SMS, share market information, enterprise advertising news etc to any group or individual in a single click.
Group messaging wizard offers latest and advance technology to create and sends bulk text messages/SMS from your computer system or laptop/desktop via GSM based mobile phone to another mobile phone worldwide. Instant SMS sending software easily and smoothly works with all popular GSM mobile phone brands including LG, Nokia, Samsung, Sony Ericsson, Motorola etc. Nokia mobile phone mass SMS sending tool facilitates you to have strong relationship with your family, friends, customers etc.
GSM mobile phone SMS sending program is very useful utility for all small or large business enterprise to increase their business by sending event alerts, notifications, advertising to individual or group of customers. Mass messaging software provides solution to the user to send multiple SMS through GSM mobile phone connected through PC to nationally or internationally network based mobile phones.

ShortCAD - CAD Software for Pocket PC

ShortCAD is a Free CAD Software made for the Pocket PC. Now you can bring your CAD work with you. ShortCAD lets you create and edit 2D vector graphic drawings just as you do using full blown CAD applications. The drawings can be saved as .shortCAD files or .dxf format so you can export your drawings to other popular vector graphic editors. The most important feature of ShortCAD is the ability to work on and display your drawings while on the go.

Free BarCode Software

Bar Code Specifications

There are more than 300 different types of barcodes, all with their own specifications. You will find detailed specifications of many popular bar code symbologies and where you can order the official specifications here at BarCode-1.

Barcode-1 Specification Sources Page list the most popular barcodes. It has links to technical information and is a good place to start.
The UPC/EAN Barcode Page lists the details of UPC barcode, and EAN barcode, the type used in grocery stores.
UCC128, EAN128 and GS1-128 Page lists the details for this important standard for marking shipping cartons.
The Code 39 Barcode Page has the details for Code 39 barcode, the most popular barcode used in industrial application.
The Code 128 Barcode Page has the details for Code 128 barcode, a barcode that can encode the entire ASCII character set.
The Interleaved 2 of 5 (I 2 of 5) Barcode Page has the details of this popular barcode.
The NW-7 Barcode Page has the details about this popular barcode in Japan.
The Plessey Code Barcode Page has the details for the historically important barcode.
The 2D Barcode Page lists the most popular two dimensional barcodes. It has links to technical information and is a good place to start if you a looking for 2D barcode information.

SqlServer - Windows Account to install Application from Gallery


Referring to this tutorial: http://www.asp.net/webmatrix/tutorials/download-and-install-an-asp-net-application

I selected umbraco cms and got this wizard:

I already have Standard Sql Server 2005 on my machine which I wanted to us for above DB and not SqlExpress.

I did not remember "sa" account pwd nor I use explicitly any account to connect to my Sqlserver. I use Windows Authentication account i.e implicit authentication. So I created new account and gave all rights and used it in the above wizard and was able to install the database after some struggle.

My question is: What if I want to use my Windows Account to install the database above? Why the wizard don't have any option to use Windows Integrated Authentication?

Note: I can create the DB with external user I created, just looking specifics for using Windows Authentication for above installation.

Automatically redirect to HTTPS and check if SSL is active



I've set in the web.config:

    <!-- User Authentication -->
    <authentication mode="Forms">
      <forms loginUrl="~/Page/View/Content/Login.aspx" timeout="2880" requireSSL="true" />

This works fine. If there is no ssl connection, the login form doesn't continue. But I would like to check if ssl is active (in codebehind) and, if it's possible, to automatically the user to the https page if he's currently on http. (I could do this job by manually redirect with page.response("https://url.../login.aspx"); but this is not really generic. For example if the webapp is moved to another domain it doesn't work anymore... I'm looking for something like: FormsAuthentication.RedirectWithSSL(); or so... :D)


VWDE 2010 Won't Install Ajax Control Toolkit on XP Pro


To my displeasure I cannot find VWD2005 which at one time would generate a complete web.config for Ajax so I downloaded and installed VWDE 2010 to a clean install of XP Pro.

I've created a new tab on the toolbar for the controls but after I select the Ajax dll to add the controls to the toolbar it grinds away and then goes poof and closes down the task leaving VWD look as if I had never even created the tab in the toolbar. 


Any advice here?

how i can install sql server in my system


which edition of sql server  are best for me  Developer edition or express editon for development purpose.

i try to install last time sql server in my system but not successful so what i do for get the sql server in my system.

Modifying connection String in Web config using Install Wizard



Im trying to create a Web Deployment Project, the built in setup and deployment is very good in Visual Studio, i need to able to add an additional step in the setup to change the connection string in the Web config file. Ive seen a lot of articles on how to do this and in particular this http://weblogs.asp.net/scottgu/archive/2007/06/15/tip-trick-creating-packaged-asp-net-setup-programs-with-vs-2005.aspx#7162670 I am however stuck on the final part of this tutorial, im using the code Scott provided but have two errors,  heres part of my code where the errors are

using System;
using System.Configuration;
using System.Configuration.Install;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.DirectoryServices;

 void ConfigureDatabase(string targetSite, string targetVDir, string connectionString)
            // Retrieve "Friendly Site Name" from IIS for TargetSite
            DirectoryEntry entry = new DirectoryEntry("IIS://LocalHost/" + targetSit
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend