Get Microsoft Edge Browser Version using registry or command line - microsoft-edge

How can i get microsoft edge browser version using registry or command line?
I don't want to take it from UI.

For Microsoft Edge Legacy, you can get the version from PowerShell with Get-AppxPackage:
> (Get-AppxPackage Microsoft.MicrosoftEdge).Version
44.18214.1000.0
If you want to call this from cmd.exe, you can just call Powershell:
> powershell.exe "(Get-AppxPackage Microsoft.MicrosoftEdge).Version"
44.18214.1000.0

In Windows
The first of all, you need to get the path of the .exe file of the application.
use Get-Item
It is just like Get-AppxPackage. And get the version by adding .VersionInfo.
> (Get-Item "C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe").VersionInfo
ProductVersion FileVersion FileName
-------------- ----------- --------
85.0.564.63 85.0.564.63 C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
use wmic
wmic can get the information of the application. And we set the name key for which application you want to check.
> wmic datafile where 'name="C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe"'
AccessMask Archive Caption Compressed CompressionMethod CreationClassName CreationDate CSCreationClassName CSName Description Drive EightDotThreeFileName Encrypted EncryptionMethod Extension FileName FileSize FileType FSCreationClassName FSName Hidden InstallDate InUseCount LastAccessed LastModified Manufacturer Name Path Readable Status System Version Writeable
1179817 TRUE C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe FALSE CIM_LogicalFile 20200924185451.733609+480 Win32_ComputerSystem DESKTOP-QCUDFJL C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe c: c:\program files (x86)\microsoft\edge\application\msedge.exe FALSE exe msedge 2882448 Application Win32_FileSystem NTFS FALSE 20200924185451.733609+480 20200928200140.091076+480 20200923164851.469016+480 Microsoft Corporation C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe \program files (x86)\microsoft\edge\application\ TRUE OK FALSE 85.0.564.63 TRUE
And then, filter the result by adding get {key} at the end of command.
> wmic datafile where 'name="C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe"' get version
Version
85.0.564.63
In MacOS
use --version
The application is executed from /Applications/"Microsoft Edge.app"/Contents/MacOS/"Microsoft Edge. Therefor, we can command like the bottom.
$ /Applications/"Microsoft Edge.app"/Contents/MacOS/"Microsoft Edge" --version
Microsoft Edge 85.0.564.63

The older answers to this question seem to address Edge Legacy to the exclusion of Edge Chromium (which is now standard). Adding this answer to more fully outline current options targeting Edge Chromium, specifically.
Windows via Registry
For Windows systems, reading the Edge version from the registry is probably your best bet, since it's consistent even when the installation path varies. Some command-line for reading the installed version of Edge Chromium from the registry. There are a few options for that.
Using Powershell:
(Get-ItemProperty -Path HKCU:\Software\Microsoft\Edge\BLBeacon -Name version).version
Using Powershell and Windows Script Host:
(New-Object -ComObject WScript.Shell).RegRead("HKCU\Software\Microsoft\Edge\BLBeacon\version")
Using Reg Query:
reg query HKCU\Software\Microsoft\Edge\BLBeacon /v version
Windows via Executable
If you have more than one instance of Edge installed (for example, an Edge Dev Channel build) and you want to get the version of a specific installation, you can access the VersionInfo metadata of the Edge executable.
Using Powershell:
(Get-Item "C:\Program Files (x86)\Microsoft\Edge Dev\Application\msedge.exe").VersionInfo.FileVersion
Using the WMIC tool:
(Note that escaping is required when translating the EXE path into the WMI query)
wmic datafile where 'name="C:\\Program Files (x86)\\Microsoft\\Edge Dev\\Application\\msedge.exe"' get Version
Non-Windows via App Binary
For non-Windows installations, running the binary from your shell with the --version flag seems to be the best bet. Your path may vary.
Ubuntu example:
/usr/bin/microsoft-edge --version
Mac OSX example:
/Applications/Microsoft\ Edge.app/Contents/MacOS/Microsoft\ Edge --version
Via Package Managers:
Especially on Linux installations, where Edge is likely to have been installed using a standard package manager, version querying via package management is also a solid option.
Note that this option does only apply if the Edge installation is under package management, which is pretty uncommon in non-Linux userland.
Using apt (Ubuntu):
apt list microsoft-edge
Using Homebrew (Mac OSX):
brew info microsoft-edge
Using Chocolatey (Windows):
choco list -l microsoft-edge

