mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-09 20:44:03 -08:00
feat(inno): add POSH_THEMES_PATH to env on install
This commit is contained in:
parent
0b96844ee3
commit
6d03130443
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue