var bmp: TBitmap; procedure InitializeWizard(); begin ExtractTemporaryFile(*WizModernImage-Is.bmp*); bmp := TBitmap.create; bmp.LoadFromFile(ExpandConstant(*{tmp}\WizModernImage-Is.bmp*)); enablewater(WizardForm.WelcomePage.Handle, 0, 0, bmp.Handle, 3, 50); end; procedure CurPageChanged(CurPageID: Integer); begin if CurPageID = wpWelcome then begin setwaterparent(WizardForm.WelcomePage.Handle); waterblob(70, 198, 10, 1000); end else if CurPageID = wpFinished then begin setwaterparent(WizardForm.FinishedPage.Handle); waterblob(70, 198, 10, 1000); end else flattenwater(); end; procedure DeinitializeSetup(); begin disablewater(); bmp.Free; end;