feat(inno): add POSH_THEMES_PATH to env on install

This commit is contained in:
Jan De Dobbeleer 2022-02-21 12:32:54 +01:00 committed by Jan De Dobbeleer
parent 0b96844ee3
commit 6d03130443

View file

@ -10,6 +10,7 @@ LicenseFile="bin\COPYING.txt"
OutputBaseFilename=install OutputBaseFilename=install
PrivilegesRequired=lowest PrivilegesRequired=lowest
PrivilegesRequiredOverridesAllowed=dialog PrivilegesRequiredOverridesAllowed=dialog
ChangesEnvironment=yes
[Files] [Files]
Source: "bin\oh-my-posh.exe"; DestDir: "{app}\bin" Source: "bin\oh-my-posh.exe"; DestDir: "{app}\bin"
@ -17,7 +18,7 @@ Source: "bin\themes\*"; DestDir: "{app}\themes"
[Registry] [Registry]
Root: "HKCU"; Subkey: "Environment"; ValueType: expandsz; ValueName: "Path"; ValueData: "{olddata};{app}\bin"; Check: NeedsAddPathHKCU(ExpandConstant('{app}\bin')) Root: "HKCU"; Subkey: "Environment"; ValueType: expandsz; ValueName: "Path"; ValueData: "{olddata};{app}\bin"; Check: NeedsAddPathHKCU(ExpandConstant('{app}\bin'))
Root: "HKCU"; Subkey: "Environment"; ValueType: expandsz; ValueName: "Path"; ValueData: "{olddata};{app}\themes"; Check: NeedsAddPathHKCU(ExpandConstant('{app}\themes')) Root: "HKCU"; Subkey: "Environment"; ValueType: string; ValueName: "POSH_THEMES_PATH"; ValueData: {app}\themes; Flags: preservestringtype
[Code] [Code]
function NeedsAddPathHKCU(Param: string): boolean; function NeedsAddPathHKCU(Param: string): boolean;