Solved

Customizing Setup for pre-requisites

Posted on 2011-03-02
4
271 Views
Last Modified: 2012-05-11
Hi,

I have a vb.net 2008 app that I have to deploy. I want to create setup that does the check of pre-requites and then does the required installation. Following are pre-requisites:

1. First the setup should check for Win 3.1 installer. If not found, then install it.

2. Then it should check for SQL Express 2005. If not found, then install it.

3. Then it should check for SQL Express Management Studio for 2005. If not found, then install it.

4. Then it should check for .Net framework 3.5.  If not found, then install it.

5. Then it should check for Adboe 9.10 or above.  If not found, then install it.

6. Lastly install my application.

How should I create my setup using .Net's setup project to meet above requirements?

Regards,
MI
0
Comment
Question by:vj_mi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 42

Accepted Solution

by:
sedgwick earned 500 total points
ID: 35016550
first you need to create a DLL custom action, check:
http://msdn.microsoft.com/en-us/library/d9k65z2d%28VS.80%29.aspx

once it is done, u simply override OnBeforeInstall:

 protected override void OnBeforeInstall(System.Collections.IDictionary savedState)
        {
            base.OnBeforeInstall(savedState);
            CheckPrerequisites();
        }

void CheckPrerequisites(){

//add code to check if software installed in machine
}
0
 
LVL 42

Expert Comment

by:sedgwick
ID: 35016560
it's not a good practice to have your app installer, install all those pre-requisites software.
you should check and notify user if one of them is missing.
you can't redistribute your app installer along with the installers of those software cause it's illegal.
0
 

Author Comment

by:vj_mi
ID: 35033698
Hello sedgwick,

I will try out your solution and will update you.

Regarding your other comment: I thought that SQL 2005 Express edition, Adboe Reader and .Net framework redistributable is anyway free runtime. Please let me know if I am mistaken.

Regards,
MI
0
 

Author Closing Comment

by:vj_mi
ID: 35451953
Partially met my requirements.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help with preventing downloading a zip file 10 49
Looping through datagridview and dataset ? 6 33
Access Schema 6 45
VB.Net - BackgroundWorker running multiple 5 47
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

749 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