All source code in .Net Ask a .Net Pro Discussion Forum Categories All jobs in .Net
NET,MDAC,MSDE,code,evolution,from,original,po
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
.Net Stats

 Code: 666,891. lines
 Jobs: 818. postings

 How to support the site

 
Sponsored by:
Quick Search for:  in language:    
You are in:
 
Login





Latest postings for .Net.
SQL Backup/Restore using SMO
By Visual Soft Computers on 2/6


Click here to see a screenshot of this code!flexi grid
By maytel.mynt on 1/12

(Screen Shot)

Using Excel in VB2010 (VB10)
By Alberto Torres on 2/5


Click here to see a screenshot of this code!SermonNotes
By arifliminto86 on 2/5

(Screen Shot)

Click here to see a screenshot of this code!A.net Programm to add new database
By Rohit Kanugo on 2/5

(Screen Shot)

Access_Database _Add
By Rohit Kanugo on 2/4


Add new DataBase Through Coding for a IT Company
By Rohit Kanugo on 2/4


Click here to put this ticker on your site!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!



 
 
   

Infrastructure Setup (IE6, MDAC, Windows Installer, .NET Framework, MSDE)

Print
Email
 
winzip icon
Submitted on: 1/30/2005 1:31:17 AM
By: MstrControl  
Level: Advanced
User Rating: By 1 Users
Compatibility:C#, VB.NET, ASP.NET, C++.NET

Users have accessed this code 5109 times.
 
(About the author)
 
     This code is an evolution from the original code posted at "The Code Project" web site by Kevin Moore (http://www.codeproject.com/managedcpp/dotnetsetup.asp). It is an instalation program that verifies if the target computer has all the apropriate infrastructure to run a .NET application. I've changed a few things, including a better version checking about MDAC and IE, as well I've added support to select wich components to install (once not all aplications need MDAC and MSDE for instance).

 
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!

    //**************************************
    //     
    // for :Infrastructure Setup (IE6, MDAC,
    //     Windows Installer, .NET Framework, MSDE)
    //     
    //**************************************
    //     
    This program refers to a settings.ini file where 
    all the information regarding what install and 
    where to find are stored.
    There are two main sections in the INI file: 
    [Bootstrap] and [WhatInstall].
    [Bootstrap] gathers the information about the 
    location of the setup files for the 
    infrastrucutre components. It has the following 
    keys:
    MSI : (mandatory) Name of the MSI file 
    (.NET application) that will be installed 
    after the infrastructure.
    ProductName : (optional) The name of your product
    CaptionText : (optional) The title of all the 
    message box that will be displayed
    ErrorCaptionText : (optional) The title of the 
    ERROR message boxes.
    FxInstallerPath : (optional) Relative path of 
    the DOTNETFX.EXE file (assumes the path of 
    the SETUP.EXE file)
    .NetVersion : (mandatory) Version of the .NET 
    framework required (can be v1.0 or v1.1)
    IEInstallerPath : (optional) Relative path of 
    the IE6SETUP.EXE file (assumes the path of 
    the SETUP.EXE file)
    MSIInstallerPath : * (optional) Relative path of 
    the Redistributable Windows Installer 
    (assumes the path of the SETUP.EXE file)
    MDACInstallerPath : (optional) Relative path of 
    the MDAC_TYP.EXE file (assumes the path 
    of the SETUP.EXE file)
    MDACVersion : (mandatory, if installing -- see 
    WhatInstall) Version of the MDAC to be 
    checked in the format MAJOR.MINOR
    MSDEInstallerPath : (mandatory, if installing -- 
    see WhatInstall) Relative path of the 
    SETUP.EXE file that will install the MSDE 
    (assumes the path of the SETUP.EXE file)
    MSDEParams : (optional) parameters to be passed 
    to the MSDE setup (see MSDE documentation 
    for greater details)
    (*) The Windows Installer redistributable 
    installation file varies the name conform the 
    plataform (and version). For MSI 2.0 the names 
    are INSTMSIA.EXE for Win9x, INSTMSIW.EXE for Win 
    NT, 2000 and XP. I've included the new version 
    (3.0) of MSI that is WindowsInstaller-KB884016-v2-x86.exe.
    [WhatInstall] configures what is necessary to 
    the current installation. It has the following 
    keys:
    IE6 : Indicates that IE6 is necessary to this 
    application. (1 or 0)
    MDAC : MDAC is necessary (1 or 0)
    MSDE : MSDE is necessary (1 or 0)
    .NETFramework : .NET Framework is necessary (1 or 0)
    WindowsInstaller : Windows Installer is necessary (1 or 0)
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 7 submission(s) by this author

 

 
 Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:
 
Your Vote!

What do you think of this code(in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments

 There are no comments on this submission.
 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author from the email account you registered on the site, so you can correspond directly.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
To post feedback, first please login.


 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Games | Feedback | Customize | .Net Home | Site Home | Other Sites | Open Letter from Moderators | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997-2010 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.   Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.