Added inno setup installer for FreeDV. Renamed program to 'SmartSDR FreeDV Waveform'.

This commit is contained in:
Abed Haque 2015-09-08 17:15:06 -05:00
parent f616cc6150
commit b8977d6f21
5 changed files with 131 additions and 5 deletions

View file

@ -47,7 +47,7 @@
this.ClientSize = new System.Drawing.Size(284, 112);
this.Controls.Add(this.label1);
this.Name = "Form1";
this.Text = "FreeDV";
this.Text = "SmartSDR FreeDV Waveform";
this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false);
this.PerformLayout();

View file

@ -9,7 +9,7 @@
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>FreeDV</RootNamespace>
<AssemblyName>FreeDV</AssemblyName>
<AssemblyName>SmartSDR_FreeDV_Waveform</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
<FileAlignment>512</FileAlignment>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 361 KiB

After

Width:  |  Height:  |  Size: 361 KiB

View file

@ -5,12 +5,12 @@ using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("FreeDV")]
[assembly: AssemblyTitle("SmartSDR FreeDV Waveform")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("FlexRadio Systems")]
[assembly: AssemblyProduct("FreeDV")]
[assembly: AssemblyCopyright("Copyright © FlexRadio Systems 2014")]
[assembly: AssemblyProduct("SmartSDR_FreeDV_Waveform")]
[assembly: AssemblyCopyright("Copyright © FlexRadio Systems 2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

View file

@ -0,0 +1,126 @@
;
; INNO Setup Compiler Script
; for SmartSDR FreeDV Waveform and GUI
; Author: Mark Hanson, AA3RK
;
#define MyAppName "SmartSDR FreeDV Waveform"
#define MyAppVersion "1.5.0.6"
#define MyAppVersionWithV "v1.5.0.6"
#define MyAppPublisher "FlexRadio Systems"
#define MyAppURL "http://www.flexradio.com/"
#define MyAppExeName "SmartSDR_FreeDV_Waveform.exe"
[Setup]
AppId={{2AA4AC17-A170-4825-9BE9-D9974CCC9444}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
VersionInfoVersion={#MyAppVersion}
AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\{#MyAppPublisher}\{#MyAppName} {#MyAppVersionWithV}
DisableDirPage=yes
DefaultGroupName=FreeDV Waveform
DisableProgramGroupPage=yes
OutputBaseFilename=FreeDV_Waveform_Installer
SetupIconFile=..\CODEC2 GUI\Images\FDVLogo.ico
Compression=lzma
SolidCompression=yes
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}";
[Files]
Source: "..\CODEC2 GUI\bin\Release\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\CODEC2 GUI\bin\Release\Flex.UiWpfFramework.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\CODEC2 GUI\bin\Release\FlexLib.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\CODEC2 GUI\bin\Release\Ionic.Zip.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\CODEC2 GUI\bin\Release\Util.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\CODEC2 GUI\bin\Release\Vita.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\CODEC2 GUI\Images\FDVLogo.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\..\..\DSP_API\Waveform\FreeDV.ssdr_waveform"; DestDir: "{userappdata}\FlexRadio Systems\Waveforms\"; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
Name: "{commonprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; IconFilename: "{app}\FDVLogo.ico"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon; IconFilename: "{app}\FDVLogo.ico"
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
[Code]
const
// constants for Firewall access exception
NET_FW_ACTION_ALLOW = 1;
NET_FW_IP_PROTOCOL_TCP = 6;
NET_FW_IP_PROTOCOL_UDP = 17;
NET_FW_SCOPE_ALL = 0;
NET_FW_IP_VERSION_ANY = 2;
NET_FW_PROFILE_DOMAIN = 0;
NET_FW_PROFILE_STANDARD = 1;
//===========================================================================
procedure SetFirewallExceptionVista(AppName,FileName:string);
//===========================================================================
//create SmartSDR wirewall in-bound exception for Vista and greater
var
FirewallRule: Variant;
FirewallPolicy: Variant;
begin
try
FirewallRule := CreateOleObject('HNetCfg.FWRule');
FirewallRule.Name := AppName;
FirewallRule.Description := 'UDP In-bound Firewall rule for SmartSDR FreeDV Waveform';
FirewallRule.ApplicationName := FileName;
FirewallRule.Protocol := NET_FW_IP_PROTOCOL_UDP;
FirewallRule.EdgeTraversal := True;
FirewallRule.Action := NET_FW_ACTION_ALLOW;
FirewallRule.Enabled := True;
// FirewallRule.InterfaceTypes := 'All';
FirewallPolicy := CreateOleObject('HNetCfg.FwPolicy2');
FirewallPolicy.Rules.Add(FirewallRule);
except
end;
try
FirewallRule := CreateOleObject('HNetCfg.FWRule');
FirewallRule.Name := AppName;
FirewallRule.Description := 'TCP In-bound Firewall rule for SmartSDR FreeDV Waveform';
FirewallRule.ApplicationName := FileName;
FirewallRule.Protocol := NET_FW_IP_PROTOCOL_TCP;
FirewallRule.EdgeTraversal := True;
FirewallRule.Action := NET_FW_ACTION_ALLOW;
FirewallRule.Enabled := True;
// FirewallRule.InterfaceTypes := 'All';
FirewallPolicy := CreateOleObject('HNetCfg.FwPolicy2');
FirewallPolicy.Rules.Add(FirewallRule);
except
end;
end;
//===========================================================================
procedure CurStepChanged(CurStep: TSetupStep);
//===========================================================================
// runs after setup completes FreeDV Waveform
begin
if (CurStep=ssInstall) then
begin
// Add Vista and greater Firewall rules
SetFirewallExceptionVista('{#SetupSetting("AppVerName")}', ExpandConstant('{app}')+'\{#MyAppExeName}');
end;
end;