-
Notifications
You must be signed in to change notification settings - Fork 3
/
radiolog.iss
58 lines (49 loc) · 2.66 KB
/
radiolog.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
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define MyAppName "RadioLog"
#define MyAppVersion "3.12.0"
#define MyAppPublisher "Nevada County Sheriff's Search and Rescue"
#define MyAppURL "https://www.nevadacountysar.org"
#define MyAppExeName "RadioLog.exe"
[Setup]
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{1A8B41F6-3C88-41A6-B46D-5B51A4C5AE34}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={commonpf}\{#MyAppName}
UsePreviousAppDir=no
DisableProgramGroupPage=yes
LicenseFile=dist\radiolog\LICENSE.txt
; Uncomment the following line to run in non administrative install mode (install for current user only.)
;PrivilegesRequired=lowest
OutputDir=dist\
OutputBaseFilename=radiolog-{#MyAppVersion}-setup
Compression=lzma
SolidCompression=yes
WizardStyle=modern
;PrivilegesRequired=lowest
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
Source: "dist\radiolog\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; IconFilename: "{app}\radio.ico"
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; IconFilename: "{app}\radio.ico"; Tasks: desktopicon
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
[Code]
procedure CurStepChanged(CurStep:TSetupStep);
begin
if CurStep = ssPostInstall then
if not RegKeyExists(HKLM,'SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Acrobat.exe') then
MsgBox('PDF Print Notice'+#13#10#13#10+'It looks like Adobe Acrobat is not installed.'+#13#10#13#10+'PDF files will still be generated and saved by RadioLog, but a default PDF viewer application, other than a web browser, must be installed in order to send those generated PDF files to a printer.'+#13#10#13#10+'Adobe Acrobat Reader is just one option. It can be installed from get.adobe.com/reader.'+#13#10#13#10+'If you do have Acrobat or a different PDF viewer application installed, please try printing from RadioLog to confirm.',mbInformation,MB_OK);
end;