Skip to content

Commit

Permalink
Fix default server data dir to localappdata
Browse files Browse the repository at this point in the history
  • Loading branch information
mikiher committed Jan 4, 2024
1 parent 30bb5e9 commit 3d9792c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Setup/Installer.iss
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon

[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall

[Registry]
; Don't delete datadir in HKCU during uninstall - we want to keep the data dir if the user reinstalls
Expand Down Expand Up @@ -127,7 +127,7 @@ var
begin
DataDirPage := CreateInputDirPage(wpSelectDir, 'Select Data Directory', 'Where should Audiobookshelf store its data?', 'Select the directory in which Audiobookshelf should store its data, then click Next.', False, '');
DataDirPage.Add('');
DataDirPage.Values[0] := ExpandConstant('{userappdata}\Audiobookshelf');
DataDirPage.Values[0] := ExpandConstant('{localappdata}\Audiobookshelf');
if RegQueryStringValue(HKCU, 'Software\Audiobookshelf', 'DataDir', DataDir) then
begin
DataDirPage.Values[0] := DataDir;
Expand Down

0 comments on commit 3d9792c

Please sign in to comment.