Link to home
Create AccountLog in
Avatar of Rubens82

asked on

MSP and File Removal

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">
                                    <CreateFolder />
                                    <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?
Avatar of Vadim Rapp
Vadim Rapp
Flag of United States of America image

Link to home
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
the solution I  posted was actully tested and worked as expected in Q. Accept 9212758.