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@225
|
11 |
AppVersion=0.2.10
|
oliver@68
|
12 |
ArchitecturesInstallIn64BitMode=x64
|
oliver@68
|
13 |
DefaultDirName={pf}\OpenSecurity
|
oliver@76
|
14 |
DefaultGroupName=OpenSecurity
|
oliver@178
|
15 |
; DisableDirPage=yes
|
oliver@178
|
16 |
; DisableFinishedPage=yes
|
oliver@178
|
17 |
; DisableProgramGroupPage=yes
|
oliver@178
|
18 |
; DisableReadyMemo=yes
|
oliver@178
|
19 |
; DisableReadyPage=yes
|
oliver@178
|
20 |
; DisableWelcomePage=yes
|
oliver@68
|
21 |
OutputDir="."
|
oliver@225
|
22 |
OutputBaseFilename="OpenSecurity Setup V0.2.10"
|
oliver@68
|
23 |
OutputManifestFile=OpenSecurity-Setup-Manifest.txt
|
oliver@124
|
24 |
SetupIconFile=OpenSecurity\bin\ui\gfx\OpenSecurity.ico
|
oliver@68
|
25 |
SolidCompression=yes
|
oliver@124
|
26 |
UninstallDisplayIcon={app}\bin\ui\gfx\OpenSecurity.ico
|
oliver@68
|
27 |
|
oliver@68
|
28 |
[Files]
|
oliver@76
|
29 |
; Files to copy
|
oliver@86
|
30 |
Source: "OpenSecurity\bin\*"; Excludes: "*.pyc,*.swp"; DestDir: "{app}\bin"; Flags: recursesubdirs createallsubdirs;
|
oliver@77
|
31 |
Source: "OpenSecurity\cygwin64\*"; DestDir: "{app}\cygwin64"; Flags: recursesubdirs createallsubdirs;
|
oliver@77
|
32 |
Source: "OpenSecurity\install\*"; DestDir: "{app}\install"; Flags: recursesubdirs createallsubdirs;
|
oliver@77
|
33 |
Source: "OpenSecurity\python27\*"; DestDir: "{app}\python27"; Flags: recursesubdirs createallsubdirs;
|
oliver@98
|
34 |
Source: "OpenSecurity\python27\python27.dll"; DestDir: "{sys}"; Flags: sharedfile;
|
oliver@98
|
35 |
Source: "OpenSecurity\python27\Lib\site-packages\pywin32_system32\pywintypes27.dll"; DestDir: "{sys}"; Flags: sharedfile;
|
oliver@175
|
36 |
Source: "OpenSecurity\systemprofile\.VirtualBox\*"; DestDir: "{sys}\config\systemprofile\.VirtualBox"; Flags: recursesubdirs createallsubdirs;
|
oliver@175
|
37 |
Source: "OpenSecurity\systemprofile\VirtualBox VMs\*"; DestDir: "{sys}\config\systemprofile\VirtualBox VMs"; Flags: recursesubdirs createallsubdirs;
|
oliver@199
|
38 |
Source: "OpenSecurity\Apache License, Version 2.0.txt"; DestDir: "{app}";
|
oliver@68
|
39 |
|
oliver@86
|
40 |
[Dirs]
|
oliver@93
|
41 |
Name: "{app}\cygwin64\var\log\xwin"; Permissions: everyone-modify
|
oliver@93
|
42 |
Name: "{app}\log"; Permissions: everyone-modify
|
oliver@86
|
43 |
|
oliver@76
|
44 |
[Registry]
|
oliver@76
|
45 |
; Registry entries to set
|
oliver@76
|
46 |
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@222
|
47 |
Root: HKLM; Subkey: "SOFTWARE\OpenSecurity"; ValueName: "LogServerUrl"; ValueType: string; ValueData: "http://10.215.5.166/opensecurity/log"; Flags: uninsdeletevalue
|
oliver@178
|
48 |
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\services\USBSTOR"; ValueName: "Start"; ValueType: dword; ValueData: 4;
|
oliver@76
|
49 |
|
oliver@76
|
50 |
[Icons]
|
oliver@76
|
51 |
; Program Icons in start menu
|
oliver@140
|
52 |
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@199
|
53 |
Name: "{group}\Secure Browsing"; Filename: "{app}\cygiwn64\bin\wget.exe"; Parameters: """http://localhost:8080/browsing"""; WorkingDir: "{userappdata}"; Comment: "OpenSecurity Secure Browsing"; IconFilename: "{app}\bin\ui\gfx\opensecurity_browsing_64.ico"
|
oliver@199
|
54 |
Name: "{commondesktop}\Secure Browsing"; Filename: "{app}\python27\pythonw.exe"; Parameters: """{app}\bin\start_browsing.pyw"""; WorkingDir: "{userappdata}"; Comment: "OpenSecurity Secure Browsing"; IconFilename: "{app}\bin\ui\gfx\opensecurity_browsing_64.ico"
|
oliver@76
|
55 |
Name: "{group}\Uninstall OpenSecurity"; Filename: "{uninstallexe}"
|
oliver@76
|
56 |
|
oliver@68
|
57 |
[Run]
|
oliver@76
|
58 |
; Run after installment
|
oliver@77
|
59 |
Filename: "{app}\cygwin64\bin\dash.exe"; Parameters: "/bin/rebaseall"; Description: "Rebasing background system"; WorkingDir: "{app}"; StatusMsg: "Rebasing background system..."; Flags: runascurrentuser
|
oliver@93
|
60 |
Filename: "{app}\install\fix_cygwin_paths.bat"; Description: "Fixing Cygwin paths"; WorkingDir: "{app}\install"; StatusMsg: "Fixing Cygwin Paths...";
|
oliver@93
|
61 |
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
|
62 |
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
|
63 |
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
|
64 |
Filename: "{app}\python27\pythonw.exe"; Parameters: """{app}\bin\opensecurity_tray.pyw"""; WorkingDir: "{userappdata}"; Description: "Launching OpenSecurity Tray Icon"; Flags: nowait
|
oliver@93
|
65 |
|
oliver@87
|
66 |
[UninstallRun]
|
oliver@87
|
67 |
; When uninstalling run this command prior
|
oliver@226
|
68 |
Filename: "{app}\python27\pythonw.exe"; Parameters: """{app}\bin\terminate_client_tray.pyw"" stop"; WorkingDir: "{app}"; StatusMsg: "Stopping the OpenSecurity Client Tray Service"; Flags: runascurrentuser
|
oliver@87
|
69 |
Filename: "{app}\python27\pythonw.exe"; Parameters: """{app}\bin\opensecurity_service.pyw"" stop"; WorkingDir: "{app}"; StatusMsg: "Stopping the OpenSecurity Service"; Flags: runascurrentuser
|
oliver@87
|
70 |
Filename: "{app}\python27\pythonw.exe"; Parameters: """{app}\bin\opensecurity_service.pyw"" remove"; WorkingDir: "{app}"; StatusMsg: "Removing the OpenSecurity Service"; Flags: runascurrentuser
|
oliver@76
|
71 |
|
oliver@77
|
72 |
[UninstallDelete]
|
oliver@77
|
73 |
Type: filesandordirs; Name: "{app}"
|