Bump versions, fix installers

This commit is contained in:
Gašper Fele-Žorž 2025-08-15 23:04:26 +02:00
parent fc56d17bb6
commit e845b92ce0
24 changed files with 267 additions and 116 deletions

View file

@ -1,6 +1,6 @@
- name: Set Matlab version and destination
set_fact:
target_version: "R2024a_Update_5"
target_version: "R2025a_Update_1"
install_dir: "/mnt/ucilnice_d/install/matlab/"
license_path: "/mnt/ucilnice_d/install/matlab/network.lic"
dest_dir: /opt/matlab
@ -23,7 +23,7 @@
- name: Install Matlab
command:
cmd: /tmp/matlab_iso/install -inputFile "/tmp/matlab_installer_input.txt"
# creates: "{{ dest_dir }}/VersionInfo.xml"
creates: "{{ dest_dir }}/licenses/license_info.xml"
#- name: Unmount Matlab ISO
# win_disk_image:
# image_path: "{{ installers }}\\matlab\\matlab-{{ target_version }}_windows.iso"

View file

@ -2,7 +2,7 @@
set_fact:
target_version: "R2025a_Update_1"
license_path: \\ucilnicesmb.fri1.uni-lj.si\ucilnice_d\install\matlab\network.lic
dest_dir: D:\matlab
dest_dir: C:\matlab
- name: Set ISO path
set_fact:
@ -17,21 +17,27 @@
- name: Prepare installer_input.txt
template:
src: installer_input.txt
dest: d:\matlab_installer_input.txt
dest: c:\matlab_installer_input.txt
- name: Install Matlab
win_package:
path: "{{ disk_image.mount_paths[0] }}\\setup.exe"
arguments: -inputFile "d:\\matlab_installer_input.txt"
arguments: -inputFile "c:\\matlab_installer_input.txt"
- name: Unmount Matlab ISO
win_disk_image:
image_path: "{{ iso_path }}"
state: absent
ignore_errors: true
# TODO MATLAB throws license error -83 when run
- name: Install Matlab license
win_copy:
dest: "{{ dest_dir }}\\licenses\\network.lic"
src: "{{ installers }}\\matlab\\network.lic"
remote_src: yes
- name: Create licenses directory
win_file:
dest: "{{ dest_dir }}\\licenses"
state: directory
# MATLAB will no longer be used with concurrent licenses - let them license their own!
#- name: Install Matlab license
# win_copy:
# dest: "{{ dest_dir }}\\licenses\\network.lic"
# src: "{{ installers }}\\matlab\\network.lic"
# remote_src: yes

View file

@ -13,7 +13,8 @@ agreeToLicense=yes
## Users must log in to their MathWorks Account when MATLAB starts.
##
## NOTE: This flag is valid in silent installations only.
enableLNU=no
# enableLNU=no
enableLNU=yes
improveMATLAB=no