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@239
|
5 |
; Copyright 2013-2014 X-Net and AIT Austrian Institute of Technology
|
oliver@239
|
6 |
;
|
oliver@239
|
7 |
;
|
oliver@240
|
8 |
; X-Net Services GmbH
|
oliver@239
|
9 |
; Elisabethstrasse 1
|
oliver@239
|
10 |
; 4020 Linz
|
oliver@239
|
11 |
; AUSTRIA
|
oliver@240
|
12 |
; https://www.x-net.at
|
oliver@239
|
13 |
;
|
oliver@239
|
14 |
; AIT Austrian Institute of Technology
|
oliver@239
|
15 |
; Donau City Strasse 1
|
oliver@239
|
16 |
; 1220 Wien
|
oliver@239
|
17 |
; AUSTRIA
|
oliver@240
|
18 |
; http://www.ait.ac.at
|
oliver@239
|
19 |
;
|
oliver@239
|
20 |
;
|
oliver@239
|
21 |
; Licensed under the Apache License, Version 2.0 (the "License");
|
oliver@239
|
22 |
; you may not use this file except in compliance with the License.
|
oliver@239
|
23 |
; You may obtain a copy of the License at
|
oliver@239
|
24 |
;
|
oliver@239
|
25 |
; http://www.apache.org/licenses/LICENSE-2.0
|
oliver@239
|
26 |
;
|
oliver@239
|
27 |
; Unless required by applicable law or agreed to in writing, software
|
oliver@239
|
28 |
; distributed under the License is distributed on an "AS IS" BASIS,
|
oliver@239
|
29 |
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
oliver@239
|
30 |
; See the License for the specific language governing permissions and
|
oliver@239
|
31 |
; limitations under the License.
|
oliver@239
|
32 |
|
oliver@68
|
33 |
[Setup]
|
oliver@68
|
34 |
AppName=OpenSecurity
|
oliver@75
|
35 |
AppContact=AIT Austrian Institute of Technology
|
oliver@68
|
36 |
AppPublisher=AIT Austrian Institute of Technology
|
oliver@68
|
37 |
AppPublisherURL=http://www.ait.ac.at/
|
oliver@241
|
38 |
AppVersion=0.2.11
|
oliver@68
|
39 |
ArchitecturesInstallIn64BitMode=x64
|
oliver@68
|
40 |
DefaultDirName={pf}\OpenSecurity
|
oliver@76
|
41 |
DefaultGroupName=OpenSecurity
|
oliver@178
|
42 |
; DisableDirPage=yes
|
oliver@178
|
43 |
; DisableFinishedPage=yes
|
oliver@178
|
44 |
; DisableProgramGroupPage=yes
|
oliver@178
|
45 |
; DisableReadyMemo=yes
|
oliver@178
|
46 |
; DisableReadyPage=yes
|
oliver@178
|
47 |
; DisableWelcomePage=yes
|
oliver@243
|
48 |
LicenseFile=OpenSecurity\Lizenz.txt
|
oliver@68
|
49 |
OutputDir="."
|
oliver@241
|
50 |
OutputBaseFilename="OpenSecurity Setup V0.2.11"
|
oliver@68
|
51 |
OutputManifestFile=OpenSecurity-Setup-Manifest.txt
|
oliver@124
|
52 |
SetupIconFile=OpenSecurity\bin\ui\gfx\OpenSecurity.ico
|
oliver@68
|
53 |
SolidCompression=yes
|
oliver@124
|
54 |
UninstallDisplayIcon={app}\bin\ui\gfx\OpenSecurity.ico
|
oliver@68
|
55 |
|
oliver@68
|
56 |
[Files]
|
oliver@240
|
57 |
Source: "OpenSecurity\Lizenz.txt"; DestDir: "{app}";
|
oliver@86
|
58 |
Source: "OpenSecurity\bin\*"; Excludes: "*.pyc,*.swp"; DestDir: "{app}\bin"; Flags: recursesubdirs createallsubdirs;
|
oliver@77
|
59 |
Source: "OpenSecurity\cygwin64\*"; DestDir: "{app}\cygwin64"; Flags: recursesubdirs createallsubdirs;
|
oliver@77
|
60 |
Source: "OpenSecurity\install\*"; DestDir: "{app}\install"; Flags: recursesubdirs createallsubdirs;
|
oliver@77
|
61 |
Source: "OpenSecurity\python27\*"; DestDir: "{app}\python27"; Flags: recursesubdirs createallsubdirs;
|
oliver@98
|
62 |
Source: "OpenSecurity\python27\python27.dll"; DestDir: "{sys}"; Flags: sharedfile;
|
oliver@98
|
63 |
Source: "OpenSecurity\python27\Lib\site-packages\pywin32_system32\pywintypes27.dll"; DestDir: "{sys}"; Flags: sharedfile;
|
oliver@175
|
64 |
Source: "OpenSecurity\systemprofile\.VirtualBox\*"; DestDir: "{sys}\config\systemprofile\.VirtualBox"; Flags: recursesubdirs createallsubdirs;
|
oliver@175
|
65 |
Source: "OpenSecurity\systemprofile\VirtualBox VMs\*"; DestDir: "{sys}\config\systemprofile\VirtualBox VMs"; Flags: recursesubdirs createallsubdirs;
|
oliver@199
|
66 |
Source: "OpenSecurity\Apache License, Version 2.0.txt"; DestDir: "{app}";
|
oliver@68
|
67 |
|
oliver@86
|
68 |
[Dirs]
|
oliver@93
|
69 |
Name: "{app}\cygwin64\var\log\xwin"; Permissions: everyone-modify
|
oliver@93
|
70 |
Name: "{app}\log"; Permissions: everyone-modify
|
oliver@86
|
71 |
|
oliver@76
|
72 |
[Registry]
|
oliver@241
|
73 |
Root: HKLM; 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@231
|
74 |
Root: HKLM; Subkey: "SOFTWARE\OpenSecurity"; ValueName: "LogServerUrl"; ValueType: string; ValueData: "{code:URLLogServer}"; Flags: uninsdeletevalue
|
oliver@231
|
75 |
Root: HKLM; Subkey: "SOFTWARE\OpenSecurity"; ValueName: "Browser"; ValueType: string; ValueData: "{code:VMBrowser}"; Flags: uninsdeletevalue
|
oliver@178
|
76 |
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\services\USBSTOR"; ValueName: "Start"; ValueType: dword; ValueData: 4;
|
oliver@76
|
77 |
|
oliver@76
|
78 |
[Icons]
|
oliver@140
|
79 |
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
|
80 |
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
|
81 |
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
|
82 |
Name: "{group}\Uninstall OpenSecurity"; Filename: "{uninstallexe}"
|
oliver@76
|
83 |
|
oliver@68
|
84 |
[Run]
|
oliver@77
|
85 |
Filename: "{app}\cygwin64\bin\dash.exe"; Parameters: "/bin/rebaseall"; Description: "Rebasing background system"; WorkingDir: "{app}"; StatusMsg: "Rebasing background system..."; Flags: runascurrentuser
|
oliver@93
|
86 |
Filename: "{app}\install\fix_cygwin_paths.bat"; Description: "Fixing Cygwin paths"; WorkingDir: "{app}\install"; StatusMsg: "Fixing Cygwin Paths...";
|
oliver@93
|
87 |
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@241
|
88 |
Filename: "{app}\bin\firewall-install.bat"; Description: "Setup firewall rules"; WorkingDir: "{app}"; StatusMsg: "Setup firewall rules...";
|
oliver@87
|
89 |
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
|
90 |
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
|
91 |
Filename: "{app}\python27\pythonw.exe"; Parameters: """{app}\bin\opensecurity_tray.pyw"""; WorkingDir: "{userappdata}"; Description: "Launching OpenSecurity Tray Icon"; Flags: nowait
|
oliver@93
|
92 |
|
oliver@87
|
93 |
[UninstallRun]
|
oliver@226
|
94 |
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
|
95 |
Filename: "{app}\python27\pythonw.exe"; Parameters: """{app}\bin\opensecurity_service.pyw"" stop"; WorkingDir: "{app}"; StatusMsg: "Stopping the OpenSecurity Service"; Flags: runascurrentuser
|
oliver@87
|
96 |
Filename: "{app}\python27\pythonw.exe"; Parameters: """{app}\bin\opensecurity_service.pyw"" remove"; WorkingDir: "{app}"; StatusMsg: "Removing the OpenSecurity Service"; Flags: runascurrentuser
|
oliver@241
|
97 |
Filename: "{app}\bin\firewall-uninstall.bat"; WorkingDir: "{app}"; StatusMsg: "Uninstall firewall rules...";
|
oliver@76
|
98 |
|
oliver@77
|
99 |
[UninstallDelete]
|
oliver@77
|
100 |
Type: filesandordirs; Name: "{app}"
|
oliver@231
|
101 |
|
oliver@231
|
102 |
|
oliver@231
|
103 |
[Code]
|
oliver@231
|
104 |
var
|
oliver@231
|
105 |
UserInputPage: TInputQueryWizardPage;
|
oliver@231
|
106 |
|
oliver@231
|
107 |
procedure InitializeWizard;
|
oliver@231
|
108 |
begin
|
oliver@231
|
109 |
|
oliver@231
|
110 |
// Create the page
|
oliver@231
|
111 |
UserInputPage := CreateInputQueryPage(wpWelcome,
|
oliver@231
|
112 |
'Installation Details',
|
oliver@231
|
113 |
'Essential settings for the current OpenSecurity Installation',
|
oliver@231
|
114 |
'Please specify concrete details for the OpenSecurity Installation. In doubt, leave unchanged.');
|
oliver@231
|
115 |
|
oliver@231
|
116 |
// Add items (False means it's not a password edit)
|
oliver@231
|
117 |
UserInputPage.Add('VM Browser:', False);
|
oliver@231
|
118 |
UserInputPage.Add('URL of Logserver:', False);
|
oliver@231
|
119 |
|
oliver@231
|
120 |
// Set initial values (optional)
|
oliver@231
|
121 |
UserInputPage.Values[0] := '/usr/bin/chromium';
|
oliver@231
|
122 |
UserInputPage.Values[1] := 'http://10.215.5.166/opensecurity/log';
|
oliver@231
|
123 |
|
oliver@231
|
124 |
end;
|
oliver@231
|
125 |
|
oliver@231
|
126 |
function VMBrowser(Param: String): String;
|
oliver@231
|
127 |
begin
|
oliver@231
|
128 |
Result := UserInputPage.Values[0]
|
oliver@231
|
129 |
end;
|
oliver@231
|
130 |
|
oliver@231
|
131 |
function URLLogServer(Param: String): String;
|
oliver@231
|
132 |
begin
|
oliver@231
|
133 |
Result := UserInputPage.Values[1]
|
oliver@231
|
134 |
end;
|