2019-04-29 02:36:03 +00:00
|
|
|
; Copyright 2019 Espressif Systems (Shanghai) PTE LTD
|
|
|
|
; SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
#pragma include __INCLUDE__ + ";" + ReadReg(HKLM, "Software\Mitrich Software\Inno Download Plugin", "InstallDir")
|
2018-04-24 08:23:57 +00:00
|
|
|
#include <idp.iss>
|
|
|
|
|
2019-04-29 02:36:03 +00:00
|
|
|
#define MyAppName "ESP-IDF Tools"
|
2019-09-23 03:45:49 +00:00
|
|
|
#define MyAppVersion "2.1"
|
2019-04-29 02:36:03 +00:00
|
|
|
#define MyAppPublisher "Espressif Systems (Shanghai) Co. Ltd."
|
|
|
|
#define MyAppURL "https://github.com/espressif/esp-idf"
|
|
|
|
|
|
|
|
#define PythonVersion "3.7"
|
|
|
|
#define PythonInstallerName "python-3.7.3-amd64.exe"
|
|
|
|
#define PythonInstallerDownloadURL "https://www.python.org/ftp/python/3.7.3/python-3.7.3-amd64.exe"
|
|
|
|
|
|
|
|
#define GitVersion "2.21.0"
|
|
|
|
#define GitInstallerName "Git-2.21.0-64-bit.exe"
|
|
|
|
#define GitInstallerDownloadURL "https://github.com/git-for-windows/git/releases/download/v2.21.0.windows.1/Git-2.21.0-64-bit.exe"
|
|
|
|
|
|
|
|
#define IDFVersionsURL "https://dl.espressif.com/dl/esp-idf/idf_versions.txt"
|
|
|
|
|
|
|
|
#define IDFCmdExeShortcutDescription "Open ESP-IDF Command Prompt (cmd.exe)"
|
|
|
|
#define IDFCmdExeShortcutFile "ESP-IDF Command Prompt (cmd.exe).lnk"
|
|
|
|
|
2018-04-24 08:23:57 +00:00
|
|
|
[Setup]
|
2019-04-29 02:36:03 +00:00
|
|
|
; 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={{9E068D99-5C4B-4E5F-96A3-B17CF291E6BD}
|
|
|
|
AppName={#MyAppName}
|
|
|
|
AppVersion={#MyAppVersion}
|
|
|
|
AppVerName={#MyAppName} {#MyAppVersion}
|
|
|
|
AppPublisher={#MyAppPublisher}
|
|
|
|
AppPublisherURL={#MyAppURL}
|
|
|
|
AppSupportURL={#MyAppURL}
|
|
|
|
AppUpdatesURL={#MyAppURL}
|
|
|
|
DefaultDirName={%USERPROFILE}\.espressif
|
2019-07-24 04:44:30 +00:00
|
|
|
UsePreviousAppDir=no
|
2019-04-29 02:36:03 +00:00
|
|
|
DirExistsWarning=no
|
|
|
|
DefaultGroupName=ESP-IDF
|
|
|
|
DisableProgramGroupPage=yes
|
2018-10-01 06:22:07 +00:00
|
|
|
OutputBaseFilename=esp-idf-tools-setup-unsigned
|
2019-04-29 02:36:03 +00:00
|
|
|
Compression=lzma
|
2018-04-24 08:23:57 +00:00
|
|
|
SolidCompression=yes
|
|
|
|
ArchitecturesAllowed=x64
|
|
|
|
ArchitecturesInstallIn64BitMode=x64
|
2019-04-29 02:36:03 +00:00
|
|
|
LicenseFile=license.txt
|
|
|
|
PrivilegesRequired=lowest
|
|
|
|
SetupLogging=yes
|
|
|
|
ChangesEnvironment=yes
|
|
|
|
WizardStyle=modern
|
|
|
|
|
|
|
|
[Languages]
|
|
|
|
Name: "english"; MessagesFile: "compiler:Default.isl"
|
2018-04-24 08:23:57 +00:00
|
|
|
|
2019-04-29 02:36:03 +00:00
|
|
|
[Dirs]
|
|
|
|
Name: "{app}\dist"
|
2018-04-24 08:23:57 +00:00
|
|
|
|
|
|
|
[Files]
|
2019-04-29 02:36:03 +00:00
|
|
|
Source: "cmdlinerunner\build\cmdlinerunner.dll"; Flags: dontcopy
|
|
|
|
Source: "unzip\7za.exe"; Flags: dontcopy
|
|
|
|
Source: "idf_versions.txt"; Flags: dontcopy
|
|
|
|
Source: "..\..\idf_tools.py"; DestDir: "{app}"; DestName: "idf_tools_fallback.py"
|
2019-06-26 07:27:14 +00:00
|
|
|
; Note: this tools.json matches the requirements of IDF v3.x versions.
|
|
|
|
Source: "tools_fallback.json"; DestDir: "{app}"; DestName: "tools_fallback.json"
|
2019-04-29 02:36:03 +00:00
|
|
|
Source: "idf_cmd_init.bat"; DestDir: "{app}"
|
|
|
|
Source: "dist\*"; DestDir: "{app}\dist"
|
2019-08-20 06:37:45 +00:00
|
|
|
Source: "tools_WD_excl.ps1"; DestDir: "{app}\dist"
|
|
|
|
Source: "tools_WD_clean.ps1"; DestDir: "{app}\dist"
|
2019-04-29 02:36:03 +00:00
|
|
|
|
|
|
|
[UninstallDelete]
|
|
|
|
Type: filesandordirs; Name: "{app}\dist"
|
|
|
|
Type: filesandordirs; Name: "{app}\releases"
|
|
|
|
Type: filesandordirs; Name: "{app}\tools"
|
|
|
|
Type: filesandordirs; Name: "{app}\python_env"
|
2018-04-24 08:23:57 +00:00
|
|
|
|
2019-08-20 06:37:45 +00:00
|
|
|
[Tasks]
|
|
|
|
Name: createlnk; Description: "Create Desktop shortcut for ESP-IDF Tools Command Line";
|
|
|
|
Name: wdexcl; Description: "Register ESP-IDF Tools executables as Windows Defender exclusions (improves compilation speed, requires elevation)";
|
|
|
|
|
2018-04-24 08:23:57 +00:00
|
|
|
[Run]
|
2019-04-29 02:36:03 +00:00
|
|
|
Filename: "{app}\dist\{#PythonInstallerName}"; Parameters: "/passive PrependPath=1 InstallLauncherAllUsers=0 Include_dev=0 Include_tcltk=0 Include_launcher=0 Include_test=0 Include_doc=0"; Description: "Installing Python"; Check: PythonInstallRequired
|
|
|
|
Filename: "{app}\dist\{#GitInstallerName}"; Parameters: "/silent /tasks="""" /norestart"; Description: "Installing Git"; Check: GitInstallRequired
|
|
|
|
Filename: "{group}\{#IDFCmdExeShortcutFile}"; Flags: postinstall shellexec; Description: "Run ESP-IDF Command Prompt (cmd.exe)"; Check: InstallationSuccessful
|
2018-04-24 08:23:57 +00:00
|
|
|
|
2019-08-20 06:37:45 +00:00
|
|
|
|
|
|
|
[UninstallRun]
|
|
|
|
Filename: "powershell.exe"; \
|
|
|
|
Parameters: "-ExecutionPolicy Bypass -File ""{app}\dist\tools_WD_clean.ps1"" -RmExclPath ""{app}"""; \
|
|
|
|
WorkingDir: {app}; Flags: runhidden
|
|
|
|
|
|
|
|
[Registry]
|
2019-04-29 02:36:03 +00:00
|
|
|
Root: HKCU; Subkey: "Environment"; ValueType: string; ValueName: "IDF_TOOLS_PATH"; \
|
2019-07-24 04:44:30 +00:00
|
|
|
ValueData: "{app}"; Flags: preservestringtype createvalueifdoesntexist uninsdeletevalue deletevalue;
|
2018-04-24 08:23:57 +00:00
|
|
|
|
|
|
|
[Code]
|
2019-04-29 02:36:03 +00:00
|
|
|
#include "utils.iss.inc"
|
|
|
|
#include "choice_page.iss.inc"
|
|
|
|
#include "cmdline_page.iss.inc"
|
|
|
|
#include "idf_page.iss.inc"
|
|
|
|
#include "git_page.iss.inc"
|
|
|
|
#include "python_page.iss.inc"
|
|
|
|
#include "idf_download_page.iss.inc"
|
|
|
|
#include "idf_setup.iss.inc"
|
|
|
|
#include "summary.iss.inc"
|
|
|
|
#include "main.iss.inc"
|