Reputation: 30514
I am creating an installer using Inno Setup and I have a file whose name changes every release (because the file name has the version number embedded in it):
#define MY_FILE_NAME "file_1.0.0.jar"
[Files]
Source: {#MY_FILE_NAME}; DestDir: {app}; Flags: ignoreversion
How would I make my installer remove file_1.0.0.jar
from the install location when installing file_2.0.0.jar
?
Upvotes: 1
Views: 83
Reputation: 30514
I added an [InstallDelete]
section which seems to do the trick:
[InstallDelete]
Type: files; Name: "{app}\file_*.jar"
Upvotes: 1