Run the following command:
REG QUERY HKEY_CLASSES_root\AppX3xxs313wwkfjhythsb8q46xdsq8d2cvv\Application /v ApplicationName
Example output:
HKEY_CLASSES_ROOT\AppX3xxs313wwkfjhythsb8q46xdsq8d2cvv\Application
ApplicationName REG_SZ #{Microsoft.MicrosoftEdge_40.15063.674.0_neutral__8wekyb3d8bbwe?ms-resource://Microsoft
.MicrosoftEdge/Resources/AppName}
Now you just need to extract the version, e.g. the 40.15063.674.0.

Related

How to download Visual studio 2019 offline installer

I am going to install visual studio 2019 community edition (latest version) in my PC.I have found link in google which has online installer (1376 KB) size.I would like to download offline installer of visual studio 2019 community Edition.Please share me the download link for offline installer
Microsoft no longer offers offline installers such as .ISO images of Visual Studio -- instead they have instructions of placing the burden on you to create an offline installer. You need to use the --layout command line argument and then run the downloaded installer.
Download and Cache offline files:
vs_community.exe --layout f:\vslayout.2019 --lang en-US
Run from the cached directory
f:
cd \vslayout.2019
vs_community.exe --noWeb
NOTE: Change drive F to match a drive on your system that has ~35 GB of free space for MSVC 2019. See the instructions for command line arguments to select just C++, .NET, etc. options.
You can get help on the command line arguments for the installer via:
vs_community --help
The relevant layout commands are:
command-line option Description
--layout <dir> Specifies a directory to create an offline install cache.
--lang <locales> Used with --layout to prepare an offline install cache with resource packages with the specified language(s). See a full list of supported language-locales below.
--add <workload> One or more workload or component IDs to add. The required components of the artifact are installed, but not the recommended or optional components. You can control additional components globally using --includeRecommended and/or --includeOptional. For finer-grained control, you can append ;includeRecommended or ;includeOptional to the ID (for example, --add Workload1;includeRecommended or --add Workload2;includeOptional).
Note: If --add is used, only the specified workloads and components and their dependencies are downloaded. If --add is not specified, all workloads and components are downloaded to the layout.
--includeRecommended Includes the recommended components for any workloads that are installed, but not the optional components. The workloads are specified either with --allWorkloads or --add.
--includeOptional Includes the recommended and optional components for any workloads being included in the layout. The workloads are specified with --add.
--keepLayoutVersion Apply changes to the layout without updating the version of the layout.
--verify Verify the contents of a layout. Any corrupt or missing files are listed.
--fix Verify the contents of a layout. If any files are found to be corrupt or missing, they are redownloaded. Internet access is required to fix a layout.
--clean <paths to catalogs>

Error while install appium in windows 8, Couldn't find java 'jar' executable on your path.Please ensure it is present, I have set variable for java

enter image description here
I have installed appium in windows 8, Getting error as Not find jar executable file in your path.
You have to simply add C:\Program Files\Java\jdkx.xx.x_\bin to Windows' PATH variable.
That is the location where jar.exe is located on Windows (yours may differs, depending on JDK version, etc.)
You'd have to start a new command prompt (assuming you're using Windows'cmd) for the new PATH variable to reflect the change.

Yeoman. The filename, directory name, or volume label syntax is incorrect

Reinstalled Windows 10 (Version 10.0.14393). Reinstalled the following:
Java
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
nodejs (v6.9.5)
NPM (3.10.10)
Yarn (v0.19.1)
Yeoman (installed with yarn global add yo)
When I write yo -v in cmd in any folder, runned with administrator or not, I take:
The filename, directory name, or volume label syntax is incorrect.
UPDATE:
The only workaround I found is to use the full path of yo:
C:\Users\<username>\AppData\Local\Yarn\config\global\node_modules\.bin\yo.cmd
It may be that your PATH does not point to global NPM modules yet. The FAQ and links are more helpful for gnu/linux or mac users. The PATH is a list of the places that your operating system checks whenever you type a command.
Since you are using Windows, to add the modules path temporarily (just for one session) at the prompt, just type (obviously use the correct path with your correct username and please take note of the ; separator character):
path = %path%;C:\Users\<username>\AppData\Local\Yarn\config\global\node_modules\.bin\
You should then be able to run 'yo -v' without pointing to the full path name, since the console now knows to check that folder also. If that works for you, you can add that path permanently using the instructions described on another SO post here.
Finally (and this is only slightly related to your question), since i notice you've got the Windows 10 anniversary update, if you have Linux experience, you may prefer to use "Windows subsystem for Linux", which is a bash shell (Ubuntu 14) on Windows, that you can use instead of the default command prompt. You can find it under "Add / Remove programs --> Turn Windows features on or off --> (scroll right down) --> Windows subsystem for Linux (beta)". Your local file system will be at "/mnt/c" so you can get to it from within the shell or from windows explorer. I've had fewer problems using this and since so many tutorials are written with bash (not command prompt) in mind, it's useful to use it instead of cmd.
You'll need to install dependencies in the usual way using apt-get (as it won't use the ones you've installed on the windows side) and you'll need to prefix commands that make system changes with 'sudo'. e.g.
sudo npm -g modulename

