Thanks for the reply.

I have tried to implement the bootstrapper based on your suggestion and I am
not getting any more errors. However  the setup.exe is not getting bigger so
I know the .msi file didn't make it into the setup.exe. I also ran the
setup.exe and the bootstrapper didn't run.

I can definitely see how the SQL project is a good model for installing an
MSI so probably I've got an error in the package or product files. Please
take a look - and thanks for your help.

Here's my new package and product xml files. I did move the
SetupNetConfig.msi file into the EN sub folder. I've include the new
elements in the project file at the bottom of the email.

Package.xml:

<?xml version="1.0" encoding="utf-8" ?>
<Package
   xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper";
   Name="DisplayName"
   Culture="Culture">

  <InstallChecks>
    <FileCheck Property="CONFIG"
      SpecialFolder="ProgramFilesFolder"
      FileName="NetConfig.exe" SearchPath=".\ERF\VSU Network Configurator\"
      SearchDepth="1"/>
  </InstallChecks>

  <PackageFiles CopyAllPackageFiles="false">
    <PackageFile Name="SetupNetConfig.msi" />
  </PackageFiles>

  <Commands Reboot="Defer">
    <Command PackageFile ="SetupNetConfig.msi" Arguments="">
      <InstallConditions>
        <BypassIf Property="CONFIG" Compare="ValueGreaterThanOrEqualTo"
Value="1.0.0.0"/>
      </InstallConditions>
      <ExitCodes>
        <ExitCode Value="0" Result="Success" />
        <ExitCode Value="1641" Result="SuccessReboot" />
        <ExitCode Value="3010" Result="SuccessReboot" />
        <ExitCode Value="4123" Result="SuccessReboot" />
        <DefaultExitCode Result="Fail" String="Anunexpected"
FormatMessageFromSystem="true" />
      </ExitCodes>
    </Command>

  </Commands>
  <Strings>
    <String Name="DisplayName">Network.Configurator</String>
    <String Name="Culture">EN</String>
    <String Name="Anunexpected">An unexpected exit code was returned from
the installer. The installation failed.</String>
    <String Name="GeneralFailure">A general error has occurred while
installing this package.</String>
  </Strings>
</Package>

Product.xml:

<?xml version="1.0" encoding="utf-8" ?>
<Product
   xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper";
   ProductCode="Network.Configurator">
</Product>


New lines in project file:

<ItemGroup>
    <BootstrapperFile Include="Network.Configurator">
      <ProductName>Network.Configurator</ProductName>
    </BootstrapperFile>
  </ItemGroup>
  <Target Name="AfterBuild" Outputs="$(Outdir)\Setup.exe">
    <GenerateBootstrapper ApplicationFile="$(TargetFileName)"
