Solved

Customizing Setup for pre-requisites

Posted on 2011-03-02
4
272 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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
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…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

695 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