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>
source
share