OpenSecurity.iss
author Oliver Maurhart <oliver.maurhart@ait.ac.at>
Wed, 29 Oct 2014 15:18:22 +0100
changeset 240 d7ef04254e9c
parent 239 bfac95f9ac41
child 241 6f73753677aa
permissions -rw-r--r--
lizenz fixed in all files
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@225
    38
AppVersion=0.2.10
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@68
    48
OutputDir="."
oliver@225
    49
OutputBaseFilename="OpenSecurity Setup V0.2.10"
oliver@68
    50
OutputManifestFile=OpenSecurity-Setup-Manifest.txt
oliver@124
    51
SetupIconFile=OpenSecurity\bin\ui\gfx\OpenSecurity.ico
oliver@68
    52
SolidCompression=yes
oliver@124
    53
UninstallDisplayIcon={app}\bin\ui\gfx\OpenSecurity.ico
oliver@68
    54
oliver@68
    55
[Files]
oliver@240
    56
Source: "OpenSecurity\Lizenz.txt"; DestDir: "{app}"; 
oliver@86
    57
Source: "OpenSecurity\bin\*"; Excludes: "*.pyc,*.swp"; DestDir: "{app}\bin"; Flags: recursesubdirs createallsubdirs;
oliver@77
    58
Source: "OpenSecurity\cygwin64\*"; DestDir: "{app}\cygwin64"; Flags: recursesubdirs createallsubdirs;
oliver@77
    59
Source: "OpenSecurity\install\*"; DestDir: "{app}\install"; Flags: recursesubdirs createallsubdirs;
oliver@77
    60
Source: "OpenSecurity\python27\*"; DestDir: "{app}\python27"; Flags: recursesubdirs createallsubdirs;
oliver@98
    61
Source: "OpenSecurity\python27\python27.dll"; DestDir: "{sys}"; Flags: sharedfile;
oliver@98
    62
Source: "OpenSecurity\python27\Lib\site-packages\pywin32_system32\pywintypes27.dll"; DestDir: "{sys}"; Flags: sharedfile;
oliver@175
    63
Source: "OpenSecurity\systemprofile\.VirtualBox\*"; DestDir: "{sys}\config\systemprofile\.VirtualBox"; Flags: recursesubdirs createallsubdirs;
oliver@175
    64
Source: "OpenSecurity\systemprofile\VirtualBox VMs\*"; DestDir: "{sys}\config\systemprofile\VirtualBox VMs"; Flags: recursesubdirs createallsubdirs;
oliver@199
    65
Source: "OpenSecurity\Apache License, Version 2.0.txt"; DestDir: "{app}";
oliver@68
    66
oliver@86
    67
[Dirs]
oliver@93
    68
Name: "{app}\cygwin64\var\log\xwin"; Permissions: everyone-modify
oliver@93
    69
Name: "{app}\log"; Permissions: everyone-modify
oliver@86
    70
oliver@76
    71
[Registry]
oliver@76
    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
oliver@231
    73
Root: HKLM; Subkey: "SOFTWARE\OpenSecurity"; ValueName: "LogServerUrl"; ValueType: string; ValueData: "{code:URLLogServer}"; Flags: uninsdeletevalue
oliver@231
    74
Root: HKLM; Subkey: "SOFTWARE\OpenSecurity"; ValueName: "Browser"; ValueType: string; ValueData: "{code:VMBrowser}"; Flags: uninsdeletevalue
oliver@178
    75
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\services\USBSTOR"; ValueName: "Start"; ValueType: dword; ValueData: 4;
oliver@76
    76
oliver@76
    77
[Icons]
oliver@140
    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"
oliver@199
    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"
oliver@199
    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"
oliver@76
    81
Name: "{group}\Uninstall OpenSecurity"; Filename: "{uninstallexe}"
oliver@76
    82
oliver@68
    83
[Run]
oliver@77
    84
Filename: "{app}\cygwin64\bin\dash.exe"; Parameters: "/bin/rebaseall"; Description: "Rebasing background system"; WorkingDir: "{app}"; StatusMsg: "Rebasing background system..."; Flags: runascurrentuser
oliver@93
    85
Filename: "{app}\install\fix_cygwin_paths.bat"; Description: "Fixing Cygwin paths"; WorkingDir: "{app}\install"; StatusMsg: "Fixing Cygwin Paths...";
oliver@93
    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...";
oliver@87
    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
oliver@93
    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
oliver@94
    89
Filename: "{app}\python27\pythonw.exe"; Parameters: """{app}\bin\opensecurity_tray.pyw"""; WorkingDir: "{userappdata}"; Description: "Launching OpenSecurity Tray Icon"; Flags: nowait
oliver@93
    90
oliver@87
    91
[UninstallRun]
oliver@226
    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
oliver@87
    93
Filename: "{app}\python27\pythonw.exe"; Parameters: """{app}\bin\opensecurity_service.pyw"" stop"; WorkingDir: "{app}"; StatusMsg: "Stopping the OpenSecurity Service"; Flags: runascurrentuser
oliver@87
    94
Filename: "{app}\python27\pythonw.exe"; Parameters: """{app}\bin\opensecurity_service.pyw"" remove"; WorkingDir: "{app}"; StatusMsg: "Removing the OpenSecurity Service"; Flags: runascurrentuser
oliver@76
    95
oliver@77
    96
[UninstallDelete]
oliver@77
    97
Type: filesandordirs; Name: "{app}"
oliver@231
    98
oliver@231
    99
oliver@231
   100
[Code]
oliver@231
   101
var
oliver@231
   102
  UserInputPage: TInputQueryWizardPage;
oliver@231
   103
oliver@231
   104
procedure InitializeWizard;
oliver@231
   105
begin
oliver@231
   106
oliver@231
   107
  // Create the page
oliver@231
   108
  UserInputPage := CreateInputQueryPage(wpWelcome,
oliver@231
   109
    'Installation Details', 
oliver@231
   110
    'Essential settings for the current OpenSecurity Installation',
oliver@231
   111
    'Please specify concrete details for the OpenSecurity Installation. In doubt, leave unchanged.');
oliver@231
   112
oliver@231
   113
  // Add items (False means it's not a password edit)
oliver@231
   114
  UserInputPage.Add('VM Browser:', False);
oliver@231
   115
  UserInputPage.Add('URL of Logserver:', False);
oliver@231
   116
oliver@231
   117
  // Set initial values (optional)
oliver@231
   118
  UserInputPage.Values[0] := '/usr/bin/chromium';
oliver@231
   119
  UserInputPage.Values[1] := 'http://10.215.5.166/opensecurity/log';
oliver@231
   120
oliver@231
   121
end;
oliver@231
   122
oliver@231
   123
function VMBrowser(Param: String): String;
oliver@231
   124
begin
oliver@231
   125
  Result := UserInputPage.Values[0]
oliver@231
   126
end;
oliver@231
   127
oliver@231
   128
function URLLogServer(Param: String): String;
oliver@231
   129
begin
oliver@231
   130
  Result := UserInputPage.Values[1]
oliver@231
   131
end;