#213850 - 2020-04-20 10:37 PM
Check Firefox Version of Network Computers
|
Robdutoit
Hey THIS is FUN
 
Registered: 2012-03-27
Posts: 363
Loc: London, England
|
I am not sure what kixtart function I should be looking for here.
I have written a script that checks the registry for the Version of Firefox installed and it returns this value, which is what I want - PC01 Firefox 75.0 (x64 en-US)
$ReturnValue = ReadValue("HKEY_CURRENT_USER\SOFTWARE\Mozilla\Mozilla Firefox", "CurrentVersion")
IF Open( 3 , "c:\profiles\firefox.txt" , 5 ) = 0
$x = WriteLine( 3 , "%ComputerName%" + " Firefox " + $ReturnValue + @CRLF)
IF Close(3)
Beep
? "Error closing file!"
ENDIF
ELSE
BEEP
? "failed to open file, error code : [" + @ERROR + "]"
ENDIF
I know that I have done this some years ago where I was in the past able to tell the script to only write the computer name and status once, just updating that line each login, but I can't remember what I did. I guess I need to use Readline to find the line and overwrite it, but there doesn't seem to be a command to delete that line and rewrite it. So I must have done it differently. Once I have it working, I will change the location to somewhere on the server.
|
Top
|
|
|
|
#213854 - 2020-04-23 06:39 PM
Re: Check Firefox Version of Network Computers
[Re: Robdutoit]
|
ShaneEP
MM club member
   
Registered: 2002-11-29
Posts: 2125
Loc: Tulsa, OK
|
Is it a 64 bit issue? Have you tried changing the WOW64AlternateRegView option?
$nul = SetOption("WOW64AlternateRegView", "ON")
Edited by ShaneEP (2020-04-23 06:39 PM)
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 452 anonymous users online.
|
|
|