You still need the custom action, because the File table's Attributes column
does not support clearing the Archive attribute.
I don't think this is a particularly common thing to do - for the reasons I
explained earlier - so do not think it justifies complicating the compiler,
the custom actions, and the documentation. Specifically, the OS will
automatically set the Archive bit when installing a new file anyway. If you
clear the flag after installing the file, the file will not be backed up on
the next incremental or differential backup, which will very much surprise
system administrators, and could cause your software not to work correctly
if the system has to be restored from the last full backup plus a
differential or a sequence of incrementals (because a critical file or
change to a critical file was not captured in the backup). On the whole I
don't think it's a good thing to do.
--
Mike Dimmick
_____
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John Lemire
Sent: 02 December 2006 17:35
To: Rob Mensching; Lorne Laliberte; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] File attributes - how to set "Archive" bit?
This brings up a question that occurs to me fairly regularly reading this
list and that is is it hard to be a contributor to the wix effort and/or
does it take a long time to see contributed changes become available?
This seems like the kind of candidate question where it'd be nice to
recommend Lorne (if willing) add support for Archive to the <File> tag
instead of doing the work in a custom action.
Also a good time for another shout out to Rob/Bob and all the rest for all
the great work and great support/help they do/give. We seem to have burdened
so few with so much on this project.
One more thing I've been curisous about is is there much interest among the
readers here in springing up an effort to add external UI to this project.
I've been contemplating what it would be like to be able to define the UI in
html/xaml.
_____
From: [EMAIL PROTECTED] on behalf of Rob Mensching
Sent: Tue 11/28/2006 3:05 PM
To: Lorne Laliberte; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] File attributes - how to set "Archive" bit?
It's a strange requirement and you'll have to use a CustomAction. You might
look at the secureobj.cpp code to see how best to do that since SecureObj
can change things that were just installed. Non-trivial amount of work to
do correctly.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lorne
Laliberte
Sent: Tuesday, November 28, 2006 14:58
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] File attributes - how to set "Archive" bit?
Thanks Mike. I'm not using the attribute directly, but I do need to be
able to clear or set it. This is for an internal project so I'm not sure
what I can say publically, but one of the requirements is control over
all of the destination file attributes.
...Lorne Laliberte
> -----Original Message-----
> From: Mike Dimmick [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 28, 2006 4:47 PM
> To: Lorne Laliberte; wix-users@lists.sourceforge.net
> Subject: RE: [WiX-users] File attributes - how to set "Archive" bit?
>
> As far as I know, the Archive bit is typically only used by backup
> applications to determine if a file has changed since the
> last time it was
> backed up. The OS automatically sets the archive bit when files are
> modified. Backup tools clear it when the file has been backed up.
>
> If you're trying to give any other semantics to the Archive
> bit, the OS will
> break them.
>
> I believe, but haven't checked, that the Archive bit will
> therefore be set
> for any files created or modified by Windows Installer during an
> installation.
>
> --
> Mike Dimmick
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Lorne
> Laliberte
> Sent: 28 November 2006 22:11
> To: wix-users@lists.sourceforge.net
> Subject: [WiX-users] File attributes - how to set "Archive" bit?
>
> Hello list!
>
> How do you set the "Arhive" attribute for a file?
>
> <File> has ReadOnly, Hidden, and System XML attributes...but
> Archive is
> rejected by candle.exe.
>
> The MSI file table doesn't offer any suggestions either.
>
> Do we need to use a custom action to do this?
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users