From db23fd58b107eb53f6cb4e143c94ab149d94bb07 Mon Sep 17 00:00:00 2001 From: Heiko Voigt Date: Tue, 15 Dec 2009 18:40:26 +0100 Subject: [PATCH] installer: add comments to explain AfterInstall and PreUninstall trick Signed-off-by: Heiko Voigt --- share/WinGit/install.iss | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/share/WinGit/install.iss b/share/WinGit/install.iss index 4db20aae..339ab9ad 100644 --- a/share/WinGit/install.iss +++ b/share/WinGit/install.iss @@ -509,6 +509,12 @@ begin end; end; +// AfterInstall +// +// Even though the name of this procedure suggests otherwise most of the +// code below is only executed once after the regular installation code +// is finished. This happens because of the if-guard right in the +// beginning of this procedure. procedure CurStepChanged(CurStep:TSetupStep); var AppDir,FileName,Cmd,Msg:String; @@ -864,6 +870,12 @@ begin end; end; +// PreUninstall +// +// Even though the name of this function suggests otherwise most of the +// code below is only executed right before the actual uninstallation. +// This happens because of the if-guard right in the beginning of this +// function. procedure CurUninstallStepChanged(CurUninstallStep:TUninstallStep); var AppDir,Command,Msg:String; -- 2.11.4.GIT