I try to use same installer for both (fresh installation and update).
- so if user try to install my application for first time it will run the full installation included MySQL installer as prerequisites, and the part of MySQL installation within
[Code]
will execute normally. - but, if user already installed my application, and the installer is newer version (update), the part of MySQL installation within
[Code]
shouldn't be execute.
So, how to implement exception function for this part of code (MySQL installation) if the installation is just updating?
[Code]
procedure CurStepChanged(CurStep: TSetupStep);
{ ... }
begin
if CurStep = ssPostInstall then
begin
{ fresh installation code }
end;
end;