Here is a working bootstrapper (save the below content as an xml file):

<Project ToolsVersion="3.5"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003";>

  <PropertyGroup>

 
<WindowsSDKPath>$(registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\GenericBoot
strapper\...@path)</WindowsSDKPath>

  </PropertyGroup>

  <ItemGroup>

    <BootstrapperFile Include="Microsoft.Net.Framework.3.5">

      <ProductName>Microsoft .NET Framework 3.5</ProductName>

      <Install>true</Install>

    </BootstrapperFile>

    <BootstrapperFile Include="Microsoft.Windows.Installer.3.1">

      <ProductName>Windows Installer 3.1</ProductName>

      <Install>true</Install>

    </BootstrapperFile>

  </ItemGroup>

  <Target Name="Bootstrapper">

    <GenerateBootstrapper

      ApplicationFile="applicationname.exe"

      ApplicationName="Application Description"

      BootstrapperItems="@(BootstrapperFile)"

      ComponentsLocation="HomeSite"

      ApplicationRequiresElevation="true"

      Path="$(WindowsSDKPath)" />

  </Target>

</Project>

 

In order to generate the bootstrapper exe, using the above xml, here are the
steps:
1. Open command prompt in elevated mode (run as administrator).

2. Go to .Net framework v 3.5 folder. For example: cd
"c:\Windows\Microsoft.NET\Framework64\v3.5\"

3. Execute: msbuild.exe <fully qualified path to the bootstrapper xml file
name>

                For example: msbuild.exe C:\BootStrapper.xml

 

I posted the entire solution here so others can use this. The path you are
looking for is declared in the WindowsSDKPath property above.

 

Thanks,

Sai Kodi

 

-----Original Message-----
From: Umeshj [mailto:umesh_jogle...@hotmail.com] 
Sent: Thursday, September 16, 2010 11:23 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Microsoft bootstrapper

 

 

 

Hi,

 

 

 

I know that this group has discussed bootstrapper related questions a number
of times but I cannot find a solution to the following problem. 

 

I think it would help others who may want to use the bootstrapper with the
Wix project so I am posting here.

 

I am trying to use the Microsoft bootstrapper with the WIX project to bundle
the prerequisites Do Net 3.5 SP1 and Windows Installer 3.1. 

 

I am building on Windows 7 Professional, 64 bit machine with Visual Studio
2010. 

 

Bootstrapper path is C:\Program Files (x86)\Microsoft
SDKs\Windows\v7.0A\Bootstrapper

 

Some Microsoft support sites state that this could be an Anti virus problem
with AG Anti virus as it seems to quarantine setup.bin thinking that it is a
'trojan'. I do not have AG Antivirus on the build machine. setup.bin is
easily accessible.

 

Trying to pack Dot Net 3.5 (this has a different path for the bootstrapper
which is C:\Program Files (x86)\Microsoft SDKs\Windows\v6.0A\Bootstrapper)
makes no difference. Here also I can see the relevant setup.bin 

 

I later found that the build was looking for setup.bin in
Bootstrapper\Engine directory, so I copied Engine directory to see if this
would work. Build stopped complaining about the setup.bin but now it could
not find the packages.

 

Where is the setup information or manifest file that would tell me the
appropriate paths?

 

What  should be the data for 'path' under the registry key

HKEY_LOCAL_MACHINE\Wow6432node\Microsoft\GenericBootstrapper\3.5

 

Can anyone help?

 

Thanks.

 

Umesh

 

--

View this message in context:
<http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Microsoft-boo
tstrapper-tp5539797p5539797.html>
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Microsoft-boot
strapper-tp5539797p5539797.html

Sent from the wix-users mailing list archive at Nabble.com.

 

----------------------------------------------------------------------------
--

Start uncovering the many advantages of virtual appliances and start using
them to simplify application deployment and accelerate your shift to cloud
computing.

 <http://p.sf.net/sfu/novell-sfdev2dev> http://p.sf.net/sfu/novell-sfdev2dev

_______________________________________________

WiX-users mailing list

 <mailto:WiX-users@lists.sourceforge.net> WiX-users@lists.sourceforge.net

 <https://lists.sourceforge.net/lists/listinfo/wix-users>
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to