-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.iss
executable file
·36 lines (31 loc) · 1.71 KB
/
setup.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
#define LaunchProgram "Start OpenSprinkler Updater program"
#define DesktopIcon "Create shortcut on the desktop"
#define CreateDesktopIcon "Do you want to create a desktop shortcut?"
#define DriverInstall "Install OpenSprinkler Hardware Driver"
#define DriverInstallMsg "Do you want to install the OpenSprinkler hardware driver?"
[Setup]
AppName = OpenSprinkler Updater
AppVerName = OpenSprinkler Updater 1.0.4
AppPublisher = OpenSprinkler
AppPublisherURL = https://opensprinkler.com
AppVersion = 1.0.4
DefaultDirName = {pf}\OpenSprinkler\OpenSprinkler Updater
DefaultGroupName = OpenSprinkler
Compression = lzma
SolidCompression = yes
OutputDir=build\
OutputBaseFilename=OpenSprinkler-Updater
[Files]
Source: "build\OpenSprinkler Updater\win32\*"; DestDir: "{app}"; Flags: replacesameversion recursesubdirs createallsubdirs
Source: "drivers\win.exe"; DestDir: "{app}"; Flags: replacesameversion
[Tasks]
Name: "driverinstall"; Description: "{#DriverInstallMsg}"; GroupDescription: "{#DriverInstall}"
Name: "desktopicon"; Description: "{#CreateDesktopIcon}"; GroupDescription: "{#DesktopIcon}"
[Icons]
Name: "{group}\OpenSprinkler Updater"; Filename: "{app}\OpenSprinkler Updater.exe"; WorkingDir: "{app}"
Name: "{userstartup}\OpenSprinkler Updater"; Filename: "{app}\OpenSprinkler Updater.exe"; WorkingDir: "{app}"
Name: "{userdesktop}\OpenSprinkler Updater"; Filename: "{app}\OpenSprinkler Updater.exe"; WorkingDir: "{app}"; Tasks: desktopicon
Name: "{group}\Uninstall OpenSprinkler Updater"; Filename: "{uninstallexe}"
[Run]
Filename: "{app}\win.exe"; Parameters: "/silent"; Flags: "runhidden"; Tasks: driverinstall
Filename: "{app}\OpenSprinkler Updater.exe"; WorkingDir: "{app}"; Description: {#LaunchProgram}; Flags: postinstall shellexec