Unfortunately, once the component is installed, you can't change its
directory - which it has, even if it has no files - during a modify
operation. And because there are other operations (CreateFolder,
Permission) you'd need to uninstall the component, modify its target
directory, then install it again. You could do that from a bootstrapper
.exe but no way I can think of to do it purely within the .msi's UI
sequence.
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lindsay
Harris
Sent: Friday, 27 April, 2007 10:31
To: Bob Arnson; Rajive Kumar
Cc: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] changing a directory during modify
Thanks everyone for the responses.
I am trying to ACL this directory, so there ARE components installed:
<Directory Id="ARCHIVEFOLDERDIR">
<Component Id="aclArchiveDir" DiskId="1"
Guid="0E0F8E2A-3646-4df0-AD30-C1F03FBA8E0F">
<CreateFolder Directory="ARCHIVEFOLDERDIR">
<Permission User="[ACL]" TakeOwnership="yes"
GenericAll="yes" WriteExtendedAttributes="yes"/>
<Permission User="System" TakeOwnership="yes"
GenericAll="yes" WriteExtendedAttributes="yes"/>
<Permission User="Administrators"
TakeOwnership="yes" GenericAll="yes" WriteExtendedAttributes="yes"/>
</CreateFolder>
</Component>
</Directory>
From: Bob Arnson [mailto:[EMAIL PROTECTED]
Sent: Friday, April 27, 2007 12:05 AM
To: Rajive Kumar
Cc: Lindsay Harris; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] changing a directory during modify
Rajive Kumar wrote:
I am not sure I understand the distinction. It is a property for the
location of the data directory.
The difference is that if it's a directory to which any components are
installed, you won't be able to change it during maintenance mode. If
it's just a property that's written to the registry but not in the
Directory table, then it should work.
--
sig://boB
http://bobs.org
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users