Solved

Customizing Setup for pre-requisites

Posted on 2011-03-02
4
261 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Partially met my requirements.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

763 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

6 Experts available now in Live!

Get 1:1 Help Now