From fb7f25ddaacad8b5bdbe26bfb40c51f8f129dd97 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 1 Dec 2021 00:01:27 +0000 Subject: [PATCH] --- .../windows-pg-standalone/ayanovaserver.iss | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/dist/install/windows-pg-standalone/ayanovaserver.iss b/dist/install/windows-pg-standalone/ayanovaserver.iss index 1608ef11..0c25f9c7 100644 --- a/dist/install/windows-pg-standalone/ayanovaserver.iss +++ b/dist/install/windows-pg-standalone/ayanovaserver.iss @@ -69,3 +69,19 @@ Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\launcher\{#MyAppLauncherExe [Run] Filename: "{app}\launcher\{#MyAppLauncherExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent +[Code] +procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep); +begin + if CurUninstallStep = usPostUninstall then + begin + if MsgBox('Do you want to delete the AyaNova database?', mbConfirmation, MB_YESNO or MB_DEFBUTTON2) = IDYES then + //this is the msg that will display after uninstall,change is as you prefer + begin + if MsgBox('Are you sure you want to **PERMANENTLY** delete the database files?', mbConfirmation, MB_YESNO or MB_DEFBUTTON2) = IDYES then + //this is the msg that will display after uninstall,change is as you prefer + begin + DelTree(ExpandConstant('{commonappdata}\ayanova'), True, True, True); + end; + end; + end; +end;