Where is neo4j-server.properties on Windows?

On Windows, where is neo4j-server.properties as described in this documentation?
http://docs.neo4j.org/chunked/stable/security-server.html
I can't find it anywhere, and creating it myself in places that seem reasonable have no effect.
I'd like to be able to access the server from a remote IP other than localhost. Thanks.
Update
Neo4j is installed at C:\Program Files\Neo4j Community\bin\neo4j-community.exe
I've created the file at C:\Program Files\Neo4j Community\conf\neo4j-server.properties
Here's the complete contents:
org.neo4j.server.webserver.port=7474
#allow any client to connect
org.neo4j.server.webserver.address=0.0.0.0
However, the settings don't seem to take effect. Am I missing something?
From the Neo4j startup window, click the "options" button bottom left.
This shows an options windows which includes the path to your conf file:
Ok I think I know what's going on: You installed 1.9.4 stable via the new simplified Windows Installer? If so: That seems to be a very limited 'dev' installer. It has a simple MSI, it has a simple GUI to let you select the database, and then you do everything from the web console. This is a departure from previous methods of installing on Windows. I tried it out, and I abandoned it because I need full control of the configuration. The conf files, normally found in a conf folder parallel to the bin folder, are not installed with this installer.
If you want the traditional installer, grab the enterprise download.
That said: I wouldn't waste time on the 1.9.x branch unless you're running in production. If you're still in dev/test, I'd go straight to 2.0 (milestone 6 is now available). You'll get Labels (reason enough to switch), updated Cypher engine, and lots of other improvements. Also: the 2.0 installer is still a traditional configuration, complete with conf folder, where you can make all the configuration changes you need to make.
EDIT The download link for the zip version is now back, so you can choose either the exe or zip version of installation. This means you can install 1.9.4 just like before, and have full access to all the configuration files.
EDIT 2 After a bit of email exchange w/someone at Neo Technology, I found out that, for this particular installer, everything needed is bundled into a single JAR file. if you look in the bin folder after installing, you'll see these files:
If you search the JAR file (via 7zip or something similar), you'll find the default server configuration file:
I suspect you could place the neo4j-server.properties file into the JAR file here as well (though I haven't tried).
The original poster is using the Community version on Windows, as am I. Despite what anyone has said, no one has actually answered the question with verifiable, tested results. I originally said, "This is not an answer". However, I now tend to think it IS the answer, just not the desired result. The answer is, to the best of my knowledge, with my specific tests and results documented below: NOWHERE: YOU CAN'T CONFIGURE current stable 1.9.4 or milestone 2.0.0-M06 Community versions on Windows x64.
I have tried the suggestions under the best answer, which were untested and unverified, and they do not work. See specific quotations below.
Neither of the currently pushed 2.0.0-M06 or stable 1.9.4 Community versions are configurable in any way, shape or form on Windows -- given the current documentation and non-answers. As a first time user to Neo4j with these two versions, this has been very frustrating, to have no clear way to configure the software, and incorrect official documentation.
"Also: the 2.0 installer is still a traditional configuration, complete with conf folder, where you can make all the configuration changes you need to make." #David Makagon
This is a false statement. It is the same as 1.9.4, no conf folders anywhere on disk.
"I suspect you could place the neo4j-server.properties file into the JAR file here as well (though I haven't tried)." #David Makagon
I have tried both Neo4j Community 1.9.4 and 2.0.0-M06 x64 on Windows 7 x64, running as a user, with and without running as administrator.
I've used ProcMon and could not even find any attempt to read any "conf" file at documented location. However, I found other odd locations with a "config" in the name, and have tried there also, out of morbid curiosity, included below.
Summary of config file locations which DO NOT work:
C:\Program Files\Neo4j Community\conf\neo4j-default.properties [1.9.4]
C:\Program Files\Neo4j Community\conf\neo4j-server.properties [1.9.4, 2.0.0-M06]
C:\Program Files\Neo4j Community\bin\neo4j-community.exe.Config [1.9.4]
C:\Program Files\Neo4j Community\bin\neo4j-default.properties [1.9.4]
C:\Program Files\Neo4j Community\bin\neo4j-server.properties [1.9.4]
C:\Program Files\Neo4j Community\bin\conf\neo4j-server.properties [2.0.0-M06]
C:\Program Files\Neo4j Community\bin\neo4j-desktop-1.9.4.jar\org\neo4j\server\config\community\neo4j-default.properties
C:\Program Files\Neo4j Community\bin\neo4j-desktop-1.9.4.jar\org\neo4j\server\config\community\neo4j-server.properties
C:\Program Files\Neo4j Community\bin\neo4j-desktop-1.9.4\org\neo4j\server\config\community\neo4j-default.properties
C:\Program Files\Neo4j Community\bin\neo4j-desktop-1.9.4\org\neo4j\server\config\community\neo4j-server.properties
C:\Users\root\Documents\Neo4j\neo4j-default.properties [1.9.4]
C:\Users\root\Documents\Neo4j\neo4j-server.properties [1.9.4]
C:\Users\root\Documents\Neo4j\conf\neo4j-default.properties [1.9.4]
C:\Users\root\Documents\Neo4j\conf\neo4j-server.properties [1.9.4]
C:\Users\root\Documents\Neo4j\default.graphdb\neo4j.properties [1.9.4, 2.0.0-M06]
C:\Users\root\Documents\Neo4j\default.graphdb\neo4j-server.properties [1.9.4]
C:\Users\root\Documents\Neo4j\default.graphdb\conf\neo4j-server.properties [1.9.4]
Also note, the jar's config file
C:\Program Files\Neo4j Community\bin\neo4j-desktop-1.9.4.jar\org\neo4j\server\config\community\neo4j-default.properties
corresponds directly to (exact same file, no differences)
C:\Users\root\Documents\Neo4j\default.graphdb\neo4j.properties
Yet changing the port in this location also does nothing.
Is there a way to configure this through the webadmin? It is definitely not clear at all.
I'm using the Windows 32 community version 2.0.3. To edit any of the properties, there's "settings" button in the GUI (where you start the database from)?
Download the windows community binary 64bit .zip from 'Other Versions'. You'll need to install the JDK 7 and set the JAVA_HOME path variable. All folders, including Conf, are exposed and you can control the the default port and localhost bindings per documentation.
A bit late, but I spent a while on searching for it today.
The seo4j-server.properties file is at (absolute path example):
C:\Users\username\AppData\Roaming\Neo4j Community\neo4j-server.properties
It is accessible from Neo4j GUI - under the "Setting" button. I have tried it with Community version 2.1.6 and it works fine.
Under ...\<neo4j-community-1.8.2>\conf directory.
The conf file is created under AppData\Roaming\Neo4j Community Edition when you click on edit in server configuration (Options GUI)

Neo4j 1.9.4 Windows Installer- where did the shell go?

When you install 1.9.4 using the new Windows installer, from where does one launch the Neo4j-Shell (previously found in bin)?
The neo4j-shell isn't currently shipping with the neo4j desktop but you can launch it by running the following command from 'C:\Program Files\Neo4j Community\' (or equivalent location:):
jre\bin\java -classpath bin\neo4j-desktop-1.9.4.jar org.neo4j.shell.StartClient
I'm not sure whether there are plans to include it in the next release, I'll check.
You can uninstall your neo4j windowns instalation version, so you can download an zip file with contains the neo4j binary version for Windows at http://www.neo4j.org/download. Using this version, you can find the bin, conf and lib folder. Besides that, you can find the Neo4jShell.bat. This file is the shell.
I believe the stand alone Neo4j-Shell isn't included in the installer for 1.9.4, but there is the Power tool console in the web interface, and you can also use the shell from the 1.8.3 package. I have no idea if it's supported though, but it seems to work.
For future googlers who end up here, there is a cypher shell at <neo4_dir>\bin\cypher-shell.bat. Neo4j-CE-3.1.0

Resources