If you are using (or ever plan on using, or even are ever forced to use) any
win32 or .net assembly installations (including using the C/C++ runtime MSMs
or using the GAC) you are forced to place RemoveExistingProducts close to
InstallFinalize (so called "late") instead of one of the two "early"
placements in the sequence. That will cause you problems with your scheme.

There are ways to make component guids more stable, even when using heat.
One is to insert a xslt transform between heat and candle that changes all
components containing a File element to have a guid of "*". The "-ag"
command parameter of heat should do this without inserting any transforms
into your build and would be the recommended approach.

I would add "-ag" to your heat command-line.

-----Original Message-----
From: Jon Hope [mailto:jon.h...@pinewood.co.uk] 
Sent: Monday, September 14, 2009 2:31 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Automating Heat

Hi Brian,

Due to the problem with the -cg my setup currently has 1 file per component.

The solution that I am building contains 21 projects.  To automate this I
have initially created 21 fragment files which are referenced from one
'main' .wxs file.  I have then added a pre-build event to each of the
projects to delete the 'project' .wxs file after the get, and call Heat to
generate a new one.  This ensures that any files added or removed within
each project is included in the setup project.

As the component GUID's are re-generated when Heat is called I am having to
deploy Major releases only.  The only stable GUID I have at the moment is
the Product and Upgrade GUIDs.  I don't fancy having to manually replace the
component GUIDs for each project as there are between 200 and 700 components
in each, so I have fully ruled out patching for the time being.

Would you consider that the above is a viable solution for my WiX setup
project?  I'd hate to be running in the wrong direction :-)

Kind Regards,

Jon


-----Original Message-----
From: Brian Rogers [mailto:rogers.br...@gmail.com]
Sent: 11 September 2009 16:12
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Automating Heat

Hey Jon,

That is good to hear! I will mention to watch out with the time to do
costing for components with that many files. I imagine that a full install
of the MSI is taking over 15 minutes if you have more that 3000 files.
Additionaly, the only way you will be able to handle patching is to do some
large customizations in heat.exe. Without these I would recommend staying
with the Major Upgrade store <frown/> I know that isn't want you wanted to
hear.

I am working on some stuff to help this issue out. It is turning it quite
the "rats nest" <grin/> I am particularly interested in hearing your
feedback as you go through this process. Heat 4.0 (or v2.0 I guess) is on
the drawing boards.

Thanks,

Brian Rogers
"Intelligence removes complexity." - Me
http://blogs.msdn.com/icumove <-- NEW


On Fri, Sep 11, 2009 at 2:16 AM, Jon Hope <jon.h...@pinewood.co.uk> wrote:

