Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to delete folder during uninstallation process?

Tags:

inno-setup

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 ?

like image 818
superwpf Avatar asked Nov 24 '12 17:11

superwpf


People also ask

Can you just delete files instead of uninstalling?

Uninstall is removing a program and its associated files from a computer hard drive. The uninstall feature differs from the delete function in that it safely and efficiently removes all associated files, whereas delete only removes part of a program or selected file.

How do I delete a folder quickly?

Right-click the Shell (folder) key, select New, and click on Key. Name the key Quick Delete and press Enter. Right-click the newly created key, select New and click on Key.

How do I remove install directory?

To delete your installation folder manually, use an FTP client and right click on the folder named "installation" and press Delete. As this removes the entire folder and its contents, it may take a couple of minutes to complete.


1 Answers

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>"
like image 66
TLama Avatar answered Oct 23 '22 09:10

TLama