2018-10-23 15:50:22 +00:00
|
|
|
|
; Script generated by the Inno Script Studio Wizard.
|
|
|
|
|
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
|
|
|
|
|
|
|
|
|
#define MyAppName "loki-network"
|
2018-11-02 05:32:45 +00:00
|
|
|
|
#define MyAppVersion "0.3.0"
|
2018-10-23 15:50:22 +00:00
|
|
|
|
#define MyAppPublisher "Loki Project"
|
|
|
|
|
#define MyAppURL "https://loki.network"
|
|
|
|
|
#define MyAppExeName "lokinet.exe"
|
|
|
|
|
; change this to avoid compiler errors -despair
|
2018-10-30 10:19:34 +00:00
|
|
|
|
#define DevPath "D:\dev\external\llarp\"
|
2018-10-23 15:50:22 +00:00
|
|
|
|
#include <idp.iss>
|
|
|
|
|
|
2018-10-30 10:19:34 +00:00
|
|
|
|
; see ../LICENSE
|
2018-10-23 15:50:22 +00:00
|
|
|
|
|
|
|
|
|
[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={{11335EAC-0385-4C78-A3AA-67731326B653}
|
|
|
|
|
AppName={#MyAppName}
|
|
|
|
|
AppVersion={#MyAppVersion}
|
|
|
|
|
;AppVerName={#MyAppName} {#MyAppVersion}
|
|
|
|
|
AppPublisher={#MyAppPublisher}
|
|
|
|
|
AppPublisherURL={#MyAppURL}
|
|
|
|
|
AppSupportURL={#MyAppURL}
|
|
|
|
|
AppUpdatesURL={#MyAppURL}
|
2018-11-02 05:32:45 +00:00
|
|
|
|
DefaultDirName={pf}\{#MyAppPublisher}\{#MyAppName}
|
2018-10-23 15:50:22 +00:00
|
|
|
|
DefaultGroupName={#MyAppName}
|
|
|
|
|
AllowNoIcons=yes
|
2018-10-30 10:19:34 +00:00
|
|
|
|
LicenseFile={#DevPath}LICENSE
|
2018-10-23 15:50:22 +00:00
|
|
|
|
OutputDir={#DevPath}win32-setup
|
|
|
|
|
OutputBaseFilename=lokinet-win32
|
|
|
|
|
Compression=lzma
|
|
|
|
|
SolidCompression=yes
|
2018-10-30 10:19:34 +00:00
|
|
|
|
VersionInfoVersion=0.3.0
|
2018-10-23 15:50:22 +00:00
|
|
|
|
VersionInfoCompany=Loki Project
|
2018-11-02 05:32:45 +00:00
|
|
|
|
VersionInfoDescription=lokinet for windows
|
|
|
|
|
VersionInfoTextVersion=0.3.0-dev
|
2018-10-23 15:50:22 +00:00
|
|
|
|
VersionInfoProductName=loki-network
|
2018-10-30 10:19:34 +00:00
|
|
|
|
VersionInfoProductVersion=0.3.0
|
2018-11-02 05:32:45 +00:00
|
|
|
|
VersionInfoProductTextVersion=0.3.0-dev
|
2018-11-09 15:46:20 +00:00
|
|
|
|
InternalCompressLevel=ultra64
|
|
|
|
|
; rip D:
|
|
|
|
|
MinVersion=0,6.0
|
2018-10-30 10:19:34 +00:00
|
|
|
|
ArchitecturesInstallIn64BitMode=x64
|
2018-11-02 05:32:45 +00:00
|
|
|
|
VersionInfoCopyright=Copyright <20>2018 Loki Project
|
|
|
|
|
AlwaysRestart=yes
|
2018-10-23 15:50:22 +00:00
|
|
|
|
|
|
|
|
|
[Languages]
|
|
|
|
|
Name: "english"; MessagesFile: "compiler:Default.isl"
|
|
|
|
|
|
|
|
|
|
[Tasks]
|
|
|
|
|
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
|
|
|
|
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 0,6.1
|
2018-10-30 10:19:34 +00:00
|
|
|
|
|
|
|
|
|
[Files]
|
|
|
|
|
; we're grabbing the builds from jenkins-ci now, which are fully linked
|
2018-11-02 05:32:45 +00:00
|
|
|
|
; only one of these is installed
|
|
|
|
|
Source: "{#DevPath}build\lokinet.exe"; DestDir: "{app}"; Flags: ignoreversion 32bit; Check: not IsWin64
|
|
|
|
|
Source: "{#DevPath}build\lokinet64.exe"; DestDir: "{app}"; Flags: ignoreversion 64bit; Check: IsWin64
|
2018-10-30 10:19:34 +00:00
|
|
|
|
; eh, might as well ship the 32-bit port of everything else
|
|
|
|
|
Source: "{#DevPath}build\dns.exe"; DestDir: "{app}"; Flags: ignoreversion
|
|
|
|
|
Source: "{#DevPath}build\llarpc.exe"; DestDir: "{app}"; Flags: ignoreversion
|
|
|
|
|
Source: "{#DevPath}build\rcutil.exe"; DestDir: "{app}"; Flags: ignoreversion
|
|
|
|
|
; delet this after finishing setup, we only need it to extract the drivers
|
|
|
|
|
; and download an initial RC
|
|
|
|
|
Source: "{#DevPath}lokinet-bootstrap.exe"; DestDir: "{tmp}"; Flags: deleteafterinstall
|
|
|
|
|
Source: "{#DevPath}win32-setup\7z.exe"; DestDir: "{tmp}"; Flags: deleteafterinstall
|
|
|
|
|
; Copy the correct tuntap driver for the selected platform
|
2018-11-02 05:32:45 +00:00
|
|
|
|
Source: "{tmp}\tuntapv9_n6.7z"; DestDir: "{app}"; Flags: ignoreversion external deleteafterinstall; MinVersion: 0,6.0
|
2018-10-30 10:19:34 +00:00
|
|
|
|
|
|
|
|
|
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
|
|
|
|
|
2018-11-02 05:32:45 +00:00
|
|
|
|
[UninstallDelete]
|
|
|
|
|
Type: filesandordirs; Name: "{app}\tap-windows*"
|
|
|
|
|
Type: filesandordirs; Name: "{userappdata}\.lokinet"
|
|
|
|
|
|
2018-10-23 15:50:22 +00:00
|
|
|
|
[UninstallRun]
|
|
|
|
|
Filename: "{app}\tap-windows-9.21.2\remove.bat"; WorkingDir: "{app}\tap-windows-9.21.2"; MinVersion: 0,6.0; Flags: runascurrentuser
|
2018-10-30 10:19:34 +00:00
|
|
|
|
|
|
|
|
|
[Code]
|
|
|
|
|
procedure InitializeWizard();
|
|
|
|
|
begin
|
|
|
|
|
idpAddFile('https://github.com/despair86/loki-network/raw/master/contrib/tuntapv9-ndis/tap-windows-9.21.2.7z', ExpandConstant('{tmp}\tuntapv9_n6.7z'));
|
|
|
|
|
idpDownloadAfter(wpReady);
|
|
|
|
|
end;
|
|
|
|
|
|
2018-10-23 15:50:22 +00:00
|
|
|
|
[Icons]
|
|
|
|
|
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
|
|
|
|
|
Name: "{group}\{cm:ProgramOnTheWeb,{#MyAppName}}"; Filename: "{#MyAppURL}"
|
|
|
|
|
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
|
|
|
|
|
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
|
2018-11-02 05:32:45 +00:00
|
|
|
|
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: quicklaunchicon; OnlyBelowVersion: 0, 6.1
|
|
|
|
|
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: quicklaunchicon; MinVersion: 0, 6.1
|
|
|
|
|
|
|
|
|
|
[Run]
|
|
|
|
|
Filename: "{app}\{#MyAppExeName}"; Flags: nowait postinstall skipifsilent; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"
|
|
|
|
|
; wait until either one or two of these terminates
|
|
|
|
|
Filename: "{tmp}\7z.exe"; Parameters: "x tuntapv9_n6.7z"; WorkingDir: "{app}"; Flags: runascurrentuser waituntilterminated; Description: "extract TUN/TAP-v9 driver"; StatusMsg: "Extracting driver..."; MinVersion: 0, 6.0
|
|
|
|
|
Filename: "{tmp}\lokinet-bootstrap.exe"; WorkingDir: "{app}"; Flags: runascurrentuser waituntilterminated; Description: "bootstrap dht"; StatusMsg: "Downloading initial RC..."
|
|
|
|
|
; then ask to install drivers
|
2018-11-09 15:46:20 +00:00
|
|
|
|
Filename: "{app}\tap-windows-9.21.2\install.bat"; WorkingDir: "{app}\tap-windows-9.21.2\"; Flags: runascurrentuser waituntilterminated; Description: "Install TUN/TAP-v9 driver"; StatusMsg: "Installing driver..."; MinVersion: 0, 6.0
|