Alan Díaz
Alan Díaz

Reputation: 43

How to get Google Chrome version Azure DevOps Command Prompt

How can I use command prompt to get the Chrome version on the vmImage on Azure DevOps pipeline?

Upvotes: 1

Views: 5297

Answers (2)

Jan van Rossum
Jan van Rossum

Reputation: 36

You can get the Chrome version in Azure Devops with a Powershell task containing this code:

$chromeVersion = ((Get-Item "C:\Program Files\Google\Chrome\Application\chrome.exe").VersionInfo).ProductVersion

Upvotes: 1

Mengdi Liang
Mengdi Liang

Reputation: 19026

Try below script in Command line task:

wmic datafile where name="C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe" get Version /value

Then choose corresponding vmimage you want to run.

enter image description here

Upvotes: 2

Related Questions