Using the permission element from within the createfolder element works correctly. However, in the code snippet that I provided, I need to change permissions on a directory that will be implicitly created by wix during the install (by using the directory element).
So is this a current limitation in Wix? If so, then the only solution seems to be to write a small exe that changes the permission acl and then run it as a custom action. Thanks, John > I think you need to make the Permission element a child of a CreateFolder > element in this instance. I'm not sure if the ACL is edited if the folder > already exists. > > In WiX 2.0, you can try specifying Permission/@Extended="yes", and in WiX > 3.0 use PermissionEx in the util schema, to get more control over the ACL > than the Windows Installer built-in LockPermissions table is capable of. > > -- > Mike Dimmick > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of LEMIRE, JOHN > Sent: 23 May 2007 18:44 > To: wix-users@lists.sourceforge.net > Subject: Re: [WiX-users] using permission element within a directory > element > > Please make sure the solution gets posted here as this has been asked > multiple times over the last month or so and I have yet to see a > definitive can or can not be done answer from any of the helpful gurus. > Thanks very much :-) > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of John > Johnson > Sent: Wednesday, May 23, 2007 10:41 AM > To: wix-users@lists.sourceforge.net > 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 > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ > > ------------------------------------------------------------------------- > 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 > > > ------------------------------------------------------------------------- > 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 > ------------------------------------------------------------------------- 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