File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ AppVersion={#MyAppVersion}
25
25
ArchitecturesInstallIn64BitMode = x64
26
26
ChangesEnvironment = yes
27
27
Compression = lzma
28
- DefaultDirName = {pf} \{# MyAppName }
28
+ DefaultDirName = {code:GetDefaultDirName }
29
29
DirExistsWarning = no
30
30
DisableReadyPage = True
31
31
LicenseFile = ..\..\LICENSE.md
@@ -56,6 +56,15 @@ Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environmen
56
56
Root : HKLM; Subkey : " SYSTEM\CurrentControlSet\Control\Session Manager\Environment" ; ValueType : string ; ValueName : " GIT_LFS_PATH" ; ValueData : " {app} "
57
57
58
58
[Code]
59
+ function GetDefaultDirName (Dummy: string): string;
60
+ begin
61
+ if IsAdminLoggedOn then begin
62
+ Result:=ExpandConstant(' {pf}\{#MyAppName}' );
63
+ end else begin
64
+ Result:=ExpandConstant(' {userpf}\{#MyAppName}' );
65
+ end ;
66
+ end ;
67
+
59
68
// Uses cmd to parse and find the location of Git through the env vars.
60
69
// Currently only used to support running the uninstaller for the old Git LFS version.
61
70
function GetExistingGitInstallation (Value : string): string;
You can’t perform that action at this time.
0 commit comments