oliver@68: ; -- OpenSecurity.iss -- oliver@68: ; OpenSecurity setup file for use with oliver@68: ; Inno Setup Compiler (http://www.jrsoftware.org/isinfo.php) oliver@68: oliver@68: [Setup] oliver@76: ; Basic installation stuff and config oliver@68: AppName=OpenSecurity oliver@75: AppContact=AIT Austrian Institute of Technology oliver@68: AppPublisher=AIT Austrian Institute of Technology oliver@68: AppPublisherURL=http://www.ait.ac.at/ oliver@124: AppVersion=0.2.4 oliver@68: ArchitecturesInstallIn64BitMode=x64 oliver@68: DefaultDirName={pf}\OpenSecurity oliver@76: DefaultGroupName=OpenSecurity oliver@68: OutputDir="." oliver@124: OutputBaseFilename="OpenSecurity Setup V0.2.4" oliver@68: OutputManifestFile=OpenSecurity-Setup-Manifest.txt oliver@124: SetupIconFile=OpenSecurity\bin\ui\gfx\OpenSecurity.ico oliver@68: SolidCompression=yes oliver@124: UninstallDisplayIcon={app}\bin\ui\gfx\OpenSecurity.ico oliver@68: oliver@68: [Files] oliver@76: ; Files to copy oliver@86: Source: "OpenSecurity\bin\*"; Excludes: "*.pyc,*.swp"; DestDir: "{app}\bin"; Flags: recursesubdirs createallsubdirs; oliver@77: Source: "OpenSecurity\cygwin64\*"; DestDir: "{app}\cygwin64"; Flags: recursesubdirs createallsubdirs; oliver@77: Source: "OpenSecurity\install\*"; DestDir: "{app}\install"; Flags: recursesubdirs createallsubdirs; oliver@77: Source: "OpenSecurity\python27\*"; DestDir: "{app}\python27"; Flags: recursesubdirs createallsubdirs; oliver@98: Source: "OpenSecurity\python27\python27.dll"; DestDir: "{sys}"; Flags: sharedfile; oliver@98: Source: "OpenSecurity\python27\Lib\site-packages\pywin32_system32\pywintypes27.dll"; DestDir: "{sys}"; Flags: sharedfile; oliver@68: oliver@86: [Dirs] oliver@93: Name: "{app}\cygwin64\var\log\xwin"; Permissions: everyone-modify oliver@93: Name: "{app}\log"; Permissions: everyone-modify oliver@86: oliver@76: [Registry] oliver@76: ; Registry entries to set oliver@76: 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: oliver@76: [Icons] oliver@76: ; Program Icons in start menu oliver@76: 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: Name: "{group}\Uninstall OpenSecurity"; Filename: "{uninstallexe}" oliver@76: oliver@68: [Run] oliver@76: ; Run after installment oliver@77: Filename: "{app}\cygwin64\bin\dash.exe"; Parameters: "/bin/rebaseall"; Description: "Rebasing background system"; WorkingDir: "{app}"; StatusMsg: "Rebasing background system..."; Flags: runascurrentuser oliver@93: Filename: "{app}\install\fix_cygwin_paths.bat"; Description: "Fixing Cygwin paths"; WorkingDir: "{app}\install"; StatusMsg: "Fixing Cygwin Paths..."; oliver@93: 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: 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: 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: Filename: "{app}\python27\pythonw.exe"; Parameters: """{app}\bin\opensecurity_tray.pyw"""; WorkingDir: "{userappdata}"; Description: "Launching OpenSecurity Tray Icon"; Flags: nowait oliver@93: oliver@87: [UninstallRun] oliver@87: ; When uninstalling run this command prior oliver@87: Filename: "{app}\python27\pythonw.exe"; Parameters: """{app}\bin\opensecurity_service.pyw"" stop"; WorkingDir: "{app}"; StatusMsg: "Stopping the OpenSecurity Service"; Flags: runascurrentuser oliver@87: Filename: "{app}\python27\pythonw.exe"; Parameters: """{app}\bin\opensecurity_service.pyw"" remove"; WorkingDir: "{app}"; StatusMsg: "Removing the OpenSecurity Service"; Flags: runascurrentuser oliver@76: oliver@77: [UninstallDelete] oliver@77: Type: filesandordirs; Name: "{app}"