Skip to content

Commit

Permalink
Small fix: save install directory early.
Browse files Browse the repository at this point in the history
  • Loading branch information
LongDirtyAnimAlf committed Aug 7, 2021
1 parent 1c04183 commit 925dad4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Binary file modified fpcupdeluxe.res
Binary file not shown.
6 changes: 4 additions & 2 deletions fpcupdeluxemainform.pas
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ procedure TForm1.FormCreate(Sender: TObject);
begin
MessageTrigger:=false;

IniPropStorageApp.IniFileName:=IncludeTrailingPathDelimiter(SafeGetApplicationPath)+installerUniversal.DELUXEFILENAME;
IniPropStorageApp.IniFileName:=SafeGetApplicationPath+installerUniversal.DELUXEFILENAME;

{$ifdef EnableLanguages}
sLanguage:='en';
Expand Down Expand Up @@ -461,7 +461,7 @@ procedure TForm1.FormCreate(Sender: TObject);

//Prevent overwriting an existing install when starting with a new fpcupdeluxe install
If DirectoryExists(sInstallDir) then
sInstallDir:=IncludeTrailingPathDelimiter(SafeGetApplicationPath)+'fpcupdeluxe';
sInstallDir:=SafeGetApplicationPath+'fpcupdeluxe';

{$ifdef DARWIN}
// we could have started from with an .app , so goto the basedir ... not sure if realy needed, but to be sure.
Expand Down Expand Up @@ -4555,6 +4555,8 @@ function TForm1.SetFPCUPSettings(IniDirectory:string):boolean;
try
with TMemIniFile.Create(aDir+DirectorySeparator+installerUniversal.DELUXEFILENAME) do
try
WriteString('General','InstallDirectory',sInstallDir);

WriteBool('General','Gitlab',chkGitlab.Checked);

// mmm, is this correct ? See extrasettings !!
Expand Down

0 comments on commit 925dad4

Please sign in to comment.