oliver@68
|
1 |
; -- OpenSecurity.iss --
|
oliver@68
|
2 |
; OpenSecurity setup file for use with
|
oliver@68
|
3 |
; Inno Setup Compiler (http://www.jrsoftware.org/isinfo.php)
|
oliver@68
|
4 |
|
oliver@68
|
5 |
[Setup]
|
oliver@76
|
6 |
; Basic installation stuff and config
|
oliver@68
|
7 |
AppName=OpenSecurity
|
oliver@75
|
8 |
AppContact=AIT Austrian Institute of Technology
|
oliver@68
|
9 |
AppPublisher=AIT Austrian Institute of Technology
|
oliver@68
|
10 |
AppPublisherURL=http://www.ait.ac.at/
|
oliver@173
|
11 |
AppVersion=0.2.6
|
oliver@68
|
12 |
ArchitecturesInstallIn64BitMode=x64
|
oliver@68
|
13 |
DefaultDirName={pf}\OpenSecurity
|
oliver@76
|
14 |
DefaultGroupName=OpenSecurity
|
oliver@68
|
15 |
OutputDir="."
|
oliver@173
|
16 |
OutputBaseFilename="OpenSecurity Setup V0.2.6"
|
oliver@68
|
17 |
OutputManifestFile=OpenSecurity-Setup-Manifest.txt
|
oliver@124
|
18 |
SetupIconFile=OpenSecurity\bin\ui\gfx\OpenSecurity.ico
|
oliver@68
|
19 |
SolidCompression=yes
|
oliver@124
|
20 |
UninstallDisplayIcon={app}\bin\ui\gfx\OpenSecurity.ico
|
oliver@68
|
21 |
|
oliver@68
|
22 |
[Files]
|
oliver@76
|
23 |
; Files to copy
|
oliver@86
|
24 |
Source: "OpenSecurity\bin\*"; Excludes: "*.pyc,*.swp"; DestDir: "{app}\bin"; Flags: recursesubdirs createallsubdirs;
|
oliver@77
|
25 |
Source: "OpenSecurity\cygwin64\*"; DestDir: "{app}\cygwin64"; Flags: recursesubdirs createallsubdirs;
|
oliver@77
|
26 |
Source: "OpenSecurity\install\*"; DestDir: "{app}\install"; Flags: recursesubdirs createallsubdirs;
|
oliver@77
|
27 |
Source: "OpenSecurity\python27\*"; DestDir: "{app}\python27"; Flags: recursesubdirs createallsubdirs;
|
oliver@98
|
28 |
Source: "OpenSecurity\python27\python27.dll"; DestDir: "{sys}"; Flags: sharedfile;
|
oliver@98
|
29 |
Source: "OpenSecurity\python27\Lib\site-packages\pywin32_system32\pywintypes27.dll"; DestDir: "{sys}"; Flags: sharedfile;
|
oliver@68
|
30 |
|
oliver@86
|
31 |
[Dirs]
|
oliver@93
|
32 |
Name: "{app}\cygwin64\var\log\xwin"; Permissions: everyone-modify
|
oliver@93
|
33 |
Name: "{app}\log"; Permissions: everyone-modify
|
oliver@86
|
34 |
|
oliver@76
|
35 |
[Registry]
|
oliver@76
|
36 |
; Registry entries to set
|
oliver@76
|
37 |
Root: HKCU; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\Run"; ValueName: "OpenSecurity Tray Icon"; ValueType: string; ValueData: "{app}\python27\pythonw.exe ""{app}\bin\opensecurity_tray.pyw"""; Flags: uninsdeletevalue
|
oliver@173
|
38 |
Root: HKLM; Subkey: "SOFTWARE\OpenSecurity"; ValueName: "LogServerUrl"; ValueType: string; ValueData: "http://extern.x-net.at/opensecurity/log"; Flags: uninsdeletevalue
|
oliver@76
|
39 |
|
oliver@76
|
40 |
[Icons]
|
oliver@76
|
41 |
; Program Icons in start menu
|
oliver@140
|
42 |
Name: "{group}\OpenSecurity Tray Icon"; Filename: "{app}\python27\pythonw.exe"; Parameters: """{app}\bin\opensecurity_tray.pyw"""; WorkingDir: "{userappdata}"; Comment: "The OpenSecurity Tray Icon"; IconFilename: "{app}\bin\ui\gfx\OpenSecurity.ico"
|
oliver@76
|
43 |
Name: "{group}\Uninstall OpenSecurity"; Filename: "{uninstallexe}"
|
oliver@76
|
44 |
|
oliver@68
|
45 |
[Run]
|
oliver@76
|
46 |
; Run after installment
|
oliver@77
|
47 |
Filename: "{app}\cygwin64\bin\dash.exe"; Parameters: "/bin/rebaseall"; Description: "Rebasing background system"; WorkingDir: "{app}"; StatusMsg: "Rebasing background system..."; Flags: runascurrentuser
|
oliver@93
|
48 |
Filename: "{app}\install\fix_cygwin_paths.bat"; Description: "Fixing Cygwin paths"; WorkingDir: "{app}\install"; StatusMsg: "Fixing Cygwin Paths...";
|
oliver@93
|
49 |
Filename: "{app}\cygwin64\bin\bash.exe"; Parameters: "-l -i -c echo -n"; Description: "Enforcing login environment for shells"; WorkingDir: "{app}"; StatusMsg: "Enforcing login environment for shells...";
|
oliver@87
|
50 |
Filename: "{app}\python27\pythonw.exe"; Parameters: """{app}\bin\opensecurity_service.pyw"" --startup auto install"; Description: "Installing the OpenSecurity Service"; WorkingDir: "{app}"; StatusMsg: "Installing the OpenSecurity Service"; Flags: runascurrentuser
|
oliver@93
|
51 |
Filename: "{app}\python27\pythonw.exe"; Parameters: """{app}\bin\opensecurity_service.pyw"" start"; Description: "Starting OpenSecurity Service"; WorkingDir: "{app}"; StatusMsg: "Starting OpenSecurity Service"; Flags: runascurrentuser
|
oliver@94
|
52 |
Filename: "{app}\python27\pythonw.exe"; Parameters: """{app}\bin\opensecurity_tray.pyw"""; WorkingDir: "{userappdata}"; Description: "Launching OpenSecurity Tray Icon"; Flags: nowait
|
oliver@93
|
53 |
|
oliver@87
|
54 |
[UninstallRun]
|
oliver@87
|
55 |
; When uninstalling run this command prior
|
oliver@87
|
56 |
Filename: "{app}\python27\pythonw.exe"; Parameters: """{app}\bin\opensecurity_service.pyw"" stop"; WorkingDir: "{app}"; StatusMsg: "Stopping the OpenSecurity Service"; Flags: runascurrentuser
|
oliver@87
|
57 |
Filename: "{app}\python27\pythonw.exe"; Parameters: """{app}\bin\opensecurity_service.pyw"" remove"; WorkingDir: "{app}"; StatusMsg: "Removing the OpenSecurity Service"; Flags: runascurrentuser
|
oliver@76
|
58 |
|
oliver@77
|
59 |
[UninstallDelete]
|
oliver@77
|
60 |
Type: filesandordirs; Name: "{app}"
|