OpenSecurity.iss
author Bartha Mihai <mihai.bartha@ait.ac.at>
Fri, 07 Nov 2014 16:20:29 +0100
changeset 244 9a094a081c90
parent 226 107dc235508f
child 239 bfac95f9ac41
permissions -rw-r--r--
added correction for Bug #32
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@68
     6
AppName=OpenSecurity
oliver@75
     7
AppContact=AIT Austrian Institute of Technology
oliver@68
     8
AppPublisher=AIT Austrian Institute of Technology
oliver@68
     9
AppPublisherURL=http://www.ait.ac.at/
oliver@225
    10
AppVersion=0.2.10
oliver@68
    11
ArchitecturesInstallIn64BitMode=x64
oliver@68
    12
DefaultDirName={pf}\OpenSecurity
oliver@76
    13
DefaultGroupName=OpenSecurity
oliver@178
    14
; DisableDirPage=yes
oliver@178
    15
; DisableFinishedPage=yes
oliver@178
    16
; DisableProgramGroupPage=yes
oliver@178
    17
; DisableReadyMemo=yes
oliver@178
    18
; DisableReadyPage=yes
oliver@178
    19
; DisableWelcomePage=yes
oliver@68
    20
OutputDir="."
oliver@225
    21
OutputBaseFilename="OpenSecurity Setup V0.2.10"
oliver@68
    22
OutputManifestFile=OpenSecurity-Setup-Manifest.txt
oliver@124
    23
SetupIconFile=OpenSecurity\bin\ui\gfx\OpenSecurity.ico
oliver@68
    24
SolidCompression=yes
oliver@124
    25
UninstallDisplayIcon={app}\bin\ui\gfx\OpenSecurity.ico
oliver@68
    26
oliver@68
    27
[Files]
oliver@86
    28
Source: "OpenSecurity\bin\*"; Excludes: "*.pyc,*.swp"; DestDir: "{app}\bin"; Flags: recursesubdirs createallsubdirs;
oliver@77
    29
Source: "OpenSecurity\cygwin64\*"; DestDir: "{app}\cygwin64"; Flags: recursesubdirs createallsubdirs;
oliver@77
    30
Source: "OpenSecurity\install\*"; DestDir: "{app}\install"; Flags: recursesubdirs createallsubdirs;
oliver@77
    31
Source: "OpenSecurity\python27\*"; DestDir: "{app}\python27"; Flags: recursesubdirs createallsubdirs;
oliver@98
    32
Source: "OpenSecurity\python27\python27.dll"; DestDir: "{sys}"; Flags: sharedfile;
oliver@98
    33
Source: "OpenSecurity\python27\Lib\site-packages\pywin32_system32\pywintypes27.dll"; DestDir: "{sys}"; Flags: sharedfile;
oliver@175
    34
Source: "OpenSecurity\systemprofile\.VirtualBox\*"; DestDir: "{sys}\config\systemprofile\.VirtualBox"; Flags: recursesubdirs createallsubdirs;
oliver@175
    35
Source: "OpenSecurity\systemprofile\VirtualBox VMs\*"; DestDir: "{sys}\config\systemprofile\VirtualBox VMs"; Flags: recursesubdirs createallsubdirs;
oliver@199
    36
Source: "OpenSecurity\Apache License, Version 2.0.txt"; DestDir: "{app}";
oliver@68
    37
oliver@86
    38
[Dirs]
oliver@93
    39
Name: "{app}\cygwin64\var\log\xwin"; Permissions: everyone-modify
oliver@93
    40
Name: "{app}\log"; Permissions: everyone-modify
oliver@86
    41
oliver@76
    42
[Registry]
oliver@76
    43
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
    44
Root: HKLM; Subkey: "SOFTWARE\OpenSecurity"; ValueName: "LogServerUrl"; ValueType: string; ValueData: "{code:URLLogServer}"; Flags: uninsdeletevalue
oliver@231
    45
