I have a VBScript file that uses MSXML to load and save a fragment file. It 
harvests a list of files in a folder and then uses XPATH to see whether each 
file is already represented in the fragment. Unrepresented files are added. 
When this phase is done it then traverses all the represented files checking 
each is present in the file list and if not removing their nodes from the 
fragment.

This elaborate strategy allows me to preserve component GUIDs for files that 
don't change.

I run this script as a pre-build event. In my case files are generally added, 
rarely deleted and never moved, however I'm sure you could elaborate my code.

This code will shortly make its way into the wix book 
http://wix.mindcapers.com/wiki and if you use it you are expected to contribute 
your enhancements back to the wiki.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:wix-users-
> [EMAIL PROTECTED] On Behalf Of wix-users-
> [EMAIL PROTECTED]
> Sent: Saturday, 15 September 2007 3:39 AM
> To: wix-users@lists.sourceforge.net
> Subject: WiX-users Digest, Vol 16, Issue 80
>
> Send WiX-users mailing list submissions to
>         wix-users@lists.sourceforge.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://lists.sourceforge.net/lists/listinfo/wix-users
> or, via email, send a message with subject or body 'help' to
>         [EMAIL PROTECTED]
>
> You can reach the person managing the list at
>         [EMAIL PROTECTED]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of WiX-users digest..."
>
>
> Today's Topics:
>
>    1. IIS, Vista and WiX (John Lalande)
>    2. Re: Wix/VS+Votive - adding all files in a directory to    a
>       project? (Justin Rockwood)
>    3. Re: Registering an OCX (Wilson, Phil)
>    4. Re: IIS, Vista and WiX (Rob Mensching)
>    5. Re: IIS, Vista and WiX (John Lalande)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 14 Sep 2007 11:42:39 -0500
> From: "John Lalande" <[EMAIL PROTECTED]>
> Subject: [WiX-users] IIS, Vista and WiX
> To: "wix-users@lists.sourceforge.net"
>         <wix-users@lists.sourceforge.net>
> Message-ID:
>         <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I have completed the an installer that installs a ASP.Net 2.0 web
> application.  It works fine in Windows 2003 Server but fails on Vista
> with
> the error message:
>
> Cannot connect to the Internet Information Server.
> (-2147221164       )
>
> In the log file, the detail for the failure is:
>
> ConfigureIIs:  failed to get IID_IMSAdminBase Object
> Error 26001. Cannot connect to Internet Information Server.
> (-2147221164         )
>
> Is there anything special needed for Vista installs of a web site in
> IIS
> using WiX?
>
> John
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 2
> Date: Fri, 14 Sep 2007 09:55:24 -0700
> From: "Justin Rockwood" <[EMAIL PROTECTED]>
> Subject: Re: [WiX-users] Wix/VS+Votive - adding all files in a
>         directory to    a       project?
> To: "'Sergei Shelukhin'" <[EMAIL PROTECTED]>,
>         <wix-users@lists.sourceforge.net>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="us-ascii"
>
> You're right that what you want is dangerous because it goes against
> component rules. However, I can also see the value in having something
> like
> this inherent in Votive. If you want to log a feature request, I think
> it
> would be something good to add to Votive. I'd probably have some sort
> of
> scary dialog popping up the first time warning you that you're treading
> on
> dangerous ground, but the feature could be useful.
>
>
>
> Here's the link to add a feature request:
> http://sourceforge.net/tracker/?group_id=105970
> <http://sourceforge.net/tracker/?group_id=105970&atid=642717>
> &atid=642717
>
>
>
> Thanks,
>
> Justin
>
>
>
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Sergei
> Shelukhin
> Sent: Friday, September 14, 2007 12:15 AM
> To: wix-users@lists.sourceforge.net
> Subject: [WiX-users] Wix/VS+Votive - adding all files in a directory to
> a
> project?
>
>
>
> Hi.
> I wonder if there's something similar to "Project output" concept for
> Wix
> setup projects created using Votive.
>
> We are currently using Web setup project followed by  Custom Action
> that is
> used to do most of the work to deploy a big ASP.NET application. We are
> considering moving the deployment to either WiX or a completely custom
> tool
> because of the utter lack of functionality in Web Setup projects.
>
> The problem is that the project has hundreds of files in a complicated
> subdirectory tree in several separate projects and files are constantly
> added, removed and moved around from version to version.  Web setup has
> the
> advantage of packaging all the required files  easily, I wonder if this
> is
> available for WiX.
>
> Application is basically a monolithic entity and the update includes
> the
> removal of most files (apart from maybe 3-5 files and 1-2
> subdirectories)
> and  redeployment of the new ones so we don't care about component
> versioning problems.
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 3
> Date: Fri, 14 Sep 2007 10:01:01 -0700
> From: "Wilson, Phil" <[EMAIL PROTECTED]>
> Subject: Re: [WiX-users] Registering an OCX
> To: <wix-users@lists.sourceforge.net>
> Message-ID:
>
> <[EMAIL PROTECTED]>
> Content-Type: text/plain;       charset="us-ascii"
>
> .... and adding to John's comment, if it's a Vista machine where it
> fails then the issue is likely to be UAC. Even an administrator doesn't
> always run with admin privileges, and that applies to impersonated
> custom actions too.
> http://msdn2.microsoft.com/en-us/library/aa372468.aspx
> http://blogs.msdn.com/astebner/archive/2006/09/30/778865.aspx
> http://www.macrovision.com/webdocuments/PDF/is_vista.pdf
>
> Phil Wilson
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of John Hall
> Sent: Friday, September 14, 2007 9:22 AM
> To: Brad Stanley
> Cc: wix-users@lists.sourceforge.net
> Subject: Re: [WiX-users] Registering an OCX
>
> > Our software package needs to register an Active X Control.
> > Currently I do it with the following:
> >
> > ---
> >     <Property Id='REGSVR'>regsvr32.exe</Property>
> >
> >      <CustomAction Id="RegisterOCX" Return="asyncNoWait"
> > Property="REGSVR" ExeCommand='/s "[INSTALLDIR]MyControl.ocx"' />
>
> > Should I be following another method to register the OCX so
> > it consistently registers?
>
> Brad,
>
> A much better approach is to extract the registry entries that your OCX
> creates and create the registry entries directly from your installer.
> WiX 2 includes a utility 'tallow' [1] and WiX 3 a utility called 'heat'
> [2] that will do most of the work for you.
>
> Regards,
> John
>
> [1]
> http://blogs.conchango.com/stuartpreston/archive/2005/12/10/2488.aspx
> [2]
> http://installing.blogspot.com/2006/04/heatexe-making-setup-easier.html
>
> -----------------------------------------------------------------------
> -
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>
>
>
> ------------------------------
>
> Message: 4
> Date: Fri, 14 Sep 2007 10:19:02 -0700
> From: Rob Mensching <[EMAIL PROTECTED]>
> Subject: Re: [WiX-users] IIS, Vista and WiX
> To: John Lalande <[EMAIL PROTECTED]>,
>         "wix-users@lists.sourceforge.net"       <wix-
> [EMAIL PROTECTED]>
> Message-ID:
>         <[EMAIL PROTECTED]
> MSG.exchange.corp.microsoft.com>
>
> Content-Type: text/plain; charset="us-ascii"
>
> The custom actions require the "legacy administration objects" today.
> Maybe one day we'll update the IIS custom actions to not require that
> on Vista.  It's a pretty large work item though.
>
> From: [EMAIL PROTECTED] [mailto:wix-users-
> [EMAIL PROTECTED] On Behalf Of John Lalande
> Sent: Friday, September 14, 2007 09:43
> To: wix-users@lists.sourceforge.net
> Subject: [WiX-users] IIS, Vista and WiX
>
> I have completed the an installer that installs a ASP.Net 2.0 web
> application.  It works fine in Windows 2003 Server but fails on Vista
> with the error message:
>
> Cannot connect to the Internet Information Server.
> (-2147221164       )
>
> In the log file, the detail for the failure is:
>
> ConfigureIIs:  failed to get IID_IMSAdminBase Object
> Error 26001. Cannot connect to Internet Information Server.  (-
> 2147221164         )
>
> Is there anything special needed for Vista installs of a web site in
> IIS using WiX?
>
> John
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 5
> Date: Fri, 14 Sep 2007 12:38:38 -0500
> From: "John Lalande" <[EMAIL PROTECTED]>
> Subject: Re: [WiX-users] IIS, Vista and WiX
> To: "Rob Mensching" <[EMAIL PROTECTED]>
> Cc: "wix-users@lists.sourceforge.net"
>         <wix-users@lists.sourceforge.net>
> Message-ID:
>         <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> So does this mean that these custom actions don't work on Vista?
>
> Is there anything I can do to get them to work as a temporary measure?
>
> What are "legacy administration objects"?
>
> John
>
> On 9/14/07, Rob Mensching <[EMAIL PROTECTED]> wrote:
> >
> >  The custom actions require the "legacy administration objects"
> today.
> > Maybe one day we'll update the IIS custom actions to not require that
> on
> > Vista.  It's a pretty large work item though.
> >
> >
> >
> > *From:* [EMAIL PROTECTED] [mailto:
> > [EMAIL PROTECTED] *On Behalf Of *John Lalande
> > *Sent:* Friday, September 14, 2007 09:43
> > *To:* wix-users@lists.sourceforge.net
> > *Subject:* [WiX-users] IIS, Vista and WiX
> >
> >
> >
> > I have completed the an installer that installs a ASP.Net 2.0 web
> > application.  It works fine in Windows 2003 Server but fails on Vista
> with
> > the error message:
> >
> > Cannot connect to the Internet Information Server.
> > (-2147221164       )
> >
> > In the log file, the detail for the failure is:
> >
> > ConfigureIIs:  failed to get IID_IMSAdminBase Object
> > Error 26001. Cannot connect to Internet Information Server.
> > (-2147221164         )
> >
> > Is there anything special needed for Vista installs of a web site in
> IIS
> > using WiX?
> >
> > John
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> -----------------------------------------------------------------------
> --
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>
> ------------------------------
>
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
> End of WiX-users Digest, Vol 16, Issue 80
> *****************************************

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to