14
14
; NOTE: The value of AppId uniquely identifies this application.
15
15
; Do not use the same AppId value in installers for other applications.
16
16
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
17
+ AppCopyright = GitHub, Inc. and Git LFS contributors
17
18
AppId = {{286391DE-F778-44EA-9375 -1B21AAA04FF0}
18
19
AppName = {#MyAppName }
19
- AppVersion = {#MyAppVersion}
20
- AppCopyright = GitHub, Inc. and Git LFS contributors
21
20
AppPublisher = {#MyAppPublisher}
22
21
AppPublisherURL = {#MyAppURL}
23
22
AppSupportURL = {#MyAppURL}
24
23
AppUpdatesURL = {#MyAppURL}
24
+ AppVersion = {#MyAppVersion}
25
+ ArchitecturesInstallIn64BitMode = x64
26
+ ChangesEnvironment = yes
27
+ Compression = lzma
28
+ DefaultDirName = {code:GetDefaultDirName}
29
+ DirExistsWarning = no
30
+ DisableReadyPage = True
25
31
LicenseFile = ..\..\LICENSE.md
26
32
OutputBaseFilename = {#MyAppFilePrefix}-{#MyAppVersion}
27
33
OutputDir = ..\..\
28
- Compression = lzma
34
+ PrivilegesRequired = none
35
+ SetupIconFile = git-lfs-logo.ico
29
36
SolidCompression = yes
30
- DefaultDirName = {pf} \{#MyAppName }
31
37
UsePreviousAppDir = no
32
- DirExistsWarning = no
33
- DisableReadyPage = True
34
- ArchitecturesInstallIn64BitMode = x64
35
- ChangesEnvironment = yes
36
- SetupIconFile = git-lfs-logo.ico
37
38
VersionInfoVersion = {#MyVersionInfoVersion}
38
39
WizardImageFile = git-lfs-wizard-image.bmp
39
40
WizardSmallImageFile = git-lfs-logo.bmp
@@ -51,10 +52,21 @@ Source: ..\..\git-lfs-x64.exe; DestDir: "{app}"; Flags: ignoreversion; DestName:
51
52
Source : ..\..\git-lfs-x86 .exe; DestDir : " {app} " ; Flags : ignoreversion ; DestName : " git-lfs.exe" ; AfterInstall : InstallGitLFS; Check : not Is64BitInstallMode
52
53
53
54
[Registry]
54
- Root : HKLM; Subkey : " SYSTEM\CurrentControlSet\Control\Session Manager\Environment" ; ValueType : expandsz ; ValueName : " Path" ; ValueData : " {olddata};{app} " ; Check : NeedsAddPath(' {app} ' )
55
- Root : HKLM; Subkey : " SYSTEM\CurrentControlSet\Control\Session Manager\Environment" ; ValueType : string ; ValueName : " GIT_LFS_PATH" ; ValueData : " {app} "
55
+ Root : HKLM; Subkey : " SYSTEM\CurrentControlSet\Control\Session Manager\Environment" ; ValueType : expandsz ; ValueName : " Path" ; ValueData : " {olddata};{app} " ; Check : IsAdminLoggedOn and NeedsAddPath(' {app} ' )
56
+ Root : HKLM; Subkey : " SYSTEM\CurrentControlSet\Control\Session Manager\Environment" ; ValueType : string ; ValueName : " GIT_LFS_PATH" ; ValueData : " {app} " ; Check : IsAdminLoggedOn
57
+ Root : HKCU; Subkey : " Environment" ; ValueType : expandsz ; ValueName : " Path" ; ValueData : " {olddata};{app} " ; Check : (not IsAdminLoggedOn) and NeedsAddPath(' {app} ' )
58
+ Root : HKCU; Subkey : " Environment" ; ValueType : string ; ValueName : " GIT_LFS_PATH" ; ValueData : " {app} " ; Check : not IsAdminLoggedOn
56
59
57
60
[Code]
61
+ function GetDefaultDirName (Dummy: string): string;
62
+ begin
63
+ if IsAdminLoggedOn then begin
64
+ Result:=ExpandConstant(' {pf}\{#MyAppName}' );
65
+ end else begin
66
+ Result:=ExpandConstant(' {userpf}\{#MyAppName}' );
67
+ end ;
68
+ end ;
69
+
58
70
// Uses cmd to parse and find the location of Git through the env vars.
59
71
// Currently only used to support running the uninstaller for the old Git LFS version.
60
72
function GetExistingGitInstallation (Value : string): string;
0 commit comments