bugGNU Octave - Bugs: bug #54766, [mxe-octave] Provide an option to...


bug #54766: [mxe-octave] Provide an option to skip file association

Submitted by:  Pantxo Diribarne <pantxo>
Submitted on:  Tue 02 Oct 2018 12:40:14 PM UTC  
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Feature Request
Status:  Fixed Assigned to:  John Donoghue <lostbard>
Originator Name:  Open/Closed:  Closed
Release:  dev Operating System:  Microsoft Windows

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


( Jump to the original submission)

Sat 06 Oct 2018 01:19:16 AM UTC, comment #9: 

Closing as fixed

John Donoghue <lostbard>
Project MemberIn charge of this item.
Wed 03 Oct 2018 05:00:36 PM UTC, comment #8: 

You cannot expect IT depts. to follow what users do next with file associations when installing SW outside the IT dept's control. That is the issue here.

Anyway JohnD's fix should do the job just fine.

Philip Nienhuis <philipnienhuis>
Project Member
Wed 03 Oct 2018 12:32:01 PM UTC, comment #7: 
John Donoghue <lostbard>
Project MemberIn charge of this item.
Tue 02 Oct 2018 08:46:40 PM UTC, comment #6: 

@John: After thinking about it, detecting if .m is already a registered file type is the job of the IT service more than Octave's. In this regard, the proposed options would be perfect.

Pantxo Diribarne <pantxo>
Project Member
Tue 02 Oct 2018 08:38:46 PM UTC, comment #5: 

What about adding the following command line options to the installer:

/REGISTER_FILE_TYPES={0|1} - set state of the register file types checbox

/INSTALL_SHORTCUTS={0|1} - set state of the install desktop shortcuts

/INSTALL_ALL_USERS={0|1} - set state of the install all users shortcut

John Donoghue <lostbard>
Project MemberIn charge of this item.
Tue 02 Oct 2018 05:28:43 PM UTC, comment #4: 

That would also comply to Rik's favorite principle of least surprise.

Philip Nienhuis <philipnienhuis>
Project Member
Tue 02 Oct 2018 05:27:57 PM UTC, comment #3: 

I think the issue is that .m-file association to the Octave binary being installed is set by default (at least in the installation dialog but probably deeper down). It even affects other Octave installations already present.

Is it possible to invoke some registry call to see if .m file are already associated to some other program (e.g., Matlab or Freemat or ....) and if so don't make the default setting to associate .m to Octave?

Philip Nienhuis <philipnienhuis>
Project Member
Tue 02 Oct 2018 04:50:22 PM UTC, comment #2: 

Although I guess the additional part of that would be a way to control the value during silent mode

John Donoghue <lostbard>
Project MemberIn charge of this item.
Tue 02 Oct 2018 04:15:24 PM UTC, comment #1: 

There already is an option checkbox for Register .m file type with Octave

John Donoghue <lostbard>
Project MemberIn charge of this item.
Tue 02 Oct 2018 12:40:14 PM UTC, original submission:  

My lab provides an easy way to install Octave on windows systems: without any admin privilege one can use a home made software center to install Octave silently in one click.

An annoying side effect of installing Octave is that .m files are then associated to Octave and people who also use Matlab have to manually change this if they still want Matlab to be the main .m interpreter.

Now comes the request: could there be an option for skipping the file association step? Or even better, could the install script detect if .m is already associated to Matlab and skip the file association step in this case?

Pantxo Diribarne <pantxo>
Project Member


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by lostbard (Posted a comment)
  • -email is unavailable- added by pantxo (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-10-06 lostbard StatusReady For Test => Fixed
        Open/ClosedOpen => Closed
    2018-10-03 lostbard Assigned toNone => lostbard
    2018-10-03 lostbard StatusNone => Ready For Test

    Back to the top

    Powered by Savane 3.5