?
Solved

Customizing Setup for pre-requisites

Posted on 2011-03-02
4
Medium Priority
?
274 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 1500 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
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…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

741 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