The application i am working on generates files in the appdata folder, When a package is removed i need to remove these files. I have tried the following but the msp fails to build
<Directory Id="CommonAppDataFolder" Name="CommonAppDataFolder">
<Directory Id="SomeCompany" Name="SomeCompany">
<Directory Id="MyAppFolder" Name="ME">
<Component Id="MyAppFolderComponent" Guid="cc509cb7-c1a1-46cf-8c62-7cbb0017783c">
<RemoveFile Id="PurgeFolder" Name="*.sdf" On="uninstall"/>
Then added the component to the features list. Is this possible? If not what would be the best way to do this?