Révision 6 Install/EvaPig2020.iss

Voir les différences:

EvaPig2020.iss
12 12
[Setup]
13 13
; Compiller
14 14
PrivilegesRequired=none
15
PrivilegesRequiredOverridesAllowed=dialog
15 16
OutputBaseFilename={#Project}Setup_{#Major}.{#Minor}.{#Release}.{#Build}
16 17
OutputDir=.
17 18
VersionInfoCompany={#Publisher}
......
24 25
AppVersion={#Major}.{#Minor}.{#Release}.{#Build}
25 26
AppPublisher={#Publisher}
26 27
AppPublisherURL={#URL}
27
DefaultDirName={code:DefDirRoot}\{#Project}
28
;DefaultDirName={code:DefDirRoot}\{#Project}
29
DefaultDirName={autopf}\{#Project}
28 30
DefaultGroupName={#Project}
29 31
AllowNoIcons=yes
30 32

  
......
86 88
[UninstallDelete]
87 89
Type: files; Name: {app}\{#Project}.url
88 90

  
89
[Code]
90
function IsRegularUser(): Boolean;
91
begin
92
  Result := not (IsAdminLoggedOn or IsPowerUserLoggedOn);
93
end;
94

  
95
function DefDirRoot(Param: String): String;
96
begin
97
  if IsRegularUser then
98
    Result := ExpandConstant('{localappdata}')
99
  else
100
    Result := ExpandConstant('{pf}')
101
end;
91
;[Code]
92
;function IsRegularUser(): Boolean;
93
;begin
94
;  Result := not (IsAdminLoggedOn or IsPowerUserLoggedOn);
95
;end;
96
;
97
;function DefDirRoot(Param: String): String;
98
;begin
99
;  if IsRegularUser then
100
;    Result := ExpandConstant('{localappdata}')
101
;  else
102
;    Result := ExpandConstant('{pf}')
103
;end;

Formats disponibles : Unified diff