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-8 c62-7cbb00 17783c">
<CreateFolder />
<RemoveFile Id="PurgeFolder" Name="*.sdf" On="uninstall"/>
</Component>
</Directory>
</Directory>
</Directory>
Then added the component to the features list. Is this possible? If not what would be the best way to do this?
<Directory Id="CommonAppDataFolder" Name="CommonAppDataFolder"
<Directory Id="SomeCompany" Name="SomeCompany">
<Directory Id="MyAppFolder" Name="ME">
<Component Id="MyAppFolderComponent" Guid="cc509cb7-c1a1-46cf-8
<CreateFolder />
<RemoveFile Id="PurgeFolder" Name="*.sdf" On="uninstall"/>
</Component>
</Directory>
</Directory>
</Directory>
Then added the component to the features list. Is this possible? If not what would be the best way to do this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
the solution I posted was actully tested and worked as expected in Q. Accept 9212758.
Not enough information to confirm an answer.