[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: |
John Donoghue |
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 15:51:05 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.18363 |
Follow-up Comment #4, bug #59053 (project octave):
It doesnt seem to to do it for me - are thier other local installs on your
computer ?
If you run the following, what does it display:
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)
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?59053>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #59053] 6.0.90a: invalid path in Octave desktop shortcuts if install dir was changed, Philip Nienhuis, 2020/09/01
- [Octave-bug-tracker] [bug #59053] 6.0.90a: invalid path in Octave desktop shortcuts if install dir was changed, John Donoghue, 2020/09/08
- [Octave-bug-tracker] [bug #59053] 6.0.90a: invalid path in Octave desktop shortcuts if install dir was changed, John Donoghue, 2020/09/08
- [Octave-bug-tracker] [bug #59053] 6.0.90a: invalid path in Octave desktop shortcuts if install dir was changed, Philip Nienhuis, 2020/09/08
- [Octave-bug-tracker] [bug #59053] 6.0.90a: invalid path in Octave desktop shortcuts if install dir was changed,
John Donoghue <=
- [Octave-bug-tracker] [bug #59053] 6.0.90a: invalid path in Octave desktop shortcuts if install dir was changed, Philip Nienhuis, 2020/09/08
- [Octave-bug-tracker] [bug #59053] 6.0.90a: invalid path in Octave desktop shortcuts if install dir was changed, John Donoghue, 2020/09/08
- [Octave-bug-tracker] [bug #59053] 6.0.90a: invalid path in Octave desktop shortcuts if install dir was changed, Philip Nienhuis, 2020/09/08
- [Octave-bug-tracker] [bug #59053] 6.0.90a: invalid path in Octave desktop shortcuts if install dir was changed, John Donoghue, 2020/09/08
- [Octave-bug-tracker] [bug #59053] 6.0.90a: invalid path in Octave desktop shortcuts if install dir was changed, Rik, 2020/09/16
- [Octave-bug-tracker] [bug #59053] 6.0.90a: invalid path in Octave desktop shortcuts if install dir was changed, Philip Nienhuis, 2020/09/16
- [Octave-bug-tracker] [bug #59053] 6.0.90a: invalid path in Octave desktop shortcuts if install dir was changed, John Donoghue, 2020/09/17
- [Octave-bug-tracker] [bug #59053] 6.0.90a: invalid path in Octave desktop shortcuts if install dir was changed, Philip Nienhuis, 2020/09/17
- [Octave-bug-tracker] [bug #59053] 6.0.90a: invalid path in Octave desktop shortcuts if install dir was changed, John Donoghue, 2020/09/17