Click here to Skip to main content
Click here to Skip to main content
Articles » Languages » C++ / CLI » General » Downloads
 
Add your own
alternative version
Go to top

Enhanced .NET Bootstrap Setup

, 24 Nov 2005
Modified Microsoft Setup program to install required IE6, MSI 2.0 and .NET.
dotnetsetup_exe.zip
setup.exe
settings.ini
dotnetsetup_src.zip
CSingleInstance.hxx
settings.ini
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE 
BEGIN
    "resource.h\0"
END

2 TEXTINCLUDE 
BEGIN
    "#include ""afxres.h""\r\n"
    "\0"
END

3 TEXTINCLUDE 
BEGIN
    "\r\n"
    "\0"
END

#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_BILLBOARD DIALOGEX 0, 0, 167, 53
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_CAPTION
CAPTION "Please wait..."
FONT 8, "MS Shell Dlg", 0, 0, 0x0
BEGIN
    LTEXT           "Setup is working. \n\rThis may take several minutes...",
                    IDC_TEXT,7,7,153,39
END

IDD_INSTALL DIALOGEX 0, 0, 330, 165
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | 
    WS_SYSMENU
CAPTION "Installation Requirements"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
    DEFPUSHBUTTON   "Install",IDOK,85,123,50,14
    PUSHBUTTON      "Cancel",IDCANCEL,162,123,50,14
    CONTROL         "Internet Explorer 6.01",IDC_IE,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,120,38,88,10
    CONTROL         ".Net Framework",IDC_DOTNET,"Button",BS_AUTOCHECKBOX | 
                    WS_TABSTOP,120,56,67,10
    CTEXT           "The following checked items are required to install this .Net Product",
                    IDC_STATIC,27,14,283,18
    CONTROL         "MDAC",IDC_MDAC,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
                    120,74,35,10
    CONTROL         "MS SQL Server Desktop Engine",IDC_MSDE,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,120,92,115,10
END


/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO 
BEGIN
    IDD_BILLBOARD, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 160
        TOPMARGIN, 7
        BOTTOMMARGIN, 46
    END

    IDD_INSTALL, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 323
        TOPMARGIN, 7
        BOTTOMMARGIN, 158
    END
END
#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// String Table
//

STRINGTABLE 
BEGIN
    IDS_NOT_SINGLE_INSTANCE "Another version of setup is already running.\n\rOnly one version of this application can run at a single time."
    IDS_DIALOG_CAPTION      "%s Setup"
    IDS_SINGLE_INSTANCE_FAIL 
                            "CreateMutex failed to allocate handle for single instance check."
    IDS_SETUP_FAILURE       "%s Setup has failed.  If the problem persists, please contact Product Support."
    IDS_DEFAULT_PRODUCTNAME "Application"
    IDS_SETTINGS_INIT_FAILURE 
                            "An error occurred while parsing installer settings file '%s' or the file could not be located."
    IDS_CREATE_PROCESS_FAILURE 
                            "CreateProcess failed for the following command-line: %s"
    IDS_INSUFFICIENT_PRIVILEGES 
                            "Local system administrator's privileges are required to run %s Setup. Setup will now exit."
    IDS_DIALOG_TEXT         "To start %1 Setup, click OK. To quit without installing, click Cancel."
    IDS_ERROR_CAPTION       "%s Setup Error"
    IDS_VERSION_DETECT_FAILED 
                            "Version detection failed for %1. Insure that the installer exists at the specified location.%n%nMessage returned: %2"
END

STRINGTABLE 
BEGIN
    IDS_MSI_NOT_FOUND       "Product installer '%s' could not be located. Setup will now exit."
    IDS_REBOOT_QUERY        "Setup has completed. Would you like to reboot now?"
    IDS_SETUP_SUCCEEDED     "Setup succeeded."
    IDS_VERSION             "v1.0"
    IDS_MDAC_VERSION        "2.7"
    IDS_MSDE_PARAMS         "/setup.ini /SAPWD=""password"""
    IDS_FX_OPTIONS          "/q:a /c:""install /l /q"""
    IDS_REBOOT_REQUIRED     "A reboot is required in order to continue.  Would you like to reboot now?"
    IDS_IE_INSTALL          "Installing Internet Explorer"
    IDS_MDAC_INSTALL        "Installing Microsoft Data Access"
    IDS_MSDE_INSTALL        "Installing Microsoft SQL Server Desktop Engine"
    IDS_FX_INSTALL          "Installing .Net Framework"
    IDS_ERROR1              "Either the syntax used to specify parameters to Dotnetfx.exe is incorrect, or the parameters are invalid"
    IDS_ERROR2              "You do not have the permissions required to install or uninstall this application. Please contact your administrator"
    IDS_ERROR3              "The Windows Installer installation failed. As a result, the installation of Dotnetfx.exe cannot proceed."
    IDS_ERROR4              "Due to the improper installation of Windows Installer, the installation of Dotnetfx.exe cannot proceed."
END

STRINGTABLE 
BEGIN
    IDS_ERROR5              "A fatal error occurred and the installation of Dotnetfx.exe cannot proceed."
    IDS_ERROR6              "Another instance of the .Net Installer is already running."
    IDS_ERROR7              "You attempted to install a version of Dotnetfx.exe that is already installed. Installation cannot proceed."
    IDS_ERROR8              "Cannot get Temp directory."
    IDS_ERROR9              "A beta version of the .NET Framework was detected on the computer. You must uninstall any beta versions before attempting to install Dotnetfx.exe."
    IDS_ERROR10             "Cannot get System directory."
    IDS_FX_SERVICE_PACK     "NDP1.1sp1-KB867460-X86.exe"
END

#endif    // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//


/////////////////////////////////////////////////////////////////////////////
#endif    // not APSTUDIO_INVOKED

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Kevin Moore
Web Developer
United States United States
No Biography provided

| Advertise | Privacy | Mobile
Web01 | 2.8.140905.1 | Last Updated 24 Nov 2005
Article Copyright 2003 by Kevin Moore
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid