Hi,
        I use an msbuild step that calls out to MT.exe that updates the
built bootstrapper setup.exe's embedded manifest file.

                <Exec WorkingDirectory="$(BootstrapLocation)"
        
Command='"$(SourceRoot)\tools\microsoft\mt.exe" -manifest
"$(SourceRoot)\install\MSBootstrapper\setup.exe.#1.manifest"
-outputresource:"setup.exe"'
                          IgnoreExitCode='false'
                          Condition="$(BuildBootstrapper) == 'true'"
          />

I extracted the Application manifest first (you can use a resource
editor for this) and then modified it then checked it into source
control to be used by the above step.

Info on Mt.exe
http://msdn.microsoft.com/en-us/library/aa375649(VS.85).aspx

This may work for the visual styles, I don't use it for that though.

Dave W.

-----Original Message-----
From: Ondrej Zarevucky [mailto:ondrej.zarevu...@fine.cz] 
Sent: 23 July 2009 12:33
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Adding Visual Styles manifest to MSBuild
Bootstrapper

Hi,
I'm using MSBuild to create Bootstraper for my MSI installation which
checks and installs .Net Framework if necessary. The whole installation
is then packed in 7z SFX package.

I've updated the 7z.SFX module to inslude Visual Style manifest, but I'm
not able to add manifest to the Bootstrapper created by MSBuild.

The only solution I've found is to manulay edit the resulting Setup.exe,
after it is created :( Is there any better and automatizable way to add
the manifest to the Boostrapper?

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

  <ItemGroup>
    <BootstrapperFile Include="Microsoft.Net.Framework.2.0">
      <ProductName>.NET Framework 2.0 (x86)</ProductName>
    </BootstrapperFile>
    <BootstrapperFile Include="Microsoft.Windows.Installer.3.1">
      <ProductName>Windows Installer 3.1</ProductName>
    </BootstrapperFile>
  </ItemGroup>

  <Target Name="Bootstrapper">
    <GenerateBootstrapper
    ApplicationFile="install.msi"
    ApplicationName="Application v1.0"
    BootstrapperItems="@(BootstrapperFile)"
    Culture="en"
    CopyComponents="True"
    Validate="True"
    OutputPath=".\Out" />
  </Target>
</Project>

Thank you
Ondrej Zarevucky

------------------------------------------------------------------------
------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.  
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.


------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to