You'll need to ship two separate MSI files if you want to do this
using Windows Installer.


On Thu, Jun 17, 2010 at 5:57 AM, Blair <os...@live.com> wrote:
> It is by design of Windows Installer.
>
> -----Original Message-----
> From: David Watson [mailto:dwat...@sdl.com]
> Sent: Wednesday, June 16, 2010 8:41 AM
> To: General discussion for Windows Installer XML toolset.
> Subject: [WiX-users] Setting Permissions on a 64 bit system folder from a 32
> bit msi.
>
> Hi,
>        I am trying to set permissions on a folder under system32 on
> 64bit windows in a 32 bit msi. I know this is not great from a security
> perspective but it's currently a requirement of the application. We wont
> use the everyone account in the real installer.
>
> Like so...
>
>  <Directory Id="WindowsFolder">
>        <Directory Id="System32" Name="System32">
>          <Directory Id="inetsrv" Name="inetsrv">
>            <Directory Id="config" Name="config">
>                <Component Id="Redirect.config.x64" Guid="*"
> Win64="yes">
>                  <Condition>VersionNT64</Condition>
>                  <RegistryValue Action="write" Root="HKLM"
> Key="$(var.RegistryPath)" Name="Redirect.configPermissions.x64"
> Value="1" Type="string" KeyPath="yes" />
>
>                  <CreateFolder>
>                    <util:PermissionEx User="Everyone" Read="yes"
> ReadAttributes="yes" ReadPermission="yes" Traverse="yes"
> GenericRead="yes" />
>                  </CreateFolder>
>                </Component>
>            </Directory>
>          </Directory>
>        </Directory>
>      </Directory>
>
>
> The registry key is not being redirected so is behaving as expected but
> the permission is being redirected to SysWow64.
> If I build the MSI as 64 bit, it works as expected.
>
> Is this a bug? Does anyone have any suggesions on how to set these
> permissions from a 32 bit msi. I really wouldn't like to have to ship
> two msis as I have managed to get around needing them so far and our
> application is a 32 bit one.
>
> Issue 1814863 in the bugs database
> (http://sourceforge.net/tracker/index.php?func=detail&aid=1814863&group_
> id=105970&atid=642714) implies that you can set permissions on registry
> keys like this so I would have expected that I could do it with a
> folder.
>
>
>
> Dave
> </pre>
> <BR style="font-size:4px;">
> <a href = "http://www.sdl.com";><img src="http://www.sdl.com/images/email
> logo_150dpi-01.png" alt="www.sdl.com" border="0"/></a>
> <BR>
> <font face="arial"  size="2" "><a href = "http://www.sdl.com";
> style="color:005740; font-weight: bold">www.sdl.com</a>
> <BR>
> <BR>
> <font face="arial"  size="1" color="#736F6E">
> <b>SDL PLC confidential, all rights reserved.</b>
> If you are not the intended recipient of this mail SDL requests and requires
> that you delete it without acting upon or copying any of its contents, and
> we further request that you advise us.<BR>
> SDL PLC is a public limited company registered in England and Wales.
> Registered number: 02675207.<BR>
> Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6
> 7DY, UK.
> </font>
>
>
>
> ----------------------------------------------------------------------------
> --
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to