Using innosetup

Yes, ignoreversion Flag is already set.

I may have expressed myself in an unclear way. Actually I do not want a new folder; and that’s why I did not change the AppID.
Because even using a new AppID (as I did) and so creating a new folder, would leave me in the same situation, i.e. to tell users to uninstall the older version. Instead I’d like to uninstall-delete the old folder by code, if possible.

Yes, deleting by code the old folder is exactly what I’m after, but in the PrepareToInstall section I cant find any ‘delete the old folder’ code.

That’s why, as I said, in the .iss file, between the {Setup] and the [Files] sections I tried inserting
[UninstallDelete]
Type: filesandordirs; Name: “{app}”
but after running the installer the folder name in Program Files remains Psalms and Ragas 2.2.9, even changing the AppVersion to 2.3.1 or whatever.
Could it be that to have [UninstallDelete] work some other comand is needed?
[/quote]
Such comand, if it exists, is the missing part of the puzzle.