Bootstrapper: gewusst Wie: kompilieren Sie die Anwendung und Voraussetzung im einzelnen .msi-Paket?

Ich bin erstellen .msi-Pakets für die Anwendung die Voraussetzung für die installation.
Ich bin mit dem Visual Studio 2005 Bootstrapper für diese Aufgabe.
Zu diesem Zweck habe ich Folgendes:
Befindet sich der Ordner C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\ und erstellt einen Ordner für meine Voraussetzung (machte es gleiche Struktur wie 'dotnetfx'); die 'product.xml' und 'package.xml' und platzierte Sie entsprechend. Ich habe die xml-Dateien sehr einfach ist, so weit die installation testen:

product.xml

<?xml version="1.0" encoding="utf-8"?>
<Product ProductCode="MyPrereq" xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper">
  <PackageFiles CopyAllPackageFiles="false">
    <PackageFile Name="MyPrereq.exe" />
  </PackageFiles>
  <InstallChecks>
  </InstallChecks>
  <Commands Reboot="None">
    <Command PackageFile="MyPrereq.exe" EstimatedInstallSeconds="90">
      <InstallConditions>
      </InstallConditions>
      <ExitCodes>
    <ExitCode Value="0" Result="Success"/>
        <DefaultExitCode Result="Fail" String="GeneralFailure" FormatMessageFromSystem="true" />
      </ExitCodes>
    </Command>
  </Commands>
</Product>

package.xml

<?xml version="1.0" encoding="utf-8"?>
<Package Name="MyPrereq" Culture="Culture" xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper">
  <Strings>
    <String Name="Culture">en</String>
    <String Name="DisplayName">MyPrereq</String>
    <String Name="GeneralFailure">A fatal error occurred. The installation failed.</String>
  </Strings>
</Package>

Jetzt kann ich hinzufügen, das die Voraussetzung aus der Liste aus und Baue meine setup-Projekt.

Das problem:

Die build-Ausgabe der 'setup.exe' das 'MyApp.msi " - Paket, plus die Unterordner namens 'MyPrereq' enthält 'MyPrereq.exe'.

Ich würde gerne das build zu erstellen 'setup.exe' und ein einfaches 'MyApp.msi", die enthalten die 'MyPrereq' innen, so dass keine zusätzlichen Dateien/Verzeichnisse.

Ich weiß, dass die .NET framework ist ein weiteres prereq für meine app, und es ist in die gleiche .msi, also das sollte doch möglich sein, irgendwie.

Wie kann ich das erreichen?

InformationsquelleAutor Evgeny | 2009-02-19
Schreibe einen Kommentar