近日重装了Windows 10,又新装了一堆常用软件。为节省以后的时间,写个小的PowerShell脚本,如下:
代码语言:text复制Write-Host "Get Access ..."
$Access_Url = "ms-windows-store://pdp/?ProductId=cfq7ttc0k7q8"
Start-Process $Access_Url
Start-Sleep -Seconds 15
Write-Debug "Get Adobe Acrobat Reader ..."
$Adobe_Acrobat_Reader_Url = "https://admdownload.adobe.com/bin/live/readerdc_cn_ha_crd_install.exe"
Invoke-WebRequest -Uri $Adobe_Acrobat_Reader_Url -OutFile $Adobe_Acrobat_Reader_Url.split("/")[-1]
Write-Host "Get ApE: A plasmid Editor ..."
$Ape_Url = "https://jorgensen.biology.utah.edu/wayned/ape/Download/Windows/ApE_win_current.zip"
Invoke-WebRequest -Uri $Ape_Url -OutFile $Ape_Url.split("/")[-1]
Write-Host "Get Excel ..."
$Excel_Url = "ms-windows-store://pdp/?ProductId=cfq7ttc0k7dx"
Start-Process $Excel_Url
Start-Sleep -Seconds 15
Write-Host "Get GIMP (GNU Image Manipulation Program) ..."
Start-Process "https://www.gimp.org/downloads/"
Write-Host "Get GraphPad Prism ..."
$GraphPad_Prism_Url = "https://cdn.graphpad.com/downloads/prism/9/InstallPrism9.msi"
Invoke-WebRequest -Uri $GraphPad_Prism_Url -OutFile $GraphPad_Prism_Url.split("/")[-1]
Write-Host "Get Inkscape ..."
$Inkscape_Url = "ms-windows-store://pdp/?ProductId=9pd9bhglfc7h"
Start-Process $Inkscape_Url
Start-Sleep -Seconds 15
Write-Host "Get PowerPoint ..."
$PowerPoint_Url = "ms-windows-store://pdp/?ProductId=cfq7ttc0k7c6"
Start-Process $PowerPoint_Url
Start-Sleep -Seconds 15
Write-Host "Get Publisher ..."
$Publisher_Url = "ms-windows-store://pdp/?ProductId=cfq7ttc0k7c3"
Start-Process $Publisher_Url
Start-Sleep -Seconds 15
Write-Host "Get R ..."
$R_Url = "https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/base/release.html"
Start-Process $R_Url
Write-Host "Get RStudio ..."
Start-Process "https://www.rstudio.com/products/rstudio/download/#download"
Write-Host "Get SnapGene Viewer ..."
$SnapGene_Viewer_Url = "https://www.snapgene.com/local/targets/download.php?variant=viewer&os=windows&majorRelease=latest&minorRelease=latest"
$SnapGene_Viewer_File = "snapgene_viewer_latest_win.exe"
Invoke-WebRequest -Uri $SnapGene_Viewer_Url -OutFile $SnapGene_Viewer_File
Write-Host "Get TeX Live ..."
$TeXLive_Url = "https://mirror.ctan.org/systems/texlive/tlnet/install-tl-windows.exe"
Invoke-WebRequest -Uri $TeXLive_Url -OutFile $TeXLive_Url.split("/")[-1]
Write-Host "Get TeXstudio ..."
Start-Process "https://www.texstudio.org/"
Write-Host "Get Ubuntu ..."
$Ubuntu_Url = "ms-windows-store://pdp/?ProductId=9nblggh4msv6"
Start-Process $Ubuntu_Url
Start-Sleep -Seconds 15
Write-Host "Get Visio Professional 2019 ..."
$Visio_Professional_2019_Url = "ms-windows-store://pdp/?ProductId=cfq7ttc0k7cg"
Start-Process $Visio_Professional_2019_Url
Start-Sleep -Seconds 15
Write-Host "Get Visual Studio Code ..."
$Visual_Studio_Code_Url = "https://code.visualstudio.com/sha/download?build=stable&os=win32-x64"
Start-Process $Visual_Studio_Code_Url
Write-Host "Get Visual Studio Community ..."
$Visual_Studio_Url = "https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community"
Start-Process $Visual_Studio_Url
Write-Host "Get Word ..."
$Word_Url = "ms-windows-store://pdp/?ProductId=cfq7ttc0k7c7"
Start-Process $Word_Url
Start-Sleep -Seconds 15
Write-Debug "Get WinRAR ..."
$WinRAR_Url = "https://www.rarlab.com/rar/winrar-x64-601.exe"
Invoke-WebRequest -Uri $WinRAR_Url -OutFile $WinRAR_Url.split("/")[-1]
Write-Host "Get XAML Controls Gallery ..."
$XAML_Controls_Gallery_Url = "ms-windows-store://pdp/?ProductId=9MSVH128X2ZT"
Start-Process $XAML_Controls_Gallery_Url
Start-Sleep -Seconds 15
Write-Host "Get Windows Community Toolkit Sample App ..."
$Windows_Community_Toolkit_Sample_App_Url = "ms-windows-store://pdp/?ProductId=9nblggh4tlcq"
Start-Process $Windows_Community_Toolkit_Sample_App_Url
Start-Sleep -Seconds 15
结束!