The directory you specify in CreateFolder/@Directory must be an existing
Directory Id but that's missing from the second code sample. I'd write it
something like this:

<Directory Id="CommonAppDataFolder">
    <Directory Id="INSTALLDIRDATA" Name="AppName" >

        <Component Id="InstallDirDataPermissions" Guid="..." KeyPath="yes">
            <CreateFolder>
                <util:PermissionEx User="Everyone" GenericAll="yes" />
            </CreateFolder>
        </Component>

        <Directory Id="ConfigFolder" Name ="Config">
            <Directory Id="specialConfigFolder" Name="Special">

                <Component Id="specialConfigFolder" Guid="..." KeyPath="yes">
                    <CreateFolder />
                </Component>

            </Directory>
        </Directory>

    </Directory>
</Directory>

I believe the permissions are inherited by default.

-----Original Message-----
From: Froggie [mailto:froggie1...@gmx.de] 
Sent: 21 April 2011 09:04
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] [SPAM] How to create a subfolder in a folder created
by"CreateFolder"?

Hello!

My directory structure is:
<Directory Id="CommonAppDataFolder">
    <Directory Id="INSTALLDIRDATA" Name="AppName" >
        <Directory Id="ConfigFolder" Name ="Config">
            <Directory Id="specialConfigFolder" Name="Special" />
        </Directory>
    </Directory>
</Directory>

Now I need Permissions for the "INSTALLDIRDATA" folder and all subfolders.
I read about "<util:PermissionEx User="Everyone" GenericAll="yes" />" and
"<CreateFolder>". "<CreateFolder>" can only be used in a component.
So my new structure is:
<Directory Id="CommonAppDataFolder">
    <Component Id="comp_AppFolder" ...>
        <CreateFolder Directory="AppName">
            <util:PermissionEx User="Everyone" GenericAll="yes" />
        </CreateFolder>
    </Component>
</Directory>

Now my 2 Questions:
1. How can I create my Subfolders ("Config" and "Config\Special")?
2. Will the permission be set to all subfolders and files of "AppName" (I
used "PermissionEx")?

Thanks in advance!


--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-create-a
-subfolder-in-a-folder-created-by-CreateFolder-tp6293535p6293535.html
Sent from the wix-users mailing list archive at Nabble.com.

-----------------------------------------------------------------------------
-
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
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.
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.


------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to