superwpf
superwpf

Reputation: 375

How to delete folder during uninstallation process?

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

Answers (1)

TLama
TLama

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

Related Questions