ApplicationName="Network Configurator"
BootstrapperItems="$(BootstrapperFile)" ComponentsLocation="Relative"
CopyComponents="True" OutputPath="$(OutputPath)" Path="C:\Program Files
(x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\" />
  </Target>


On Sat, Mar 26, 2011 at 8:16 AM, Tobias S <tobias.s1...@gmail.com> wrote:

> Hi,
>
> At first glance for me the two files product and pacack.xml seem to
> have the wrong content.
>
> As you describe your requirements have a look at SQL Server Compact
> Edition Prerequisite as it has a similar structure and the intention
> to install MSI packages.
>
> Pleaase therefore diff the whole folder (esp. the content of
> product.xml and package.xml)
> C:\Program Files (x86)\Microsoft
> SDKs\Windows\v7.0A\Bootstrapper\Packages\YourPackage
> against
> C:\Program Files (x86)\Microsoft
> SDKs\Windows\v7.0A\Bootstrapper\Packages\SQL Server Compact Edition
>
>
> Regards,
> Tobias
>
> 2011/3/25 Paul Brook <brook.p...@gmail.com>:
> > Hi all,
> >
> > I am attempting to build a bootstrapper for my wix installer in order
> > install another program our customer wants deployed along with ours. I've
> > been given the .msi file.
> >
> > Here's the error / warning I'm getting:
> > warning MSB3155: Item 'Network.Configurator' could not be located in
> > 'C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\'.
> >
> > Also - when I run the setup.exe that is created along with my main .msi
> file
> > it doesn't run the SetupNetConfig.msi file.
> >
> > Any help would be appreciated
> >
> > Paul
> >
> > What I have done so far is this.
> >
> > 1. created a folder called NetworkConfigurator for the installer in:
> >
> > C:\Program Files (x86)\Microsoft
> SDKs\Windows\v7.0A\Bootstrapper\Packages\
> >
> > 2. copied the .msi file into the new folder
> > 3. created the product.xml in the new folder: Here it is.
> >
> > <?xml version="1.0" encoding="utf-8" ?>
> > <Product
> >   xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper";
> >   ProductCode="Network.Configurator">
> >
> >   <!-- Defines list of files to be copied on build -->
> >   <PackageFiles CopyAllPackageFiles="true">
> >      <PackageFile Name="SetupNetConfig.msi"/>
> >   </PackageFiles>
> >
> >   <RelatedProducts>
> >      <DependsOnProduct Code="Microsoft.Windows.Installer.3.1" />
> >   </RelatedProducts>
> >
> >   <ExitCodes>
> >      <ExitCode Value="0" Result="Success"/>
> >      <ExitCode Value="1641" Result="SuccessReboot"/>
> >      <ExitCode Value="3010" Result="SuccessReboot"/>
> >      <DefaultExitCode Result="Fail" String="GeneralFailure"/>
> >   </ExitCodes>
> >
> > </Product>
> >
> >
> > 4. created the EN folder
> > 5. created the package.xml file in the EN folder
> >
> > <?xml version="1.0" encoding="utf-8" ?>
> > <Package
> >   xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper";
> >   Name="DisplayName"
> >   Culture="Culture"
> >
> >   <Strings>
> >      <String Name="DisplayName">Network.Configurator</String>
> >      <String Name="Culture">en</String>
> >      <String Name="NotAnAdmin">You must be an administrator to install
> this
> > package.</String>
> >      <String Name="GeneralFailure">A general error has occurred while
> > installing this package.</String>
> >   </Strings>
> > </Package>
> >
> > 6. Added the following to the wixproj file
> >
> >  <ItemGroup>
> >    <BootstrapperFile Include="Network.Configurator">
> >      <ProductName>Network.Configurator</ProductName>
> >    </BootstrapperFile>
> >    <BootstrapperFile Include="Microsoft.Windows.Installer.3.1">
> >      <ProductName>Windows Installer 3.1</ProductName>
> >    </BootstrapperFile>
> >  </ItemGroup>
> >  <Target Name="AfterBuild" Outputs="$(Outdir)\Setup.exe">
> >    <GenerateBootstrapper ApplicationFile="$(TargetFileName)"
> > ApplicationName="Network Configurator"
> > BootstrapperItems="@(BootstrapperFile)" ComponentsLocation="Relative"
> > CopyComponents="True" OutputPath="$(OutputPath)" Path="C:\Program Files
> > (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\" />
> >  </Target>
> >
> ------------------------------------------------------------------------------
> > Enable your software for Intel(R) Active Management Technology to meet
> the
> > growing manageability and security demands of your customers. Businesses
> > are taking advantage of Intel(R) vPro (TM) technology - will your
> software
> > be a part of the solution? Download the Intel(R) Manageability Checker
> > today! http://p.sf.net/sfu/intel-dev2devmar
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
>
>
> ------------------------------------------------------------------------------
> Enable your software for Intel(R) Active Management Technology to meet the
> growing manageability and security demands of your customers. Businesses
> are taking advantage of Intel(R) vPro (TM) technology - will your software
> be a part of the solution? Download the Intel(R) Manageability Checker
> today! http://p.sf.net/sfu/intel-dev2devmar
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and publish 
your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to