[Setup] AppName=INSTEAD AppVerName=INSTEAD 1.0.1 DefaultDirName={pf}\Pinebrush games\INSTEAD DefaultGroupName=Pinebrush games UninstallDisplayIcon={app}\sdl-instead.exe OutputDir=. OutputBaseFilename=instead-1.0.1 AllowNoIcons=true [Languages] Name: en; MessagesFile: compiler:Default.isl Name: ru; MessagesFile: compiler:Languages\Russian.isl [Files] Source: sdl-instead.exe; DestDir: {app} Source: Microsoft.VC80.CRT\*; DestDir: {app}\Microsoft.VC80.CRT Source: games\tutorial2\*; DestDir: {app}\games\tutorial2 Source: games\tutorial2-en\*; DestDir: {app}\games\tutorial2-en Source: games\tutorial2-es\*; DestDir: {app}\games\tutorial2-es Source: icon\*; DestDir: {app}\icon Source: doc\*; DestDir: {app}\doc Source: stead\*; DestDir: {app}\stead Source: languages\*; DestDir: {app}\languages Source: themes\default\*; DestDir: {app}\themes\default Source: themes\book\*; DestDir: {app}\themes\book Source: themes\original\*; DestDir: {app}\themes\original Source: *.dll; DestDir: {app} [CustomMessages] CreateDesktopIcon=Create a &desktop icon LaunchGame=Launch &game UninstallMsg=Uninstall INSTEAD RmSettingsMsg=Would you like to remove settings and saved games? ru.CreateDesktopIcon=Создать &ярлык на рабочем столе ru.LaunchGame=Запустить &игру ru.UninstallMsg=Удалить INSTEAD ru.RmSettingsMsg=Удалить настройки и сохранённые игры? [Tasks] Name: desktopicon; Description: {cm:CreateDesktopIcon} [Run] Filename: {app}\sdl-instead.exe; Description: {cm:LaunchGame}; WorkingDir: {app}; Flags: postinstall [Icons] Name: {commondesktop}\INSTEAD; Filename: {app}\sdl-instead.exe; WorkingDir: {app}; Tasks: desktopicon Name: {group}\INSTEAD; Filename: {app}\sdl-instead.exe; WorkingDir: {app} Name: {group}\{cm:UninstallMsg}; Filename: {uninstallexe} [UninstallDelete] Name: {app}; Type: dirifempty Name: {pf}\Pinebrush games; Type: dirifempty [Code] procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep); begin case CurUninstallStep of usPostUninstall: begin if MsgBox(CustomMessage('RmSettingsMsg'), mbConfirmation, MB_YESNO or MB_DEFBUTTON2) = idYes then begin // remove settings and saved games manually DelTree(ExpandConstant('{localappdata}\instead'), True, True, True); end; end; end; end;