powershell Google Firefox
$firefox = @{
  DisplayName = "Mozilla Firefox";
  filename = "Firefox Setup 68.0b7.msi"
  Url = "\\10.63.32.243\Share\Browsers\Firefox Setup 68.0b7.msi"
  }
  $Chrome = @{
  DisplayName = "Google Chrome";
  filename = "GoogleChromeStandaloneEnterprise64.msi"
  Url = "\\10.63.32.243\Share\Browsers\GoogleChromeStandaloneEnterprise64.msi"
  }
  function Test-Installation {
    Param([Parameter(Position = 0, Mandatory = $true)] [String] $DisplayName)
    $key1 = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*"
    $key2 = "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*"
    $installed1 = Get-ItemProperty -Path $key1 | Select-Object DisplayName | Where-Object { $_.DisplayName -and $_.DisplayName.Contains($DisplayName) }
    $installed2 = Get-ItemProperty -Path $key2 | Select-Object DisplayName | Where-Object { $_.DisplayName -and $_.DisplayName.Contains($DisplayName) }
    if (($null -eq $installed1) -and ($null -eq $installed2)) { return $false } else { return $true }
}
Write-Host "Step 1. Install firefox" -ForegroundColor Cyan
if (Test-Installation -DisplayName $firefox.DisplayName) {
    Write-Host "firefox has been installed!" -ForegroundColor Green
} else {
    Start-BitsTransfer $firefox.url "$env:temp\$filename"
    $destination = "$env:temp"
    msiexec /i "$destination\Firefox Setup 68.0b7.msi" /norestart INSTALLSERVICE=1 /QUIET |out-null
    Write-Host "firefox installed success!"
    }
Write-Host "Step 2. Install chrome" -ForegroundColor Cyan
if (Test-Installation -DisplayName $chrome.DisplayName) {
    Write-Host "chrome has been installed!" -ForegroundColor Green
} else {
    Start-BitsTransfer $chrome.url "$env:temp\$filename"
    $destination = "$env:temp"
    msiexec /i "$destination\GoogleChromeStandaloneEnterprise64.msi" /norestart INSTALLSERVICE=1 /QUIET |out-null
    Write-Host "chrome installed success!"
    }
powershell Google Firefox的更多相关文章
- 关闭 Visual Studio 2013 的 Browser Link 功能
		
最近公司弄新项目需要用 MVC,就把 IDE 升级到了 Visual Studio 2013,在开发的时候发现有好多请求一个本地49925的端口 . 很奇怪,一开始以为是 Visual Studio ...
 - PHP(1)——学习之前做点啥准备
		
工欲善其事必先利其器,当然是先准备工具咯.首先硬件条件就是双核CPU以及8G内存的电脑一台,操作系统环境:windows(64bit)7+.Mac OSX 10.10+.Linux 64bit.软件环 ...
 - Visual Studio 2013 Web开发、新增功能:“Browser Link”
		
微软正式发布Visual Studio 2013 RTM版,微软还发布了Visual Studio 2013的最终版本..NET 4.5.1以及Team Foundation Server 2013. ...
 - jquery层居中,点击小图查看大图,弹出层居中代码,顶部层固定不动,滚动条滚动情况
		
jquery层居中,点击小图查看大图,弹出层居中代码 http://www.cnblogs.com/simpledev/p/3566280.html 见第一版,发现一个情况,如果页面内容多出一屏的情况 ...
 - [bug]Syntax error, unrecognized expression: input#ctl00$ContentPlaceHolder1$Pager_input
		
1.在ie10上浏览页面的时候,突然发现在使用Aspnetpager的页面会有一个bug. 2. 3.查了很多解决方案,最后将vs2013中, 将该勾取消,再次浏览,你会发现就正常了,虽然该功能很强大 ...
 - parseInt引发的血案
		
今天做了个专题活动,页面头上有个倒计时 专题做完后上线了,没发现有什么问题,结果,运营MM突然和我说:技术哥哥出问题了,360浏览器在秒数从10到09的时候直接变成 00 了! 一看我去真的,该死的3 ...
 - Visual Studio 2013 Web开发、新增功能:“Browser Link”
		
微软正式发布Visual Studio 2013 RTM版,微软还发布了Visual Studio 2013的最终版本..NET 4.5.1以及Team Foundation Server 2013. ...
 - Visual Studio 2013 的 Browser Link 功能
		
Visual Studio 2013 的 Browser Link 功能 最近公司弄新项目需要用 MVC,就把 IDE 升级到了 Visual Studio 2013,在开发的时候发现有好多请求一个本 ...
 - Visual Studio 2013中的“Browser Link”
		
前几天,参加了,VS13的新特性的讲座,回来便试了一下, 默认Html会引用如下脚本: <!-- Visual Studio Browser Link --> <script typ ...
 
随机推荐
- H3C 配置静态及动态域名解析
 - vue在html中写动态背景图片
			
<div class="img" :style="`background: url(`+item.img+'?any_string_is_ok'+`)center ...
 - H3C重启设备
 - childNodes和children
			
childNodes 返回指定元素的子节点集合,包括HTML节点,所有文本(元素之间的空格换行childNodes会看作文本节点). 通过nodeType来判断节点的类型: 元素 1 属性 2 文本 ...
 - Linux 内核块 urb
			
块 urb 被初始化非常象中断 urb. 做这个的函数是 usb_fill_bulk_urb, 它看来如此: void usb_fill_bulk_urb(struct urb *urb, struc ...
 - CF1209
			
CF1209 A B 水题不管 C 因为要求最终整个序列是要单调的 所以我们就考虑枚举断点$x$ 之后把$<x$的数放到第一个集合 把$> x$的数放到第二个集合 至于$=x$的数 他能放 ...
 - WPF 分页控件Pager
			
本文为伪原创原文为 NET未来之路的https://www.cnblogs.com/lonelyxmas/p/10641255.html 原文中,页码数量会不断增加,会将下一页的按钮顶出去 修改了一下 ...
 - 不同RAM空间存储变量区分
 - springboot 动态修改定时任务
			
1.静态定时 1)启动类加上注解@EnableScheduling @EnableAsync @EnableScheduling @SpringBootApplication @MapperScan( ...
 - springboot多租户设计
			
1. 概述 根据不同用户的请求,选择不同的数据源,不同的数据源可以是Oracle.MySQL或者其它.用到的技术栈,没有什么复杂的技术,可以看到,依赖也就加了几个而已,如下: 2. 先睹为快 如下图, ...