[Run] Filename: "database.exe"; Components: UpdateDatabase; BeforeInstall: RemoveOldDatabase [Code] procedure RemoveOldDatabase; begin { ... } end;