none
SQL Native Client 10.0 Bootstrapper-Files für VS2010 RRS feed

  • Frage

  • Ich bin auf der Suche nach funktionierenden Bootstrapper-Dateien für die SQLNCLI.MSI. hat jemand schon so was erstellt bzw. gefunden?

    Ich möchte gerne die Installation mit meinem VSInstaller-Projekt durchführen lassen.
    Samstag, 2. Juni 2012 16:58

Antworten

  • Hallo MyKey0815,

    Schau Dir mal folgende Links an. Vielleicht können sie Dir weiterhelfen.

    Howto prerequisite for SQL Client?

    Add your own (Custom) prerequisite to "ClickOnce" application

    Bootstrapper Manifest Generator

    Creating Bootstrapper Packages

    Application Deployment Prerequisites

    Für Microsoft.Sql.Client.9.0 habe ich folgende Dateien gefunden:

    [Product.xml]

    <?xml version="1.0" encoding="utf-8" ?>
    <Product
      xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper"
      ProductCode="Microsoft.Sql.Client.9.0">
     
      <PackageFiles>
        <PackageFile Name="sqlncli.msi"/>
      </PackageFiles>
     
      <RelatedProducts>
        <DependsOnProduct Code="Microsoft.Windows.Installer.3.1" />
      </RelatedProducts>
     
      <InstallChecks>
        <RegistryCheck Property="SQLCliInstalled" Key="HKLM\SOFTWARE\Microsoft\Microsoft SQL Native Client\CurrentVersion" Value="Version" />
      </InstallChecks>
     
      <Commands Reboot="Defer">
        <Command PackageFile="sqlncli.msi"
          Arguments=' /q:a /c:"install /q /l"'
    	     EstimatedInstalledBytes="4200000"
    	     EstimatedInstallSeconds="60">
          <InstallConditions>
            <BypassIf Property="SQLCliInstalled" Compare="ValueEqualTo" Value="9.00.1399.06"/>
            <FailIf Property="AdminUser" Compare="ValueEqualTo" Value="false" String="AdminRequired"/>
           </InstallConditions>
          <ExitCodes>
            <ExitCode Value="0" Result="Success"/>
            <ExitCode Value="1641" Result="SuccessReboot"/>
            <ExitCode Value="3010" Result="SuccessReboot"/>
            <DefaultExitCode Result="Fail" FormatMessageFromSystem="true" String="GeneralFailure" />
          </ExitCodes>
     
        </Command>
      </Commands>
    </Product>

    [Package.xml]

    <?xml version="1.0" encoding="utf-8" ?>
    <Package
      xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper"
      Name="DisplayName"
      Culture="Culture"
      LicenseAgreement="eula.txt">
     
      <PackageFiles>
        <PackageFile Name="eula.txt"/>
      </PackageFiles>
     
      <Strings>
        <String Name="DisplayName">SQL Native Client</String>
        <String Name="Culture">en</String>
        <String Name="AdminRequired">Administrator permissions are required to install the SQL Native Client 9.0. Contact your administrator.</String>
        <String Name="GeneralFailure">A general error has occurred while installing this package.</String>
       </Strings>
    </Package>

    Grüße,

    Robert


    Robert Breitenhofer, MICROSOFT  Twitter Facebook
    Bitte haben Sie Verständnis dafür, dass im Rahmen dieses Forums, welches auf dem Community-Prinzip „Entwickler helfen Entwickler“ beruht, kein technischer Support geleistet werden kann oder sonst welche garantierten Maßnahmen seitens Microsoft zugesichert werden können.

    • Als Antwort markiert MyKey0815 Mittwoch, 20. Juni 2012 13:27
    Mittwoch, 20. Juni 2012 12:17
    Moderator

Alle Antworten