diff --git a/setup.iss b/setup.iss index 405bcb9..c8eb4e4 100644 --- a/setup.iss +++ b/setup.iss @@ -58,14 +58,3 @@ Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: de [Run] Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: skipifnotsilent nowait Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: skipifsilent nowait postinstall - -[Code] -function NextButtonClick(PageId: Integer): Boolean; -begin - Result := True; - if (PageId = wpSelectDir) and (FileExists(ExpandConstant('{app}\WotwRando.exe')) or FileExists(ExpandConstant('{app}\..\WotwRando.exe'))) then begin - MsgBox('Unfortunately, it is not possible to install the new version to the same directory as before. It is recommended to install it to the default location. We will automatically import your settings if you updated from the old version.', mbError, MB_OK); - Result := False; - exit; - end; -end;