tags:

views:

59

answers:

2

Hi

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

+2  A: 

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.

Craig Lebakken
A: 

Thanks Craig my new app doesn't have the same name (app2) following worked for me

[InstallDelete]
Type: filesandordirs; Name: {commonprograms}\app1 
Gauls
Note that this won't work if the user has changed the default installation path.
mghie
Do you mean it won't work if the user has not installed under programfiles?
Gauls