Attached is an example script for Inno Setup (https://jrsoftware.org/)
to build a self installer.

It can be adapted I think at configure time if it is added to the
contrib directory for example.

With a very simple .ico file

Le lun. 13 mai 2024 à 01:43, Grégory Vanuxem <[email protected]> a écrit :
>
> Hello folks,
>
> Below is a link to a Windows setup program to install FriCAS, usually
> in "USER_HOME"/AppData/local/programs/.
>
> A FriCAS start menu entry is added, and optionally it can also create
> a desktop icon. The icon used is an old one I created before an
> official icon was chosen.
>
> Starting FriCAS will open a Microsoft Windows Terminal running it. I
> just partially reverted a commit [1] to allow running
> 'series(sin(x))*1.0' but this is unsatisfactory.
>
> Please give it a try, for example it is compiled with GMP integer
> multiplication support but I don't know how it behaves in other
> settings than me.
>
> https://drive.google.com/file/d/1sRNXFCBvrD70ISbTyKEpHuOoUmFA7V4G/view?usp=sharing
>
> wget or curl need special parameters to download it, but even with a
> good link for them, I don't think you will be able to download it
> because of Google anti-virus settings. Use a browser instead.
>
> - Greg
>
> [1] src/interp/macros.lisp - line 224:
> ;(defun GLESSEQP (X Y) (|lt_sexp| X Y))
> (defun GLESSEQP (X Y) (NOT (GGREATERP X Y)))

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/fricas-devel/CAHnU2dZDAnnP%2Bk4%2Bz78wn6TPwBgxjtZgcWa5zA0Q%3DMMMGS%3DZgg%40mail.gmail.com.
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "FriCAS"
#define MyAppVersion "1.3.11-dev"
#define MyAppPublisher "FriCAS"
#define MyAppExeName "FRICASsys.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={{4A88BF6F-E852-4FC0-B5CD-8B43E0FB03AE}}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
AppVerName={#MyAppName}-{#MyAppVersion}
AppPublisher={#MyAppPublisher}
DefaultDirName={autopf}\{#MyAppName}
DisableProgramGroupPage=yes
LicenseFile=C:\msys64\home\gregv\fricas\LICENSE.txt
; Uncomment the following line to run in non administrative install mode 
(install for current user only.)
;PrivilegesRequired=lowest
PrivilegesRequiredOverridesAllowed=dialog
OutputDir=C:\Users\gregv
SetupIconFile=C:\Users\gregv\Pictures\FriCAS.ico
Compression=lzma
SolidCompression=yes
WizardStyle=modern

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

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

[Files]
;Source: 
"C:\msys64\mingw64\lib\fricas\target\x86_64-w64-mingw32\bin\{#MyAppExeName}"; 
DestDir: "{app}"; Flags: ignoreversion
Source: "C:\msys64\mingw64\lib\fricas\*"; DestDir: "{app}"; Flags: 
ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Name: "{autoprograms}\{#MyAppName}"; Filename: 
"{app}\target\x86_64-w64-mingw32\bin\{#MyAppExeName}";IconFilename: 
"{app}\target\x86_64-w64-mingw32\share\FriCAS.ico"
Name: "{autodesktop}\{#MyAppName}"; Filename: 
"{app}\target\x86_64-w64-mingw32\bin\{#MyAppExeName}";IconFilename: 
"{app}\target\x86_64-w64-mingw32\share\FriCAS.ico"; Tasks: desktopicon

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

Reply via email to