Reputation: 375
My program creates files in c:\Users\GameDev\AppData\Local\<my game folder>
. Is it possible to tell the InnoSetup to delete the entire folder during the uninstallion process, even though the installer didn't put it there ?
Upvotes: 20
Views: 19235
Reputation: 76733
To delete certain folder not related to your installer (since, if you don't explicitly specify that, all the files and directories are removed by the created uninstaller), use the [UninstallDelete]
section. There you can specify something like this for your case:
[UninstallDelete]
Type: filesandordirs; Name: "{localappdata}\<my game folder>"
Upvotes: 33