lollms-webui/scripts/wsl/lollms-installer-with-petals.iss

77 lines
3.5 KiB
Plaintext
Raw Normal View History

; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define MyAppName "lollms-with-petals"
#define MyAppVersion "6.5"
#define MyAppPublisher "ParisNeo"
#define MyAppURL "https://www.lollms.com/"
#define MyAppExeName "lollms_petals_runner.bat"
#define MyAppAssocName MyAppName + " File"
#define MyAppAssocExt ".myp"
#define MyAppAssocKey StringChange(MyAppAssocName, " ", "") + MyAppAssocExt
[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={{9B72D9BA-A2B5-472F-9FF3-A2481897E814}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={userappdata}\{#MyAppName}
ChangesAssociations=yes
DisableProgramGroupPage=yes
LicenseFile=../../LICENSE
2023-09-22 21:16:22 +00:00
InfoBeforeFile=./explainer.md.
2023-09-21 00:37:20 +00:00
InfoAfterFile=./README.md
; Remove the following line to run in administrative install mode (install for all users.)
PrivilegesRequired=lowest
OutputBaseFilename=lollms-with-petals
SetupIconFile=../../assets\logo.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: "{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
Source: "install_script.sh"; DestDir: "{app}"; Flags: ignoreversion
2023-09-22 21:16:22 +00:00
Source: "wsl_installer.bat"; DestDir: "{app}"; Flags: ignoreversion
Source: "ubuntu_installer.bat"; DestDir: "{app}"; Flags: ignoreversion
Source: "requirements_installer.bat"; DestDir: "{app}"; Flags: ignoreversion
Source: "lollms_petals_runner.bat"; DestDir: "{app}"; Flags: ignoreversion
Source: "run_script.sh"; DestDir: "{app}"; Flags: ignoreversion
Source: "ubuntu.bat"; DestDir: "{app}"; Flags: ignoreversion
2023-09-21 01:39:25 +00:00
Source: "petals_server.bat"; DestDir: "{app}"; Flags: ignoreversion
Source: "petals_server.sh"; DestDir: "{app}"; Flags: ignoreversion
2023-09-22 23:13:24 +00:00
Source: "uninstall.bat"; DestDir: "{app}"; Flags: ignoreversion
2023-09-21 00:43:12 +00:00
Source: "../../assets\logo.ico"; DestDir: "{app}"; Flags: ignoreversion
2023-09-21 01:39:25 +00:00
Source: "../../assets\ubuntu.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "../../assets\petals.ico"; DestDir: "{app}"; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
2023-09-22 21:16:22 +00:00
[Run]
Filename: "{app}\wsl_installer.bat"; Flags: shellexec waituntilterminated
Filename: "{app}\ubuntu_installer.bat"; Flags: shellexec waituntilterminated
Filename: "{app}\requirements_installer.bat"; Flags: shellexec waituntilterminated
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: shellexec postinstall skipifsilent
2023-09-22 23:13:24 +00:00
[UninstallRun]
Filename: "{app}\uninstall.bat"; Flags: shellexec; RunOnceId: 1
[Icons]
2023-09-21 00:43:12 +00:00
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; IconFilename: "{app}\logo.ico"
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon; IconFilename: "{app}\logo.ico"
2023-09-21 01:39:25 +00:00
Name: "{autodesktop}\ubuntu.bat"; Filename: "{app}\ubuntu.bat"; Tasks: desktopicon; IconFilename: "{app}\ubuntu.ico"
Name: "{autodesktop}\petals_server.bat"; Filename: "{app}\petals_server.bat"; Tasks: desktopicon; IconFilename: "{app}\petals.ico"