Skip to content

Commit

Permalink
added installer for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
JvanKatwijk committed Jan 1, 2019
1 parent 58c0eb3 commit ddc685c
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 46 deletions.
44 changes: 0 additions & 44 deletions mocinclude.opt

This file was deleted.

4 changes: 2 additions & 2 deletions swradio-8.pro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
######################################################################
TEMPLATE = app
QT += widgets
CONFIG += console
CONFIG -= console
TARGET = swradio-8.0
QMAKE_CFLAGS += -ffast-math -g
QMAKE_CXXFLAGS += -ffast-math -g
Expand Down Expand Up @@ -121,7 +121,7 @@ LIBS += -lqwt-qt5 -lrt -lsndfile -lsamplerate -lportaudio -lusb-1.0 -lfftw3f -l
}

win32 {
DESTDIR = ../../windows-bin
DESTDIR = ../../windows-swradio
CONFIG += sdrplay
CONFIG += hackrf
CONFIG += rtlsdr
Expand Down
55 changes: 55 additions & 0 deletions swradio-installer.iss
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@

; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "swradio-8"
#define MyAppVersion "1.0"
#define MyAppPublisher "Lazy Chair Computing"
#define MyAppURL "https://github.com/JvanKatwijk/swradio-8"
#define MyAppExeName "swradio-8.0.exe";

[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId= {{47070962-772F-4D00-B28C-B5ED98DC6F2B}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\{#MyAppName}
DisableProgramGroupPage=yes
LicenseFile=E:\sdr-j-development\windows-swradio\COPYRIGHT.this_software
InfoBeforeFile=E:\sdr-j-development\windows-swradio\preamble.txt
OutputBaseFilename=setup-swradio
Compression=lzma
SolidCompression=yes

[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Files]
Source: "E:\sdr-j-development\windows-swradio\swradio-8.0.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\sdr-j-development\windows-swradio\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "E:\sdr-j-development\SDRplay_RSP_API-Windows-2.13.1.exe"; DestDir: "{app}"; AfterInstall : install_sdrplayApi

[Icons]
Name: "{commonprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon

[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent

[code]
procedure install_sdrplayApi;
var
resultCode : Integer;
begin
Exec (ExpandConstant('{app}\SDRplay_RSP_API-Windows-2.13.1.exe'), '', '', SW_SHOWNORMAL,
ewWaitUntilTerminated, ResultCode)
end;

0 comments on commit ddc685c

Please sign in to comment.