From: Sebastian Schuberth Date: Fri, 15 Mar 2013 08:57:04 +0000 (+0100) Subject: Installer: Reuse any previously set custom Plink path on update installs X-Git-Url: https://repo.or.cz/w/msysgit.git/commitdiff_plain/2cb89d3e7a7022387e5799de7a9562f57b3ce277 Installer: Reuse any previously set custom Plink path on update installs Signed-off-by: Sebastian Schuberth --- diff --git a/share/WinGit/install.iss b/share/WinGit/install.iss index 9ca535ce..a706c8b9 100644 --- a/share/WinGit/install.iss +++ b/share/WinGit/install.iss @@ -552,7 +552,10 @@ begin EdtPlink:=TEdit.Create(PuTTYPage); with EdtPlink do begin Parent:=PuTTYPage.Surface; - Text:=GetPuTTYLocation; + Text:=GetPreviousData('Plink Path',''); + if not FileExists(Text) then begin + Text:=GetPuTTYLocation; + end; if not FileExists(Text) then begin Text:=''; end; @@ -1227,6 +1230,7 @@ begin Data:='OpenSSH'; end else if RdbSSH[GS_Plink].Checked then begin Data:='Plink'; + SetPreviousData(PreviousDataKey,'Plink Path',EdtPlink.Text); end; SetPreviousData(PreviousDataKey,'SSH Option',Data);