forked from Lucterios2/setup
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.iss
More file actions
65 lines (55 loc) · 2.65 KB
/
setup.iss
File metadata and controls
65 lines (55 loc) · 2.65 KB
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
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define MyAppName "@@NAME@@"
#define MyAppVersion "@@NAME@@ #@@BUILD@@"
#define MyAppPublisher "sd-libre.fr"
#define MyAppURL "https://www.sd-libre.fr"
#define INSTDIR "c:\lucterios2"
[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={{361A7CAF-D8AD-4A22-ADF7-4E8FA47C97CA}}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
PrivilegesRequired=admin
DefaultDirName={#INSTDIR}
DisableDirPage=yes
DefaultGroupName={#MyAppName}
DisableProgramGroupPage=yes
LicenseFile=License.txt
OutputDir=.\
OutputBaseFilename={#MyAppName}_setup
Compression=lzma
SolidCompression=yes
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
Name: "french"; MessagesFile: "compiler:Languages\French.isl"
[InstallDelete]
Type: filesandordirs; Name: "{app}\Python"
[Files]
Source: "install.ps1"; DestDir: "{app}"; Flags: ignoreversion
Source: "Python\*"; DestDir: "{app}\Python"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Run]
Filename: "PowerShell.exe"; Flags: waituntilterminated; Parameters: "-ExecutionPolicy Bypass -File ""{#INSTDIR}\install.ps1"" "
Filename: "PowerShell.exe"; Flags: shellexec skipifsilent nowait; Parameters: "-WindowStyle Hidden -ExecutionPolicy Bypass -File ""{#INSTDIR}\lucterios_qt.ps1"" "; Tasks: StartAfterInstall
[Tasks]
Name: StartLoginWindows; Description: "Demarrer automatiquement avec Windows"; GroupDescription: "Fin d'installation"; Flags: unchecked
Name: StartAfterInstall; Description: "Lancer l'application en fin d'installation"; GroupDescription: "Fin d'installation"
[Code]
procedure CurStepChanged(CurStep: TSetupStep);
begin
if CurStep = ssDone then
begin
FileCopy(ExpandConstant('{#INSTDIR}\{#MyAppName}.lnk'), ExpandConstant('{commondesktop}\{#MyAppName}.lnk'), False);
FileCopy(ExpandConstant('{#INSTDIR}\{#MyAppName}.lnk'), ExpandConstant('{group}\{#MyAppName}.lnk'), False);
end;
end;
[Icons]
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
Name: "{commonstartup}\{#MyAppName}"; Filename: "PowerShell.exe"; WorkingDir: "{#INSTDIR}"; Parameters: "-WindowStyle Hidden -ExecutionPolicy Bypass -File ""{#INSTDIR}\lucterios_qt.ps1"" "; Tasks: StartLoginWindows