A <Directory> is not a component. Actions must be associated with adding or removing a component.
The <CreateFolder> element is the link between the directory and the component. A folder created with <CreateFolder>, rather than implicitly by installing files into it, will go away when the associated component is removed from the system, not just when the last file in it is removed. However, this probably doesn't mean much if the folder will only contain files you're installing or uninstalling. WiX can't just fake this with syntactic sugar as the component ID needs to be referenced by at least one feature, and the component should have a GUID as well. Use <CreateFolder>. -- Mike Dimmick -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 23 May 2007 22:49 To: [email protected] Subject: [WiX-users] [Fwd: RE: using permission element within a directory element] So, is there a way to change the permissions of folders created implicitly using the directory element? Thanks, John > It is a syntax issue. > > Take a look at the Wix.chm. That will show the things that Permission can > apply to. In your case, I think you want to apply the Permission to a > CreateFolder element. > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of John Johnson > Sent: Wednesday, May 23, 2007 10:41 AM > To: wix-users@ > Subject: Re: [WiX-users] using permission element within a directory > element > > > I think this is a syntax issue on my part. Should I be using > directoryref? Can anyone provide a code snippet? > > Thanks, > John > >> How do I add a permission element within a directory element? The >> following code generates a compile error. Basically, I want to change >> the permissions of the "product" directory that gets created on >> install > >> <Directory Id='CommonAppDataFolder' Name='CFiles'> >> <Directory Id='Company' Name='Comp' LongName='Company'> >> <Directory Id='Product' Name='Prod' LongName='Product'> >> <Permission User="Users" Extended="yes" >> GenericRead="yes GenericWrite="yes" /> >> </Directory> >> </Directory> >> </Directory> > > >> Thanks, >> John > > > > ------------------------------------------------------------------------- > 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 > [email protected] > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users

