Skip to content

Instantly share code, notes, and snippets.

@apollux
apollux / boxstarter.ps1
Last active July 2, 2019 07:26
Boxstarter script
function Is-Installed( $program ) {
$x86 = ((Get-ChildItem "HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall") |
Where-Object { $_.GetValue( "DisplayName" ) -like "*$program*" } ).Length -gt 0;
$x64 = ((Get-ChildItem "HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall") |
Where-Object { $_.GetValue( "DisplayName" ) -like "*$program*" } ).Length -gt 0;
return $x86 -or $x64;
}
@rprouse
rprouse / ChocolateyInstall.ps1
Last active December 15, 2019 23:13
Boxstarter Computer Setup
#====================================================
# Setting up a new machine using BoxStarter
# 1.Install Windows 8.1 on a new machine.
# 2.Login.
# 3.Open a command prompt and enter the following:
# START http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/rprouse/184f55de1e8cfe549d4b/raw/eab3ea82ce33963e2222507c9802e9012f556b7c/ChocolateyInstall.ps1
#====================================================
#====================================================
# Boxstarter options