chore(windows): cleanup

This commit is contained in:
Marc Durdin 2020-08-26 11:45:57 +10:00
parent 97a16e8535
commit 09fff26c1f
3 changed files with 3 additions and 4 deletions

View file

@ -167,12 +167,12 @@ begin
begin
if IsPackage then
begin
FPackage := (kmcom.Packages as IKeymanPackagesInstalled2).Install2(FileName, True, False);
FPackage := (kmcom.Packages as IKeymanPackagesInstalled2).Install2(FileName, True);
InstallKeyboardPackageLanguage(FPackage, FilenameBCP47[2]);
end
else
begin
FKeyboard := (kmcom.Keyboards as IKeymanKeyboardsInstalled2).Install2(FileName, True, False);
FKeyboard := (kmcom.Keyboards as IKeymanKeyboardsInstalled2).Install2(FileName, True);
FKeyboard.Languages.Install(FilenameBCP47[2]);
end;
end

View file

@ -64,9 +64,8 @@ end;
function IsTIPInstalledForCurrentUser(BCP47Tag: string; LangID: Integer; guidProfile: TGUID): Boolean;
var
tag, FLayoutInstallString: string;
FLayoutInstallString: string;
reg: TRegistryErrorControlled;
tags: TStringList;
begin
if BCP47Tag <> '' then
begin