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