octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #59053] 6.0.90a: invalid path in Octave deskto


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #59053] 6.0.90a: invalid path in Octave desktop shortcuts if install dir was changed
Date: Tue, 8 Sep 2020 16:22:41 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #5, bug #59053 (project octave):


GNU Octave, version 6.0.90
Copyright (C) 2020 The Octave Project Developers.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type 'warranty'.

Octave was configured for "x86_64-w64-mingw32".

Additional information about Octave is available at https://www.octave.org.

Please contribute if you find this software useful.
For more information, visit https://www.octave.org/get-involved.html

Read https://www.octave.org/bugs.html to learn how to submit bug reports.
For information about changes from previous versions, type 'news'.

Processing <HOME>/.octaverc
linear-algebra load time = 0.124800
signal load time = 0.499204
io load time = 1.606809
mapping load time = 0.982807
Processing <HOME>/.octaverc complete
Total .octaverc processing time = 3.385221

>> octave_version = '';
rootpath = 'HKCU';
keypath = 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall';
[ok,txt] = system(sprintf('reg query %s\\%s', rootpath, keypath));
keys = strsplit(txt, {"\n", "\r"}, 'COLLAPSEDELIMITERS', true);
for i=1:length(keys)
  key = keys{i};
  if length(key) > 1
    tmp = strsplit(key, '\');
    if length(tmp) > 1 && strncmpi(tmp{end}, "octave", 6)
      octave_version = tmp{end};
    endif
  endif
endfor

>> try
  installpath = winqueryreg1(rootpath,[keypath '\' octave_version],
'InstallLocation');
catch
  installpath = winqueryreg(rootpath,[keypath '\' octave_version],
'UninstallString');
  [installpath,~] = fileparts(installpath);
  [installpath,~] = fileparts(installpath);
  installpath = strrep(installpath ,'"', '');
end_try_catch
printf("desktop octave path= %s\n", installpath)

error: winqueryreg: no value found for 'UninstallString' at
HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Octave-7.0.0
(Local).
>>


I have several local Octave releases installed, 4.2.0, 5.2.0, 6.0.90a (I think
all "formal" binaries) and about 2-3 dev versions. In those dev versions I
have stripped most of the uninstall stuff in makeinst_script.sh and they have
several other mods (install paths, Start Menu paths).

It looks like the 6.0.90a installed Octave picks up, or tries to pick up, the
dev versions' info (i.e., latest installation before 6.0.90a, which was a
7.0.0).

Am I right to conclude that it seems that current Windows installers (I mean
the "official" ones, not the modified I make) expect no other Octave
installations?


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59053>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]