Alan,

Instead of using your "ConfigDir" try using "CommonAppDataFolder" - this is a 
known Windows Installer property.

Regards,

Mark

-----Original Message-----
From: Alan Y. Balkany [mailto:alank...@yahoo.com] 
Sent: 11 June 2013 23:16
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Installing files in second directory chain?

Hello,

I'm trying to install program files and configuration files.

On Windows 7, files in the c:\Program Files tree can't be modified, so I'm 
installing the config files in c:\ProgramData.  WIX won't let me.

All the WIX Directory examples I've seen have a SINGLE directory chain under 
PFiles:

        <Directory Id="TARGETDIR" Name="SourceDir">
            <Directory Id="ProgramFilesFolder" Name="PFiles">
                <Directory Id="JetrionFolder" Name="Jetrion">
                    <Directory Id="INSTALLDIR" Name="Ink Usage Calculator"/>
                </Directory>
            </Directory> ...

What I want to do is have a second directory chain:

        <Directory Id="TARGETDIR" Name="SourceDir">
            <Directory Id="ProgramFilesFolder" Name="PFiles">
                <Directory Id="JetrionFolder" Name="Jetrion">
                    <Directory Id="INSTALLDIR" Name="Ink Usage Calculator"/>
                </Directory>
            </Directory>
            <Directory Id="ProgramMenuFolder">
                <Directory Id="JetrionMenuFolder" Name="Jetrion">
                    <Directory Id="ApplicationMenuFolder" Name="Ink Usage 
Calculator"/>
                </Directory>
            </Directory>
            <Directory Id="DesktopFolder"/>
            <Directory Id="ConfigDir" Name="ProgramData">
                <Directory Id="JetrionDir" Name="Jetrion">
                    <Directory Id="INKUSECONFIGDIR" Name="Ink Usage 
Calculator"/>
                </Directory>
            </Directory>
        </Directory>

where the ConfigDir is c:\ProgramData..., and I use the INKUSECONFIGDIR id to 
indicate where to place the files:

        <DirectoryRef Id="INKUSECONFIGDIR">
           <Component Id="InkConfigWhite" 
Guid="A6E79454-202A-4203-B2DF-A6D03FCE7012">
                <File Id="InkConfigWhite" Name="InkConfigWHITE.xml" DiskId="1" 
Source=".\src\InkConfigWHITE.xml" KeyPath="yes" />
           </Component> ...

But the files don't end up in C:\ProgramData\Jetrion\Ink Usage Calculator\...

What am I doing wrong?

Thanks!
Alan
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

The information in this message is intended solely for the addressee and should 
be considered confidential.  Publishing Technology does not accept legal 
responsibility for the contents of this message and any statements contained 
herein which do not relate to the official business of Publishing Technology 
are neither given nor endorsed by Publishing Technology and are those of the 
individual and not of Publishing Technology. This message has been scanned for 
viruses using the most current and reliable tools available and Publishing 
Technology excludes all liability related to any viruses that might exist in 
any attachment or which may have been acquired in transit.

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to