Root: HKLM; Subkey: "SOFTWARE\OpenSecurity"; ValueName: "Browser"; ValueType: string; ValueData: "{code:VMBrowser}"; Flags: uninsdeletevalue
oliver@178
    46
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\services\USBSTOR"; ValueName: "Start"; ValueType: dword; ValueData: 4;
oliver@76
    47
oliver@76
    48
[Icons]
oliver@140
    49
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
    50
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
    51
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
    52
Name: "{group}\Uninstall OpenSecurity"; Filename: "{uninstallexe}"
oliver@76
    53
oliver@68
    54
[Run]
oliver@77
    55
Filename: "{app}\cygwin64\bin\dash.exe"; Parameters: "/bin/rebaseall"; Description: "Rebasing background system"; WorkingDir: "{app}"; StatusMsg: "Rebasing background system..."; Flags: runascurrentuser
oliver@93
    56
Filename: "{app}\install\fix_cygwin_paths.bat"; Description: "Fixing Cygwin paths"; WorkingDir: "{app}\install"; StatusMsg: "Fixing Cygwin Paths...";
oliver@93
    57
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
    58
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
    59
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
    60
Filename: "{app}\python27\pythonw.exe"; Parameters: """{app}\bin\opensecurity_tray.pyw"""; WorkingDir: "{userappdata}"; Description: "Launching OpenSecurity Tray Icon"; Flags: nowait
oliver@93
    61
oliver@87
    62
[UninstallRun]
oliver@226
    63
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
    64
Filename: "{app}\python27\pythonw.exe"; Parameters: """{app}\bin\opensecurity_service.pyw"" stop"; WorkingDir: "{app}"; StatusMsg: "Stopping the OpenSecurity Service"; Flags: runascurrentuser
oliver@87
    65
Filename: "{app}\python27\pythonw.exe"; Parameters: """{app}\bin\opensecurity_service.pyw"" remove"; WorkingDir: "{app}"; StatusMsg: "Removing the OpenSecurity Service"; Flags: runascurrentuser
oliver@76
    66
oliver@77
    67
[UninstallDelete]
oliver@77
    68
Type: filesandordirs; Name: "{app}"
oliver@231
    69
oliver@231
    70
oliver@231
    71
[Code]
oliver@231
    72
var
oliver@231
    73
  UserInputPage: TInputQueryWizardPage;
oliver@231
    74
oliver@231
    75
procedure InitializeWizard;
oliver@231
    76
begin
oliver@231
    77
oliver@231
    78
  // Create the page
oliver@231
    79
  UserInputPage := CreateInputQueryPage(wpWelcome,
oliver@231
    80
    'Installation Details', 
oliver@231
    81
    'Essential settings for the current OpenSecurity Installation',
oliver@231
    82
    'Please specify concrete details for the OpenSecurity Installation. In doubt, leave unchanged.');
oliver@231
    83
oliver@231
    84
  // Add items (False means it's not a password edit)
oliver@231
    85
  UserInputPage.Add('VM Browser:', False);
oliver@231
    86
  UserInputPage.Add('URL of Logserver:', False);
oliver@231
    87
oliver@231
    88
  // Set initial values (optional)
oliver@231
    89
  UserInputPage.Values[0] := '/usr/bin/chromium';
oliver@231
    90
  UserInputPage.Values[1] := 'http://10.215.5.166/opensecurity/log';
oliver@231
    91
oliver@231
    92
end;
oliver@231
    93
oliver@231
    94
function VMBrowser(Param: String): String;
oliver@231
    95
begin
oliver@231
    96
  Result := UserInputPage.Values[0]
oliver@231
    97
end;
oliver@231
    98
oliver@231
    99
function URLLogServer(Param: String): String;
oliver@231
   100
begin
oliver@231
   101
  Result := UserInputPage.Values[1]
oliver@231
   102
end;