[jawsscripts] Re: Obtaining a list of installed Jaws versions

  • From: Artur Räpp <rtr@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Fri, 15 Jul 2016 09:44:56 +0300

Hi,

I don't know, only guess that users scripts are allowed  to read  only from
registry Local user part.

First two functions give results for me (JAWS 17, Win 10 64bit), the third
one does not.

SayInteger(GetRegistryEntryDWORD(1, "SOFTWARE\\Freedom
Scientific\\JAWS\\17.0", "MainWindowY")) 
sayString(GetRegistryEntryString (1, "SOFTWARE\\Freedom
Scientific\\JAWS\\17.0\\ResearchIt", "LastLookupSource"))
sayString(GetRegistryEntryString (2, "SOFTWARE\\Freedom
Scientific\\JAWS\\17.0", "Target"))

HTH
Artur
-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Paul Magill
Sent: Friday, July 15, 2016 7:17 AM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Obtaining a list of installed Jaws versions

Hi Gary and others,

Thank you Gary for the information about trying the to get the versions from
the registry. I hadn't thought of that.

There appears to be only 2 JAWS functions for obtaining information from the
registry, one for integers, and one for strings.

I realise more will be required, but I tried the below as a starting point,
seeking to obtain at least 1 version, but nothing was returned...

SayString ( GetRegistryEntryString (2, "\\software\\Freedom
Scientific\\Jaws", "ProgramFilesDir"))

I tried this with and without backslashes at each end of the path, and found
the "ProgramFilesDir" in a FS script, but could only get empty strings
returned.

Have I missed something?

Is there another approach to getting a list of installed Jaws versions?

Thank you,
Paul from Australia.

-----Original Message- From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Gary Campbell

Hi Paul,


In my installer I enumerate the subkeys in "HKLM\software\Freedom
Scientific\Jaws" and keep the ones that start with a digit.  I'm sure you
can do that with a script, but I haven't looked at the scripting functions
for working with the registry in a long time, and I don't think NSIS code
would probably help you much.  I don't have time right now to look at your
code carefully but I'm surprised you aren't getting the .0 on the end of the
list items.


Good luck!


Gary Campbell

On 7/7/2016 10:35 PM, Paul Magill wrote:


Hi all,
  

I am trying to get a list of the installed versions of Jaws from 
within a script.

  

I tried the below:

  

LET JawsFolder = GetJAWSDirectory ()

LET CurrentVersion = StringSegment (JawsFolder, "\\", -1) ; gave me
15.0

let JawsFolder = StringReplaceSubstrings (JawsFolder, CurrentVersion,
"*.*")


let JawsVersionList = FileNameList (JawsFolder, "|")

  

which partially worked, in that the list had the basic version 
numbers,
13|14|15, but with the decimal and what follows clipped off.

  

I don't think that just appending the .0 is suitable, as there may 
later be a version, as there has been in the past, where the path 
contains a .3 or .5 etc.

  

Is there another way of doing this, so I get the full version number 
as in the folder path, such as 13.0|14.0|15.0 etc.

  

With thanks in advance,

Paul from Australia

  

  

  

  

  

  

  

  

  

  



__________�

View the list's information and change your settings at 
//www.freelists.org/list/jawsscripts


__________�

View the list's information and change your settings at
//www.freelists.org/list/jawsscripts

__________�

View the list's information and change your settings at
//www.freelists.org/list/jawsscripts

__________�

View the list's information and change your settings at 
//www.freelists.org/list/jawsscripts

Other related posts: