Hi Greg, All good ideas. Sometimes I like to go directly to the app’s own installed registry key to determine installation status/version/etc. You should be able to use the appropriate commands in either batch (reg.exe) or PowerShell.
32-bit: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mozilla\Mozilla Firefox\(Default) 64-bit: HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\Mozilla Firefox\(Default) PowerShell example: $FFversion32 = (Get-ItemProperty 'HKLM:\SOFTWARE\Wow6432Node\Mozilla\Mozilla Firefox').'(Default)' $FFversion64 = (Get-ItemProperty 'HKLM:\SOFTWARE\Mozilla\Mozilla Firefox').'(Default)' -- Scott Copus, Lab Systems Engineer Academic Technology | Western Kentucky University http://www.wku.edu/it/labs From: Enterprise [mailto:[email protected]] On Behalf Of carré, denis Sent: Wednesday, September 06, 2017 8:28 AM To: carré, denis <[email protected]>; 'Greg Haines' <[email protected]>; [email protected] Subject: Re: [Mozilla Enterprise] Check Installed Firefox Version with CMD or Powershell Sorry, I sent my message too fast, For the version (which was the subject …) I use this : $FirefoxVersion = ( gp HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\firefox*, HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Firefox*).DisplayVersion (in case you would have 32 or 64 bits versions) Or $FirefoxVersion = (get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\firefox*).DisplayVersion (if only 32bits) You can get the version from the previous var $FirefoxExe by starting it with -v arg : $FirefoxVersion = & $FirefoxExe "-v" | write-output Réponse ou transfert de la part de Denis CARRE De : Enterprise [mailto:[email protected]] De la part de carré, denis Envoyé : mercredi 6 septembre 2017 14:31 À : 'Greg Haines' <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]> Objet : Re: [Mozilla Enterprise] Check Installed Firefox Version with CMD or Powershell Hi, I personnaly use the following in some PS scripts : $FirefoxExe = (Get-ItemProperty -Path "hklm:software\microsoft\windows\currentversion\App Paths\firefox.exe").'(default)' (full path to binary firefox.exe) $FirefoxPath = (Get-ItemProperty -Path "hklm:software\microsoft\windows\currentversion\App Paths\firefox.exe").Path (full path to the folder containing firefox.exe) Don’t know if that’s the best or more esthetic way of doing it, but it’s proven to work well. Réponse ou transfert de la part de Denis CARRE De : Enterprise [mailto:[email protected]] De la part de Greg Haines Envoyé : mercredi 6 septembre 2017 11:36 À : [email protected]<mailto:[email protected]> Objet : [Mozilla Enterprise] Check Installed Firefox Version with CMD or Powershell Hi Guys How do i check via the command line or Powershell in Windows what version of Firefox is being used? Cant seem to find anything online that actually works. Thanks -- Greg Haines Systems Administrator End User Operations Technology Department [email protected]<mailto:[email protected]> Telegraphmediagroup | 111 Buckingham Palace Road, London SW1W 0DT The contents of this message and any attachments to it are private, confidential and may be the subject of legal privilege. Telegraph Media Group Limited is registered in England and Wales (company number 451593) at 111 Buckingham Palace Road, London, SW1W 0DT. If you are not the intended recipient of this email please inform us and the sender immediately. You must not take any action based upon the contents of this email, nor copy it or show it to anyone. Any unauthorised disclosure, use or dissemination of the whole or part of the message contained in such email is prohibited. Any views or opinions expressed do not necessarily represent those of Telegraph Media Group Limited. It is the recipient’s responsibility to carry out any virus checking. [Image supprimée par l'expéditeur.]
_______________________________________________ Enterprise mailing list [email protected] https://mail.mozilla.org/listinfo/enterprise To unsubscribe from this list, please visit https://mail.mozilla.org/listinfo/enterprise or send an email to [email protected] with a subject of "unsubscribe"

