Create a folder inside C: \ ProgramData using the WIX installer and expand several configuration files in this folder

I tried using the following code, but the ProgramData folder is not created during installation. My requirement is to install some files in the installation directory provided by the user and deploy several configuration files in the ProgramData folder (C: \ ProgramData \ COMPANYNAME \ APPNAME). The code is below. Can someone help me identify the problem? or another solution to achieve this.

 <Fragment>
    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="ProgramFilesFolder">
        <Directory Id="INSTALLFOLDER" Name="APPNAME" />
      </Directory>

      <Directory Id="CommonAppDataFolder">
        <Directory Id="CommonAppDataManufacturerFolder" Name="COMPANYNAME">
          <Directory Id="MyAppDataFolder" Name="APPNAME">
          </Directory>
        </Directory>
      </Directory>
    </Directory>
  </Fragment>
+4
source share
1 answer

, , MyAppDataFolder , . , .

Directory .

+3

All Articles