-
Notifications
You must be signed in to change notification settings - Fork 176
/
installer.iss
94 lines (84 loc) · 4.57 KB
/
installer.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
; 1.0.1.0 replace constant autoappdata by autodocs
; 1.0.2.0 add CS subfolder
; 1.0.3.0 change permission from users-modify to everyone-modify
; 1.0.4.0 add IT subfolder
; 1.0.5.0 add TR subfolder
; 1.0.6.0 add PL subfolder
#define MySetupVersion "1.0.6.0"
#define MyAppName "GRBL-Plotter"
#define MyAppExeName "GRBL-Plotter.exe"
#define MyAppPublisher "GRBL-Plotter"
#define MyAppURL "https://grbl-plotter.de"
#define MyReleasePath "GRBL-Plotter\bin\Release\"
#define MyWorkPath "GRBL-Plotter\"
#define MyAppVersion GetVersionNumbersString("GRBL-Plotter\bin\Release\GRBL-Plotter.exe")
#define MyAppDataPath "\GRBL-Plotter"
[Setup]
AppName={#MyAppName}
AppVersion={#MyAppVersion}
AppId=8079d7d8-2b91-4a22-a13e-7e5ac5a9e5fc
AppPublisher=svenhb
AppPublisherURL=https://grbl-plotter.de/
VersionInfoVersion= {#MySetupVersion}
DefaultDirName={autopf}\{#MyAppName}
DefaultGroupName={#MyAppName}
UninstallDisplayIcon={app}\{#MyAppExeName}
OutputDir=Output
OutputBaseFilename=GRBL-Plotter_Setup
AppCopyright=Copyright © 2015-2023 SH
WizardImageFile=image_modell_328.bmp
WizardSmallImageFile=image_modell_55.bmp
WizardStyle=modern
WizardSizePercent=100
Compression=zip
SolidCompression=no
InternalCompressLevel=ultra64
UsePreviousPrivileges=no
PrivilegesRequiredOverridesAllowed=dialog
InfoBeforeFile=readme.txt
[Languages]
Name: "en"; MessagesFile: "compiler:Default.isl"
Name: "de"; MessagesFile: "compiler:Languages\German.isl"
; from https://github.com/kira-96/Inno-Setup-Chinese-Simplified-Translation
Name: "cn"; MessagesFile: "compiler:Languages\ChineseSimplified.isl"
Name: "cs"; MessagesFile: "compiler:Languages\Czech.isl"
Name: "ru"; MessagesFile: "compiler:Languages\Russian.isl"
Name: "ja"; MessagesFile: "compiler:Languages\Japanese.isl"
Name: "pt"; MessagesFile: "compiler:Languages\Portuguese.isl"
Name: "sp"; MessagesFile: "compiler:Languages\Spanish.isl"
Name: "fr"; MessagesFile: "compiler:Languages\French.isl"
Name: "it"; MessagesFile: "compiler:Languages\Italian.isl"
Name: "tr"; MessagesFile: "compiler:Languages\Turkish.isl"
Name: "pl"; MessagesFile: "compiler:Languages\Polish.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
Source: "{#MyReleasePath}GRBL-Plotter.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "{#MyReleasePath}GRBL-Plotter.pdb"; DestDir: "{app}"; Flags: ignoreversion
Source: "{#MyReleasePath}NLog.config"; DestDir: "{app}"; Flags: ignoreversion
Source: "{#MyReleasePath}*.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "{#MyReleasePath}ar\*"; DestDir: "{app}\ar"; Flags: ignoreversion
Source: "{#MyReleasePath}cs\*"; DestDir: "{app}\cs"; Flags: ignoreversion
Source: "{#MyReleasePath}de-DE\*"; DestDir: "{app}\de-DE"; Flags: ignoreversion
Source: "{#MyReleasePath}es\*"; DestDir: "{app}\es"; Flags: ignoreversion
Source: "{#MyReleasePath}fr\*"; DestDir: "{app}\fr"; Flags: ignoreversion
Source: "{#MyReleasePath}it\*"; DestDir: "{app}\it"; Flags: ignoreversion
Source: "{#MyReleasePath}ja\*"; DestDir: "{app}\ja"; Flags: ignoreversion
Source: "{#MyReleasePath}pl\*"; DestDir: "{app}\pl"; Flags: ignoreversion
Source: "{#MyReleasePath}pt\*"; DestDir: "{app}\pt"; Flags: ignoreversion
Source: "{#MyReleasePath}ru\*"; DestDir: "{app}\ru"; Flags: ignoreversion
Source: "{#MyReleasePath}tr\*"; DestDir: "{app}\tr"; Flags: ignoreversion
Source: "{#MyReleasePath}zh-CN\*"; DestDir: "{app}\zh-CN"; Flags: ignoreversion
; autodocs - The path to the My Documents folder. (commondocs or userdocs)
Source: "{#MyWorkPath}Recent.txt"; DestDir: "{autodocs}{#MyAppDataPath}"; Flags: comparetimestamp promptifolder; Permissions: everyone-modify
Source: "{#MyReleasePath}data\*"; DestDir: "{autodocs}{#MyAppDataPath}\data"; Flags: recursesubdirs comparetimestamp promptifolder; Permissions: everyone-modify
Source: "Firmware\*"; DestDir: "{autodocs}{#MyAppDataPath}\Firmware"; Flags: recursesubdirs; Permissions: everyone-modify
[Registry]
; HKCU will be checked first, should be cleared if installation is in admin mode
Root: HKCU; Subkey: "Software\{#MyAppName}\DataPath"; ValueType: none; Flags: deletekey
Root: HKA; Subkey: "Software\{#MyAppName}"; ValueType: string; ValueName: "DataPath"; ValueData: "{autodocs}{#MyAppDataPath}"; Flags: uninsdeletekey
[Icons]
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#MyAppName}}"; Flags: nowait postinstall skipifsilent