Bootstrapper, Sync Framework 2.1 - Prerequisites

后端 未结 2 1791
太阳男子
太阳男子 2021-01-14 02:11

EDIT: After even more searching I found a way to complete this. I used This preview page to alter my Product.xml then I copied some of my existing Product.x

相关标签:
2条回答
  • 2021-01-14 02:46

    Finally I finished the bootstrapper based on bootstrappers for sync framework 2.0

    here is the package and product xml respectively:

    product.xml for SyncFX20Core(x64)

    <?xml version="1.0" encoding="UTF-8"?>
    <Product xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper" ProductCode="SyncFX20Core(x64)"/>
    

    package.xml for SyncFX20Core(x64)

    <?xml version="1.0" encoding="utf-8"?>
    <Package Name="DisplayName" LicenseAgreement="synchronizationeula_english.rtf" Culture="Culture" xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper">
      <PackageFiles CopyAllPackageFiles="false">
        <PackageFile Name="synchronizationeula_english.rtf" />
        <PackageFile Name="Synchronization-v2.1-x64-ENU.msi" HomeSite="SyncFX21_64" PublicKey="3082010A0282010100BD72B489E71C9F85C774B8605C03363D9CFD997A9A294622B0A78753EDEE463AC75B050B57A8B7CA05CCD34C77477085B3E5CBDF67E7A3FD742793679FD78A034430C6F7C9BAC93A1D0856444F17080DF9B41968AA241CFB055785E9C54E072137A7EBCE2C2FB642CD2105A7D6E6D32857C71B7ACE293607CD9E55CCBBF122EBA823A40D29C2FBD0C35A3E633DC72C490B7B7985F088EF71BD435AE3A3B30DF355FB25E0E220D3E79A5E94A5332D287F571B556A0C3244EF666C6FF0389CEF02AD9AA1DD9807100E3C1869E2794E4614E0B98CD0756D9CAC009C2D42F551B85AF4784583E92E7C2BBB5DCD196128AD94430AC56A42FFB532AEA42922DE16E8D30203010001" />
      </PackageFiles>
      <Commands Reboot="Defer">
        <Command PackageFile="Synchronization-v2.1-x64-ENU.msi" Arguments="/quiet" EstimatedInstallSeconds="80" EstimatedTempBytes="20000000">
          <ExitCodes>
            <ExitCode Value="0" Result="Success" />
            <ExitCode Value="112" Result="Fail" String="DiskFull" />
            <DefaultExitCode Result="Fail" String="Anunexpectedexitcodewasr" FormatMessageFromSystem="true" />
          </ExitCodes>
        </Command>
      </Commands>
      <Strings>
        <String Name="Culture">en</String>
        <String Name="DisplayName">SyncFX21Core (x64)</String>
        <String Name="SyncFX21_64">http://download.microsoft.com/download/E/1/E/E1E636E6-AA5C-4052-9927-D722312DB564/Synchronization-v2.1-x64-ENU.msi</String>
        <String Name="DiskFull">DiskFull</String>
        <String Name="Anunexpectedexitcodewasr">An unexpected exit code was returned from the installer. The installation failed.</String>
      </Strings>
    </Package>
    

    product.xml for SyncFX20DatabaseProviders(x64)

    <?xml version="1.0" encoding="utf-8"?>
    <Product ProductCode="SyncFX20DatabaseProviders(x64)" xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper">
      <RelatedProducts>
        <DependsOnProduct Code="SyncFX20Core(x64)" />
      </RelatedProducts>
    </Product>
    

    package for for SyncFX20DatabaseProviders(x64)

    <?xml version="1.0" encoding="utf-8"?>
    <Package Name="DisplayName" LicenseAgreement="databaseproviderseula_english.rtf" Culture="Culture" xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper">
      <PackageFiles CopyAllPackageFiles="false">
        <PackageFile Name="databaseproviderseula_english.rtf" />
        <PackageFile Name="DatabaseProviders-v3.1-x64-ENU.msi" HomeSite="SyncFX21DatabaseProviders_64" PublicKey="3082010A0282010100BD72B489E71C9F85C774B8605C03363D9CFD997A9A294622B0A78753EDEE463AC75B050B57A8B7CA05CCD34C77477085B3E5CBDF67E7A3FD742793679FD78A034430C6F7C9BAC93A1D0856444F17080DF9B41968AA241CFB055785E9C54E072137A7EBCE2C2FB642CD2105A7D6E6D32857C71B7ACE293607CD9E55CCBBF122EBA823A40D29C2FBD0C35A3E633DC72C490B7B7985F088EF71BD435AE3A3B30DF355FB25E0E220D3E79A5E94A5332D287F571B556A0C3244EF666C6FF0389CEF02AD9AA1DD9807100E3C1869E2794E4614E0B98CD0756D9CAC009C2D42F551B85AF4784583E92E7C2BBB5DCD196128AD94430AC56A42FFB532AEA42922DE16E8D30203010001" />
      </PackageFiles>
      <Commands Reboot="Defer">
        <Command PackageFile="DatabaseProviders-v3.1-x64-ENU.msi" Arguments="/quiet" EstimatedInstallSeconds="80" EstimatedTempBytes="20000000">
          <ExitCodes>
            <ExitCode Value="0" Result="Success" />
            <ExitCode Value="112" Result="Fail" String="DiskFull" />
            <DefaultExitCode Result="Fail" String="Anunexpectedexitcodewasr" FormatMessageFromSystem="true" />
          </ExitCodes>
        </Command>
      </Commands>
      <Strings>
        <String Name="Culture">en</String>
        <String Name="DisplayName">SyncFX21DatabaseProviders (x64)</String>
        <String Name="SyncFX21DatabaseProviders_64">http://download.microsoft.com/download/E/1/E/E1E636E6-AA5C-4052-9927-D722312DB564/DatabaseProviders-v3.1-x64-ENU.msi</String>
        <String Name="DiskFull">DiskFull</String>
        <String Name="Anunexpectedexitcodewasr">An unexpected exit code was returned from the installer. The installation failed.</String>
      </Strings>
    </Package>
    

    Please Feel free to contact me if you need more details or the source files... ameser@gmail.com

    Cheers!.

    0 讨论(0)
  • 2021-01-14 02:51

    Xml for x86 version with Installed check:

    <?xml version="1.0" encoding="UTF-8"?>
    <Product xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper" ProductCode="SyncFX21Core (x86)" >
        <PackageFiles CopyAllPackageFiles="false">
            <PackageFile Name="synchronization-v2.1-x86-enu.msi" PublicKey="3082010A0282010100BD3089FB4572A8536B9E894F0023C0BED41D3DB1594038F373918226E696120053D91C820E3CCE1DBBBDF7428D97D4FC381AE4B9F9E3ECD36103BFA0D3D6754D5C46A9ED5EF0D2E2695B1A73EAB31C8D04CD2944A064592F1E985D6EC7AB18398265C4A7BCAB758819EA87971426B37F2676A4D4383984E3B326D518F92BE9D2C9165A5421F2978D878629FEF4492CE68BF8043F7DCDCD9692860D7103E2D0FE0C4235FFD7B83FDD8E450A7DF6D74BAD5BF076721D77237D8935C41C5DB250034B476D07A75588980680A681AD544ED881D6FABF42C031BE550D99D553491230EBE5A5887C5EC47A5A148708B43769A0EB32248C08EBF9D414BAE0FCCDEAA4150203010001" />
        </PackageFiles>
    
        <InstallChecks>
            <RegistryCheck Property="Installed" Key="HKLM\SOFTWARE\Microsoft\Microsoft Sync Framework\v2.1\Setup\SynchronizationX86" Value="Install"/>
        </InstallChecks>
    
        <Commands>
            <Command PackageFile="synchronization-v2.1-x86-enu.msi" Arguments="/quiet" EstimatedInstallSeconds="80" EstimatedTempBytes="20000000">
                <InstallConditions>
                    <BypassIf Property="Installed" Compare="ValueEqualTo" Value="1" />
                    <FailIf Property="AdminUser" Compare="ValueEqualTo" Value="false" String="AdminRequired" />
                </InstallConditions>
                <ExitCodes>
                    <ExitCode Value="0" Result="Success" />
                    <ExitCode Value="112" Result="Fail" String="DiskFull" />
                    <DefaultExitCode Result="Fail" String="Anunexpectedexitcodewasr" FormatMessageFromSystem="true" />
                </ExitCodes>
            </Command>
        </Commands>
        <Strings>
            <String Name="DiskFull">DiskFull</String>
            <String Name="AdminRequired">Administrator permissions are required to install Sync Framework 2.1. Contact your administrator.</String>    
            <String Name="Anunexpectedexitcodewasr">An unexpected exit code was returned from the installer. The installation failed.</String>
        </Strings>
    </Product>
    
    0 讨论(0)
提交回复
热议问题