-
Notifications
You must be signed in to change notification settings - Fork 1
/
便携版安装脚本.iss
63 lines (57 loc) · 1.96 KB
/
便携版安装脚本.iss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#define Version GetDateTimeString('yyyy.mm.dd', '.', '')
[Setup]
VersionInfoVersion={#Version}
AppName=NVDA
AppVerName=NVDA
AppPublisher=NVDACN
AppPublisherURL=https://www.nvdacn.com/
AppSupportURL=https://github.com/nvdacn/NVDA_Lazy_Edition
AppUpdatesURL=https://github.com/nvdacn/NVDA_Lazy_Edition/releases
DefaultDirName={src}\Application
AllowNoIcons=yes
OutputDir=Temp
OutputBaseFilename=Application
Compression=lzma2/max
SolidCompression=yes
MinVersion=6.03
DisableDirPage=Yes
DisableProgramGroupPage=yes
DisableFinishedPage=Yes
DisableReadyPage=yes
AppendDefaultDirName=No
DirExistsWarning=No
Uninstallable=No
LicenseFile=Temp\NVDA\documentation\copying.txt
SetupIconFile=Temp\NVDA\images\nvda.ico
AllowCancelDuringInstall=No
ShowLanguageDialog=No
[code]
procedure InitializeWizard();
begin
WizardForm.LICENSEACCEPTEDRADIO.Checked := true;
end;
procedure CancelButtonClick ( CurPageID : Integer; var Cancel, Confirm: Boolean);
begin
Confirm:=false
end;
function UILanguage(): Boolean;
begin
if GetUILanguage = 2052 then
begin
Result := True;
end else begin
Result := False;
end;
end;
[Languages]
Name: "english"; MessagesFile: "compiler:Languages\English.isl"
Name: "chinesesimp"; MessagesFile: "compiler:Default.isl"
[Run]
Filename: "{app}\nvda"; Parameters: "-m -s"; Flags: nowait
[ini]
FileName: "{app}\userConfig\NVDA.ini"; Section: "speech"; Key: " synth "; String: " sapi5"; MinVersion: 6.01; OnlyBelowVersion: 6.04; Check: UILanguage
FileName: "{app}\userConfig\NVDA.ini"; Section: "speech"; Key: " synth "; String: " oneCore"; MinVersion: 6.04; Check: UILanguage
FileName: "{app}\userConfig\NVDA.ini"; Section: "keyboard"; Key: " useCapsLockAsNVDAModifierKey "; String: " True"; Check: UILanguage
[Files]
Source: "Temp\NVDA\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "userConfig\nvda.ini"; DestDir: "{app}\userConfig"; Flags: ignoreversion; Check: UILanguage