<?xml version="1.0" encoding="utf-8" ?>
<Product
xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper"
ProductCode="MyTrustedLocation">
<RelatedProducts>
<!-- Make sure the framework is installed first or will get all kinds of errors. -->
<DependsOnProduct Code="Microsoft.Net.Framework.2.0" />
<DependsOnProduct Code="AccessRuntime" />
</RelatedProducts>
<InstallChecks>
</InstallChecks>
</Product>
<?xml version="1.0" encoding="utf-8" ?>
<Package
xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper"
Name="DisplayName"
Culture="Culture">
<PackageFiles CopyAllPackageFiles="true">
<PackageFile Name="TrustedLocationSetup.exe" HomeSite="TrustedLoc" />
</PackageFiles>
<Commands>
<Command PackageFile="TrustedLocationSetup.exe"
EstimatedInstalledBytes="28000" >
<InstallConditions>
<BypassIf Property="IsDLLRegistered" Compare="VersionGreaterThanOrEqualTo" Value="1"/>
<BypassIf Property="VersionNT" Compare="VersionLessThan" Value="5.1"/>
<FailIf Property="AdminUser" Compare="ValueEqualTo" Value="false" String="AdminRequired"/>
<FailIf Property="Version9x" Compare="ValueExists" String="InvalidPlatformXP"/>
<FailIf Property="VersionNT" Compare="VersionLessThan" Value="5.1.2" String="InvalidPlatformXP"/>
</InstallConditions>
<ExitCodes>
<ExitCode Value="0" Result="Success"/>
<ExitCode Value="1641" Result="SuccessReboot"/>
<ExitCode Value="3010" Result="SuccessReboot"/>
<ExitCode Value="50198" Result="Fail" String="InsufficientHardware"/>
<ExitCode Value="50236" Result="Fail" String="InsufficientHardware"/>
<ExitCode Value="50222" Result="Fail" String="InvalidPlatformOSServicePacks"/>
<ExitCode Value="70003" Result="Fail" String="InvalidPlatformOSServicePacks"/>
<ExitCode Value="70004" Result="Fail" String="AnotherInstanceRunning"/>
<DefaultExitCode Result="Fail" FormatMessageFromSystem="true" String="GeneralFailure" />
</ExitCodes>
</Command>
</Commands>
<Strings>
<String Name="DisplayName">My Trusted Location</String>
<String Name="Culture">en</String>
<String Name="AdminRequired">You do not have the permissions required to install the Trusted Location tool. Please contact your administrator.</String>
<String Name="GeneralFailure">An error occurred attempting to install the Trusted Location Tool.</String>
<String Name="InvalidPlatform">Windows 2000 or later is required to install the Trusted Location Tool.</String>
<String Name="InvalidPlatform2K">Windows 2000 Service Pack 4 or later is required to install the Trusted Location Tool.</String>
<String Name="InvalidPlatformXP">Windows XP Service Pack 2 or later is required to install the Trusted Location Tool.</String>
<String Name="InsufficientHardward">The current system does not meet the minimum hardware requirements for the Trusted Location Tool. Contact your application vendor.</String>
<String Name="InvalidPlatformOSServicePacks">The current operating system does not meet Service Pack level requirements for the Trusted Location Tool. Install the most recent Service Pack from the Microsoft download center at http://www.microsoft.com/downloads before continuing setup.</String>
<String Name="AnotherInstanceRunning">Another instance of setup is already running. The running instance must complete before this setup can proceed.</String>
<!-- <String Name="InvalidPlatformArchitecture">This version of the Trusted Location Tool is not supported for the current processor architecture.</String> -->
<String Name="ErrorDiskFull">There is not enough space on the destination disk for the Trusted Location Tool.</String>
<String Name="TrustedLoc">http://myExampleWebsite.com/PrereqFiles/TrustedLocation/TrustedLocationSetup.exe</String>
</Strings>
</Package>
Change line 8 PackageFile name to TrustedLocation.exe (or the name of your exe or dll). Change the homesite to the name used on line 50. This can be anything you like but it must be the same on both lines.
Have a question about something in this article? You can receive help directly from the article author. Sign up for a free trial to get started.
Comments (0)