> Thanks for your help Brian.
>
> I have raised this on as a bug on sourceforge.  I can get by without the
> -cg switch which means I now have an automated build process which
> incorporates Heat to generate the fragment, rather than our developers
> having to manually update the fragments (we have 1000's of files).
>
> Kind Regards,
>
> Jon
>
> -----Original Message-----
> From: Brian Rogers [mailto:rogers.br...@gmail.com]
>  Sent: 10 September 2009 18:23
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Automating Heat
>
> Hey Jon,
>
> If you could add a bug to sourceforge.net for this issue and how to repro
> it
> that would be great. The warning message was specific to the -cg switch.
> This warning is being removed in WiX 3.5.
>
> Thanks,
>
> Brian Rogers
> "Intelligence removes complexity." - Me
> http://blogs.msdn.com/icumove <-- NEW
>
>
> On Thu, Sep 10, 2009 at 9:17 AM, Jon Hope <jon.h...@pinewood.co.uk> wrote:
>
> > Hi Brian,
> >
> > Thanks for your reply.  It appears that the duplication is only
happening
> > when using the -cg switch.  I've tried all other switches from my
> original
> > email and all seem fine.  Strangely, I also only receive the warning
> > regarding having too many components per feature when using the -cg
> switch.
> >
> > Kind Regards,
> >
> > Jon
> >
> > -----Original Message-----
> > From: Brian Rogers [mailto:rogers.br...@gmail.com]
> > Sent: 10 September 2009 16:44
> > To: General discussion for Windows Installer XML toolset.
> > Subject: Re: [WiX-users] Automating Heat
> >
> > Hey Jon,
> >
> > This should definately not be happening. Does this happen if you do just
> a
> > -pog:Binaries or -pog:Sources switch. It could be a bug with that
> > particular
> > switch. Have you tried removing the -cg switch as well? Just giving you
> > some
> > scenarios to run so we can track down what is going on.
> >
> > Thanks,
> >
> > Brian Rogers
> > "Intelligence removes complexity." - Me
> > http://blogs.msdn.com/icumove <-- NEW
> >
> >
> > On Wed, Sep 9, 2009 at 7:37 AM, Jon Hope <jon.h...@pinewood.co.uk>
> wrote:
> >
> > > Afternoon all,
> > >
> > > I am currently implementing WiX into our daily builds and am using
> > Heat.exe
> > > to generate a WiX fragment file at Pre-build by harvesting a .csproj.
> >  Any
> > > releases will be Major releases, and the previous software is fully
> > removed,
> > > so this should not break any component rules.
> > >
> > > The problem I am having is that Heat.exe appears to be generating the
> > > ComponentGroups twice, once at the top of the .wxs, and once at the
> > bottom.
> > >  This then gives a build error:
> > >
> > > "Duplicate symbol 'WixComponentGroup:ASP.Content' found"
> > >
> > > If I manually remove the second component group, the build is
> successful
> > > and the .msi package is created.
> > >
> > > Can anyone please shed any light as to why this is happening?
> > >
> > > The command I am using to generate the fragment is as follows:
> > >
> > > "C:\Program Files\Windows Installer XML v3.5\bin\heat.exe" project
> > > "$(ProjectDir)\..\..\WEB\ASP.csproj" -ag -cg ProductASP -pog:Content
> > > -template:fragment -g1 -ke -out "$(ProjectDir)ASPFragment.wxs"
> > >
> > > This is creating 2 component groups with the same Id <ComponentGroup
> > > Id="ASP.Content">
> > >
> > > Kind Regards,
> > >
> > > Jon
> > >
> > >
> > >
> >
>
############################################################################
#########
> > >
> > > Disclaimer
> > >
> > > Nothing in this E-mail is to be interpreted as agreement on behalf
> > > of Pinewood Technologies Plc to enter into any legally binding
> > > agreement unless the recipient has received confirmation in writing
> > > from a director of the business that the sender is so authorised.
> > >
> > > If you have received this E-mail in error please forward it to
> > > email-retu...@pinewood.co.uk, destroy and delete it and do
> > > not rely upon it in any way.
> > >
> > > Publication and/or distribution of it is strictly prohibited and may
be
> > > unlawful.
> > >
> > >
> >
>
############################################################################
#########
> > >
> > >
> >
>
----------------------------------------------------------------------------
--
> > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> > 30-Day
> > > trial. Simplify your report design, integration and deployment - and
> > focus
> > > on
> > > what you do best, core application coding. Discover what's new with
> > > Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> > > _______________________________________________
> > > WiX-users mailing list
> > > WiX-users@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wix-users
> > >
> >
> >
>
----------------------------------------------------------------------------
--
> > Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day
> > trial. Simplify your report design, integration and deployment - and
> focus
> > on
> > what you do best, core application coding. Discover what's new with
> > Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> >
>
############################################################################
#########
> >
> > Disclaimer
> >
> > Nothing in this E-mail is to be interpreted as agreement on behalf
> > of Pinewood Technologies Plc to enter into any legally binding
> > agreement unless the recipient has received confirmation in writing
> > from a director of the business that the sender is so authorised.
> >
> > If you have received this E-mail in error please forward it to
> > email-retu...@pinewood.co.uk, destroy and delete it and do
> > not rely upon it in any way.
> >
> > Publication and/or distribution of it is strictly prohibited and may be
> > unlawful.
> >
> >
>
############################################################################
#########
> >
> >
> >
>
----------------------------------------------------------------------------
--
> > Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day
> > trial. Simplify your report design, integration and deployment - and
> focus
> > on
> > what you do best, core application coding. Discover what's new with
> > Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
>
>
----------------------------------------------------------------------------
--
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
############################################################################
#########
>
> Disclaimer
>
> Nothing in this E-mail is to be interpreted as agreement on behalf
> of Pinewood Technologies Plc to enter into any legally binding
> agreement unless the recipient has received confirmation in writing
> from a director of the business that the sender is so authorised.
>
> If you have received this E-mail in error please forward it to
> email-retu...@pinewood.co.uk, destroy and delete it and do
> not rely upon it in any way.
>
> Publication and/or distribution of it is strictly prohibited and may be
> unlawful.
>
>
############################################################################
#########
>
>
>
----------------------------------------------------------------------------
--
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
----------------------------------------------------------------------------
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus
on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

############################################################################
#########

Disclaimer 

Nothing in this E-mail is to be interpreted as agreement on behalf 
of Pinewood Technologies Plc to enter into any legally binding 
agreement unless the recipient has received confirmation in writing 
from a director of the business that the sender is so authorised. 

If you have received this E-mail in error please forward it to 
email-retu...@pinewood.co.uk, destroy and delete it and do 
not rely upon it in any way. 

Publication and/or distribution of it is strictly prohibited and may be 
unlawful.
############################################################################
#########
----------------------------------------------------------------------------
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus
on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to