Using the WiX Toolset I want to create a folder and then create a file share 
for that folder so that every user has reading permission on it.


How can I do that?


I tried the following .wxs file:


<?xml version="1.0"?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi' 
xmlns:util='http://schemas.microsoft.com/wix/UtilExtension' >
   <Product Id="*" UpgradeCode="12345678-1234-1234-1234-111111111111"
            Name="Example Product Name" Version="0.0.1" Manufacturer="Example 
Company Name" Language="1033">
      <Package InstallerVersion="200" Compressed="yes" Comments="Windows 
Installer Package"/>
      <Media Id="1" Cabinet="product.cab" EmbedCab="yes"/>

     <Directory Id="TARGETDIR" Name="SourceDir">
         <Directory Id="ProgramFilesFolder">
            <Directory Id="INSTALLDIR" Name="Example">
               <Component Id="ApplicationFiles" 
Guid="12345678-1234-1234-1234-222222222222">
                  <File Id="ApplicationFile1" Source="jOdA_be.accdb"/>
      <util:User Id='WorkwiseUsers' Name='Workwise' Password='pa$$$$word'/>
      <util:FileShare Id='FileShareWorkwise' Name='WorkwiseFS' 
Description='FileShare for Workwise backend'>
   <util:FileSharePermission GenericAll="yes" Read="yes" User="WorkwiseUsers" />
      </util:FileShare>
               </Component>
            </Directory>
         </Directory>
      </Directory>

      <Feature Id="DefaultFeature" Level="1">
         <ComponentRef Id="ApplicationFiles"/>
      </Feature>


   </Product>
</Wix>



And that creates the folder and the file share, but only gives permissions to 
the Workwise user. The User parameter is mandatory when creating the 
FileSharePermission. How can I create the file share with reading permissions 
to everyone (not only to the Workwise user)?


Thanks in advance.


Federico
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to