-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrdm.ps1
41 lines (33 loc) · 1.43 KB
/
rdm.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# RDM
Start-Process msiexec.exe -Wait -ArgumentList '/I https://connexeon.link/download-rdm-beta-msi /quiet'
# Splashtop Streamer
Start-Process msiexec.exe -Wait -ArgumentList '/norestart /qn /I https://connexeon.link/download-splashtop-streamer-msi USERINFO="dcode=4R2WY2KJ5Z5A,hidewindow=1"'
# Install terminal fonts
choco install git -y
if ( Test-Path '$HOME\Downloads\powerline-fonts' -PathType Container ) {
cd $HOME\Downloads\powerline-fonts
git pull
} else {
cd $HOME\Downloads
git clone https://github.com/powerline/fonts.git powerline-fonts
cd $HOME\Downloads\powerline-fonts
}
$FontName = '*'
$fontFiles = New-Object 'System.Collections.Generic.List[System.IO.FileInfo]'
foreach ($aFontName in $FontName) {
Get-ChildItem $PSScriptRoot -Filter "${aFontName}.ttf" -Recurse | Foreach-Object {$fontFiles.Add($_)}
Get-ChildItem $PSScriptRoot -Filter "${aFontName}.otf" -Recurse | Foreach-Object {$fontFiles.Add($_)}
}
$fonts = $null
foreach ($fontFile in $fontFiles) {
if ($PSCmdlet.ShouldProcess($fontFile.Name, "Install Font")) {
if (!$fonts) {
$shellApp = New-Object -ComObject shell.application
$fonts = $shellApp.NameSpace(0x14)
}
$fonts.CopyHere($fontFile.FullName, 16)
}
}
# Pin to taskbar
$dir = (${env:ProgramFiles(x86)}, ${env:ProgramFiles} -ne $null)[0]
Install-ChocolateyPinnedTaskBarItem "$dir\Devolutions\Remote Desktop Manager\RemoteDesktopManager.exe"