I would like to delete the isolated storage folders created by the .NET application when using My.Settings, etc. Settings files are stored in a place such as
C:\Users\%Username%\AppData\Roaming\App\App.exe_Url_r0q1rvlnrqsgjkcosowa0vckbjarici4
In accordance with this question, https://stackoverflow.com/a/4646262/2326322 can be deleted using:
<Directory Id="AppDataFolder" Name="AppDataFolder">
<Directory Id="MyAppFolder" Name="My">
<Component Id="MyAppFolder" Guid="YOURGUID-7A34-4085-A8B0-8B7051905B24">
<CreateFolder />
<RemoveFile Id="PurgeAppFolder" Name="*.*" On="uninstall" />
</Component>
</Directory>
</Directory>
It does not support subfolders, etc. Is the only option for a custom .NET action, or is there a simpler approach to remove these created .NET installation folders?
source
share