Files

56 lines
2.1 KiB
Plaintext

; Inno Setup script for Dev Assist Chatbot.
;
; Build the app first (packaging/build.spec), then compile this with the
; Inno Setup Compiler (ISCC.exe) or the IDE, from the repo root:
;
; iscc packaging\installer.iss
;
; Output lands in packaging\Output\DevAssistChatbot-Setup.exe.
#define MyAppName "Dev Assist Chatbot"
#define MyAppVersion "0.1.0"
#define MyAppExeName "DevAssistChatbot.exe"
[Setup]
AppId={{A9F1D6C2-4B3E-4A7F-9C1D-3E5B7A2F8D41}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
DefaultDirName={autopf}\{#MyAppName}
DefaultGroupName={#MyAppName}
DisableProgramGroupPage=yes
OutputDir=Output
OutputBaseFilename=DevAssistChatbot-Setup
Compression=lzma2
SolidCompression=yes
ArchitecturesAllowed=x64compatible
ArchitecturesInstallIn64BitMode=x64compatible
WizardStyle=modern
[Tasks]
Name: "desktopicon"; Description: "Create a &desktop icon"; GroupDescription: "Additional icons:"
[Files]
Source: "..\dist\DevAssistChatbot\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; Optional: bundle the VC++ redistributable for machines that don't already
; have it (most Windows 11 installs do, via Windows Update or another app).
; Download it from https://aka.ms/vs/17/release/vc_redist.x64.exe, place it
; at packaging\redist\vc_redist.x64.exe, then uncomment these two lines and
; the matching [Run] entry below.
; Source: "redist\vc_redist.x64.exe"; DestDir: "{tmp}"; Flags: deleteafterinstall
[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
[Run]
; Filename: "{tmp}\vc_redist.x64.exe"; Parameters: "/install /quiet /norestart"; StatusMsg: "Installing Visual C++ runtime..."; Check: not VCRedistInstalled
Filename: "{app}\{#MyAppExeName}"; Description: "Launch {#MyAppName}"; Flags: nowait postinstall skipifsilent
[Code]
function VCRedistInstalled: Boolean;
begin
// Present once the VC++ 2015-2022 x64 runtime is installed (also true on
// most Windows 11 machines already, via Windows Update or another app).
Result := RegKeyExists(HKLM64, 'SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\X64');
end;