Use innosetup script to delete previously installed application folder

inno-setup

Solution

If you just want to delete the "uninstall app1" icon from the Start menu, the following should work:

[InstallDelete]
Type: files; Name: "{group}\uninstall app1"

If you want to remove the entire program group from the start menu, use the following:

[InstallDelete]
Type: filesandordirs; Name: "{group}"

This assumes that your Inno Setup script Start menu folder name is the same as the previous "app1" application.

Problem

I am deleting the previous application using the script which inturn calls my .net app. All i want is to actually delete the folder(entire app1) from start menu (start->Programs->app1->uninstall app1)? Thanks Gauls

Original source