My installer needs to encrypt the ConnectionStrings section of the
web.config file for our web application. This part I have working with no
problems, but as part of the process I need to provide the Network Service
with full control access to the following folder:

*C:\Documents and Settings\All Users\Application
Data\Microsoft\Crypto\RSA\MachineKeys*

I have not been able to figure out how to configure this with in my
installer.

I've tried adding the following to my Product.wxs, but it gives a build
error of: "The Directory element contains an unexpected child element
'util:PermissionEx'.". And xmlns:util has been added to the beginning of my
Product.wxs.

<Directory Id="TARGETDIR" Name="SourceDir">
     <Directory Id="WebSiteAppsFolder">
         <Directory Id="INSTALLLOCATION" Name="!(loc.ProductName)">
        </Directory>
        <Directory Id="AppDataFolder">
          <Directory Id="Microsoft">
            <Directory Id="Crypto">
              <Directory Id="RSA">
                <Directory Id="MachineKeys">
                  <util:PermissionEx User="NETWORK SERVICE" GenericAll="yes"
ChangePermission="yes"  />
                </Directory>
              </Directory>
            </Directory>
          </Directory>
      </Directory>
   </Directory>
</Directory>

How can this be done?
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to