2

I want to have our WiX installer that is currently building on a build server via hudson calling msbuild scripts to incorporate the full .NET 3.5 sp1 installer executable. It turns out that our users can always get access to a CD, but not always to the internet, so we can't use the over-the-net installer. We can also require that all of our users are running XP, which is good, because we're also requiring them to run .NET 3.5.

Our build server does not have a copy of Visual Studio installed, but just builds the project via MSBuild.

Following the WiX helpfile with version 3.0.5120, I've added this line to my wixproj:

<ItemGroup>
  <BootstrapperFile Include="dotnetfx.exe">
    <ProductName>.NET Framework 3.5 sp1</ProductName>
  </BootstrapperFile>
</ItemGroup>

as well as this line:

<Target Name="AfterBuild">
   <GenerateBootstrapper ApplicationFile="$(TargetPath)"
                      ApplicationName="MyApp"
                      BootstrapperItems="@(BootstrapperFile)"
                      ComponentsLocation="Relative"
                      CopyComponents="True"
                      OutputPath="$(OutputPath)"
                      Path="C:\downloads\"/>
</Target>

Yes, I realize that that 'path' is not what's in the help file, but that's because I don't have visual studio on the build server. What are the magic words to make this work?

2
  • Removed the 'hudson' tag, as it is only tangentially related to the question. Aug 14, 2009 at 15:11
  • 1
    Actually, it was related to the question-- performing a remote build with hudson and msbuild with your eyes closed on a server that you have limited access to makes this painful. That 'path' variable had to be set properly.
    – mmr
    Aug 17, 2009 at 13:32

3 Answers 3

2

To get the bootstrapper to install .net from a cd you need to change the components location to 'Absolute'.

You'll also need to install the platform sdk on the build machine to get the correct bootsrapper files. You would then point your 'Path' to the bootstrapper location in the platform sdk install, on my computer it is C:\Program Files (x86)\Microsoft SDKs\Windows\v6.0A\Bootstrapper

0

There were a few things wrong with what I was doing.

First, because I didn't have Visual Studio installed on that machine, I needed to copy over the c:\program files\common components\microsoft SDKs\ etc directory to the build machine. That's the hudson tag; no visual studio, it won't work without that directory.

Second, the tutorial includes a section on windows installer 3.1 as well as the .net thing. That's critical.

Third, to get the .NET 3.5 sp1 installer to work, you have to follow the instructions in the vs2008 sp1 installation readme,

Fourth, and this is crucial, make sure to not have a space in the beginning of the xml tags described in the visual studio 2008 sp1.

0

how to build using Hudson, without VS for WP8, is it possible to use MSbuild command line tools with Wix for a 64 bit system.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.