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;