There are three permission-style elements in WiX. Permission which works
with all supported versions of Windows Installer (and has several known
limitations), PermissionEx which works with Installer 5.0, and the
WixUtilsExtension PermissionEx (doesn't use SDDL, but it is more flexible
than Installer's built-in action).

-----Original Message-----
From: Farooq Mahmud (Hotmail) [mailto:farooq...@hotmail.com] 
Sent: Tuesday, October 06, 2009 1:50 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Permission element question

I run an msi based on the code below. [ProgramFilesFolder] gives my built-in
Users group read permission but my application folder does not inherit this
permission. I use Windows Explorer to create a folder under
[ProgramFilesFolder] and the folder does inherit the Users permission. 

 

Is there a way through WIX to get the permission inherited? If I could move
to Installer 5.0 I would use PermissionEx and set the SDDL but I need to use
4.5. Thanks.

 

=======================================================WIX
source======================================================================
=====

 

<?xml version="1.0" encoding="UTF-8"?>

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>

      <Product Id="29c9a1cb-f215-4e0e-996f-e088100fa30d" Name="Security"
Language="1033" Version="1.0.0.0" Manufacturer="Security"
UpgradeCode="18e7265d-6f41-45b6-aa5a-57f2bd895eed">

            <Package InstallerVersion="200" Compressed="yes" />

 

            <Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />

 

            <Directory Id="TARGETDIR" Name="SourceDir">

                  <Directory Id="ProgramFilesFolder">

                        <Directory Id="INSTALLLOCATION" Name="Security">

 

          <Component Id="SetFolderPermissions"
Guid="{40375318-CF6B-49F3-BAC1-8A6C51AC594E}">

            <CreateFolder Directory="INSTALLLOCATION">

              <Permission Domain="MyDomain" User="MyAccount"
GenericAll="yes" />

            </CreateFolder>

          </Component>

                        </Directory>

                  </Directory>

            </Directory>

 

            <Feature Id="ProductFeature" Title="Security" Level="1">

      <ComponentRef Id="SetFolderPermissions"/>

            </Feature>

      </Product>

</Wix>

 

 

 

----------------------------------------------------------------------------
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to