2. product.xml:
<?xml version="1.0" encoding="utf-8" ?>
<Product
xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper"
ProductCode="Microsoft.SqlServer.SQLSysClrTypes.12.0.x86"
>
<RelatedProducts>
<EitherProducts>
<DependsOnProduct Code=".NETFramework,Version=v4.6.1" />
<DependsOnProduct Code=".NETFramework,Version=v4.6" />
<DependsOnProduct Code=".NETFramework,Version=v4.6,Profile=Client" />
</EitherProducts>
</RelatedProducts>
<PackageFiles CopyAllPackageFiles="false">
<PackageFile Name="SQLSysClrTypes.msi" HomeSite="SQLSysClrTypesMsi" PublicKey="3082010a0282010100c2ded6cfe2b77f1165ffb363a9f372b9f124eb5fa41cb24459eb6f9cfb70db65699aab90315effde2b6411f5ed6ce9002182c390cc8219a3e39963658abdd3d5fb20a3e0197fb88d3c6afec8128de5d339ef4d4e3e86964c11b111849b2798883b2dd47d18f305e0ad4b043e437519e646c48c9ddb89d82487bef44727bf6d8ddc78b9c365a16f37eabc71a69dac8e8f8d88917ea83725d98124a988f46346eabb20c9012fd88e0cd9d9ede036fb64684dfc422f9120a9089a284a47a8f0fed9b27afdd8e83801bc8145ab3ae81a2add39833f07dbd8e18ffc392c369e019fef6877c8786f3ef820ff961a10bef1aad0619ea89a84bf3eaeafca0a59e58d8b050203010001" />
</PackageFiles>
<InstallChecks>
<RegistryCheck Property="IsViewerInstalled" Key="HKLM\SOFTWARE\Microsoft\Microsoft SQL Server 2014 Redist\SQL Server System CLR Types\CurrentVersion" Value="Install" />
</InstallChecks>
<Commands Reboot="Defer">
<Command PackageFile="SQLSysClrTypes.msi"
Arguments="/q /norestart"
EstimatedInstalledBytes="13000000"
EstimatedInstallSeconds="150">
<!-- These checks determine whether the package is to be installed -->
<InstallConditions>
<BypassIf Property="IsViewerInstalled" Compare="ValueExists" Value="1"/>
<!-- Block install if user does not have admin privileges -->
<FailIf Property="AdminUser" Compare="ValueEqualTo" Value="false" String="AdminRequired"/>
</InstallConditions>
<ExitCodes>
<ExitCode Value="0" Result="Success"/>
<ExitCode Value="3010" Result="SuccessReboot"/>
<ExitCode Value="4097" Result="Fail" String="AdminRequired"/>
<ExitCode Value="4099" Result="Fail" String="WindowsInstallerImproperInstall"/>
<ExitCode Value="4101" Result="Fail" String="AnotherInstanceRunning"/>
<ExitCode Value="4113" Result="Fail" String="BetaProductFailure"/>
<DefaultExitCode Result="Fail" FormatMessageFromSystem="true" String="GeneralFailure" />
</ExitCodes>
</Command>
</Commands>
</Product>
3. Within the "en" (or whatever language you are localizing) folder, create 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.rtf"
>
<PackageFiles>
<PackageFile Name="eula.rtf"/>
</PackageFiles>
<!-- Defines a localizable string table for error messages-->
<Strings>
<String Name="DisplayName">Microsoft® System CLR Types for SQL Server® 2014 (x86)</String>
<String Name="Culture">en</String>
<String Name="AdminRequired">Administrator permissions are required to install Microsoft® System CLR Types for SQL Server® 2012. Contact your administrator.</String>
<String Name="DotNetFxRequired">Installation of Microsoft® System CLR Types for SQL Server® 2012 requires Microsoft .NET Framework 3.5. Contact your application vendor.</String>
<String Name="WindowsInstallerImproperInstall">Due to an error with Windows Installer, the installation of Microsoft® System CLR Types for SQL Server® 2012 cannot proceed.</String>
<String Name="AnotherInstanceRunning">Another instance of setup is already running. The running instance must complete before this setup can proceed.</String>
<String Name="BetaProductFailure">A beta version of Microsoft® System CLR Types for SQL Server® 2012 was detected on the computer. Uninstall any previous beta versions of Microsoft® System CLR Types for SQL Server® 2012 before continuing.</String>
<String Name="GeneralFailure">A failure occurred attempting to install Microsoft® System CLR Types for SQL Server® 2012.</String>
<!--<String Name="SQLSysClrTypesMsi">http://go.microsoft.com/fwlink/?LinkID=221257</String> -->
<String Name="SQLSysClrTypesMsi">https://download.microsoft.com/download/1/3/0/13089488-91FC-4E22-AD68-5BE58BD5C014/ENU/x86/SQLSysClrTypes.msi</String>
</Strings>
</Package>
No comments:
Post a Comment