1 ; -- OpenSecurity.iss --
2 ; OpenSecurity setup file for use with
3 ; Inno Setup Compiler (http://www.jrsoftware.org/isinfo.php)
5 ; Copyright 2013-2014 X-Net and AIT Austrian Institute of Technology
12 ; https://www.x-net.at
14 ; AIT Austrian Institute of Technology
15 ; Donau City Strasse 1
18 ; http://www.ait.ac.at
21 ; Licensed under the Apache License, Version 2.0 (the "License");
22 ; you may not use this file except in compliance with the License.
23 ; You may obtain a copy of the License at
25 ; http://www.apache.org/licenses/LICENSE-2.0
27 ; Unless required by applicable law or agreed to in writing, software
28 ; distributed under the License is distributed on an "AS IS" BASIS,
29 ; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
30 ; See the License for the specific language governing permissions and
31 ; limitations under the License.
35 AppContact=AIT Austrian Institute of Technology
36 AppPublisher=AIT Austrian Institute of Technology
37 AppPublisherURL=http://www.ait.ac.at/
39 ArchitecturesInstallIn64BitMode=x64
40 DefaultDirName={pf}\OpenSecurity
41 DefaultGroupName=OpenSecurity
43 ; DisableFinishedPage=yes
44 ; DisableProgramGroupPage=yes
45 ; DisableReadyMemo=yes
46 ; DisableReadyPage=yes
47 ; DisableWelcomePage=yes
49 OutputBaseFilename="OpenSecurity Setup V0.2.10"
50 OutputManifestFile=OpenSecurity-Setup-Manifest.txt
51 SetupIconFile=OpenSecurity\bin\ui\gfx\OpenSecurity.ico
53 UninstallDisplayIcon={app}\bin\ui\gfx\OpenSecurity.ico
56 Source: "OpenSecurity\Lizenz.txt"; DestDir: "{app}";
57 Source: "OpenSecurity\bin\*"; Excludes: "*.pyc,*.swp"; DestDir: "{app}\bin"; Flags: recursesubdirs createallsubdirs;
58 Source: "OpenSecurity\cygwin64\*"; DestDir: "{app}\cygwin64"; Flags: recursesubdirs createallsubdirs;
59 Source: "OpenSecurity\install\*"; DestDir: "{app}\install"; Flags: recursesubdirs createallsubdirs;
60 Source: "OpenSecurity\python27\*"; DestDir: "{app}\python27"; Flags: recursesubdirs createallsubdirs;
61 Source: "OpenSecurity\python27\python27.dll"; DestDir: "{sys}"; Flags: sharedfile;
62 Source: "OpenSecurity\python27\Lib\site-packages\pywin32_system32\pywintypes27.dll"; DestDir: "{sys}"; Flags: sharedfile;
63 Source: "OpenSecurity\systemprofile\.VirtualBox\*"; DestDir: "{sys}\config\systemprofile\.VirtualBox"; Flags: recursesubdirs createallsubdirs;
64 Source: "OpenSecurity\systemprofile\VirtualBox VMs\*"; DestDir: "{sys}\config\systemprofile\VirtualBox VMs"; Flags: recursesubdirs createallsubdirs;
65 Source: "OpenSecurity\Apache License, Version 2.0.txt"; DestDir: "{app}";
68 Name: "{app}\cygwin64\var\log\xwin"; Permissions: everyone-modify
69 Name: "{app}\log"; Permissions: everyone-modify
72 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
73 Root: HKLM; Subkey: "SOFTWARE\OpenSecurity"; ValueName: "LogServerUrl"; ValueType: string; ValueData: "{code:URLLogServer}"; Flags: uninsdeletevalue
74 Root: HKLM; Subkey: "SOFTWARE\OpenSecurity"; ValueName: "Browser"; ValueType: string; ValueData: "{code:VMBrowser}"; Flags: uninsdeletevalue
75 Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\services\USBSTOR"; ValueName: "Start"; ValueType: dword; ValueData: 4;
78 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"
79 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"
80 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"
81 Name: "{group}\Uninstall OpenSecurity"; Filename: "{uninstallexe}"
84 Filename: "{app}\cygwin64\bin\dash.exe"; Parameters: "/bin/rebaseall"; Description: "Rebasing background system"; WorkingDir: "{app}"; StatusMsg: "Rebasing background system..."; Flags: runascurrentuser
85 Filename: "{app}\install\fix_cygwin_paths.bat"; Description: "Fixing Cygwin paths"; WorkingDir: "{app}\install"; StatusMsg: "Fixing Cygwin Paths...";
86 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...";
87 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
88 Filename: "{app}\python27\pythonw.exe"; Parameters: """{app}\bin\opensecurity_service.pyw"" start"; Description: "Starting OpenSecurity Service"; WorkingDir: "{app}"; StatusMsg: "Starting OpenSecurity Service"; Flags: runascurrentuser
89 Filename: "{app}\python27\pythonw.exe"; Parameters: """{app}\bin\opensecurity_tray.pyw"""; WorkingDir: "{userappdata}"; Description: "Launching OpenSecurity Tray Icon"; Flags: nowait
92 Filename: "{app}\python27\pythonw.exe"; Parameters: """{app}\bin\terminate_client_tray.pyw"" stop"; WorkingDir: "{app}"; StatusMsg: "Stopping the OpenSecurity Client Tray Service"; Flags: runascurrentuser
93 Filename: "{app}\python27\pythonw.exe"; Parameters: """{app}\bin\opensecurity_service.pyw"" stop"; WorkingDir: "{app}"; StatusMsg: "Stopping the OpenSecurity Service"; Flags: runascurrentuser
94 Filename: "{app}\python27\pythonw.exe"; Parameters: """{app}\bin\opensecurity_service.pyw"" remove"; WorkingDir: "{app}"; StatusMsg: "Removing the OpenSecurity Service"; Flags: runascurrentuser
97 Type: filesandordirs; Name: "{app}"
102 UserInputPage: TInputQueryWizardPage;
104 procedure InitializeWizard;
108 UserInputPage := CreateInputQueryPage(wpWelcome,
109 'Installation Details',
110 'Essential settings for the current OpenSecurity Installation',
111 'Please specify concrete details for the OpenSecurity Installation. In doubt, leave unchanged.');
113 // Add items (False means it's not a password edit)
114 UserInputPage.Add('VM Browser:', False);
115 UserInputPage.Add('URL of Logserver:', False);
117 // Set initial values (optional)
118 UserInputPage.Values[0] := '/usr/bin/chromium';
119 UserInputPage.Values[1] := 'http://10.215.5.166/opensecurity/log';
123 function VMBrowser(Param: String): String;
125 Result := UserInputPage.Values[0]
128 function URLLogServer(Param: String): String;
130 Result := UserInputPage.Values[1]