Solved

Customizing Setup for pre-requisites

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

911 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now