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

-------------------------------------------------------------------------
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

Reply via email to