OpenSecurity.iss
author Oliver Maurhart <oliver.maurhart@ait.ac.at>
Thu, 03 Apr 2014 10:53:27 +0200
changeset 127 8addda300ca7
parent 98 4820361279cc
child 140 c10ddf82e26d
permissions -rw-r--r--
merge
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@76
     6
; Basic installation stuff and config
oliver@68
     7
AppName=OpenSecurity
oliver@75
     8
AppContact=AIT Austrian Institute of Technology
oliver@68
     9
AppPublisher=AIT Austrian Institute of Technology
oliver@68
    10
AppPublisherURL=http://www.ait.ac.at/
oliver@124
    11
AppVersion=0.2.4
oliver@68
    12
ArchitecturesInstallIn64BitMode=x64
oliver@68
    13
DefaultDirName={pf}\OpenSecurity
oliver@76
    14
DefaultGroupName=OpenSecurity
oliver@68
    15
OutputDir="."
oliver@124
    16
OutputBaseFilename="OpenSecurity Setup V0.2.4"
oliver@68
    17
OutputManifestFile=OpenSecurity-Setup-Manifest.txt
oliver@124
    18
SetupIconFile=OpenSecurity\bin\ui\gfx\OpenSecurity.ico
oliver@68
    19
SolidCompression=yes
oliver@124
    20
UninstallDisplayIcon={app}\bin\ui\gfx\OpenSecurity.ico
oliver@68
    21
oliver@68
    22
[Files]
oliver@76
    23
; Files to copy
oliver@86
    24
Source: "OpenSecurity\bin\*"; Excludes: "*.pyc,*.swp"; DestDir: "{app}\bin"; Flags: recursesubdirs createallsubdirs;
oliver@77
    25
Source: "OpenSecurity\cygwin64\*"; DestDir: "{app}\cygwin64"; Flags: recursesubdirs createallsubdirs;
oliver@77
    26
Source: "OpenSecurity\install\*"; DestDir: "{app}\install"; Flags: recursesubdirs createallsubdirs;
oliver@77
    27
Source: "OpenSecurity\python27\*"; DestDir: "{app}\python27"; Flags: recursesubdirs createallsubdirs;
oliver@98
    28
Source: "OpenSecurity\python27\python27.dll"; DestDir: "{sys}"; Flags: sharedfile;
oliver@98
    29
Source: "OpenSecurity\python27\Lib\site-packages\pywin32_system32\pywintypes27.dll"; DestDir: "{sys}"; Flags: sharedfile;
oliver@68
    30
oliver@86
    31
[Dirs]
oliver@93
    32
Name: "{app}\cygwin64\var\log\xwin"; Permissions: everyone-modify
oliver@93
    33
Name: "{app}\log"; Permissions: everyone-modify
oliver@86
    34
oliver@76
    35
[Registry]
oliver@76
    36
; Registry entries to set
oliver@76
    37
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@76
    38
oliver@76
    39
[Icons]
oliver@76
    40
; Program Icons in start menu
oliver@76
    41
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}\gfx\OpenSecurity.ico"
oliver@76
    42
Name: "{group}\Uninstall OpenSecurity"; Filename: "{uninstallexe}"
oliver@76
    43
oliver@68
    44
[Run]
oliver@76
    45
; Run after installment
oliver@77
    46
Filename: "{app}\cygwin64\bin\dash.exe"; Parameters: "/bin/rebaseall"; Description: "Rebasing background system"; WorkingDir: "{app}"; StatusMsg: "Rebasing background system..."; Flags: runascurrentuser
oliver@93
    47
Filename: "{app}\install\fix_cygwin_paths.bat"; Description: "Fixing Cygwin paths"; WorkingDir: "{app}\install"; StatusMsg: "Fixing Cygwin Paths...";
oliver@93
    48
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
    49
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
    50
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
    51
Filename: "{app}\python27\pythonw.exe"; Parameters: """{app}\bin\opensecurity_tray.pyw"""; WorkingDir: "{userappdata}"; Description: "Launching OpenSecurity Tray Icon"; Flags: nowait
oliver@93
    52
oliver@87
    53
[UninstallRun]
oliver@87
    54
; When uninstalling run this command prior
oliver@87
    55
Filename: "{app}\python27\pythonw.exe"; Parameters: """{app}\bin\opensecurity_service.pyw"" stop"; WorkingDir: "{app}"; StatusMsg: "Stopping the OpenSecurity Service"; Flags: runascurrentuser
oliver@87
    56
Filename: "{app}\python27\pythonw.exe"; Parameters: """{app}\bin\opensecurity_service.pyw"" remove"; WorkingDir: "{app}"; StatusMsg: "Removing the OpenSecurity Service"; Flags: runascurrentuser
oliver@76
    57
oliver@77
    58
[UninstallDelete]
oliver@77
    59
Type: filesandordirs; Name: "{app}"