Skip to content

Commit

Permalink
You can totally install it anywhere you have permission to
Browse files Browse the repository at this point in the history
  • Loading branch information
timoschwarzer authored Oct 1, 2021
1 parent 024ba2f commit 76d88c6
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions setup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 76d88c6

Please sign in to comment.