Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save davehorner/756e63921450b34dd8bcd13bf97fedf6 to your computer and use it in GitHub Desktop.
Save davehorner/756e63921450b34dd8bcd13bf97fedf6 to your computer and use it in GitHub Desktop.

Revisions

  1. @turboBasic turboBasic revised this gist Nov 3, 2017. 1 changed file with 121 additions and 38 deletions.
    159 changes: 121 additions & 38 deletions Install-ChocoAndScoop.ps1
    Original file line number Diff line number Diff line change
    @@ -1,53 +1,136 @@
    New-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" `
    -propertyType ExpandString `
    -name "SCOOP_GLOBAL" `
    -value "${ENV:PROGRAMDATA}\scoop"
    Function Install-Scoop {

    Invoke-WebRequest 'https://get.scoop.sh' | Invoke-Expression
    New-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" `
    -propertyType ExpandString `
    -name "SCOOP_GLOBAL" `
    -value "${ENV:PROGRAMDATA}\scoop"

    'scoop install Sudo Git-with-OpenSSH Which --global' | Set-Content -path temp_script.ps1
    Start-Process PowerShell -verb RunAs -argument "-noProfile $(Convert-Path .\temp_script.ps1)"
    Remove-Item temp_script.ps1 -force
    Invoke-WebRequest 'https://get.scoop.sh' | Invoke-Expression

    scoop bucket add Extras
    scoop bucket add Nirsoft
    'scoop install Git-with-OpenSSH Sudo Which --global' | Set-Content -path temp_script.ps1
    Start-Process PowerShell -verb RunAs -argument "-noProfile $(Convert-Path .\temp_script.ps1)"
    Remove-Item temp_script.ps1 -force

    sudo Invoke-WebRequest 'https://chocolatey.org/install.ps1' | Invoke-Expression
    refreshEnv
    pushd "${env:ChocolateyInstall}\tools"
    sudo .\shimgen --output="..\bin\shimgen.exe" --path="..\tools\shimgen.exe" | Out-Null
    popd
    scoop bucket add Extras
    scoop bucket add Nirsoft

    # Basic utilities
    sudo choco install 7zip.install 7zip.commandline -y -pre
    }

    # Libraries
    sudo choco install VcRedist-All JRE8
    Function Install-Chocolatey-OldWay {

    # Registry, Environment, System Management utilities
    sudo choco install Rapidee RegistryManager DoubleCmd Rufus SysInternals SystemExplorer OpenedFilesView -y
    Start-Process PowerShell -verb RunAs -argument "-noProfile Invoke-WebRequest 'https://chocolatey.org/install.ps1' | Invoke-Expression"
    refreshEnv
    pushd "${env:ChocolateyInstall}\tools"
    sudo .\shimgen --output="..\bin\shimgen.exe" --path="..\tools\shimgen.exe" | Out-Null
    popd

    }

    # Shells, Terminals and launchers
    sudo choco install CmderMini Keypirinha LinkShellExtension Putty Streams -y
    Function Install-Chocolatey {

    # Text editors, finders and organizers
    sudo choco install NotepadPlusPlus.install --x86 -y
    sudo shimgen --output="${env:ChocolateyPath}\bin\npp.exe" `
    --path="${env:ProgramFiles(x86)}\Notepad++\notepad++.exe" `
    --iconPath="${env:ProgramFiles(x86)}\Notepad++\notepad++.exe" `
    --gui
    sudo choco install Everything Ditto.install -y
    Install-PackageProvider Chocolatey -scope CurrentUser
    Set-PackageSource -name Chocolatey -trusted

    }

    # Internet
    sudo choco install QbitTorrent GoogleChrome -y
    Function Install-ChocolateyPackages-OldWay {

    # Media viewers / managers
    sudo choco install SumatraPDF.install Calibre Vlc Foobar2000 Fsviewer Dropbox -y
    # Basic utilities
    sudo choco install 7zip.install 7zip.commandline -y -pre

    # Development IDEs
    sudo choco install Webstorm Phpstorm -y
    # Libraries
    sudo choco install VCredist-All JRE8 -y

    # Development tools
    sudo choco install Kdiff3 Winscp.portable Lepter jq -y
    # Registry, Environment, System Management utilities
    sudo choco install Rapidee RegistryManager DoubleCmd Rufus SysInternals SystemExplorer -y
    scoop install OpenedFilesView

    # Shells, Terminals and launchers
    sudo choco install CmderMini Keypirinha LinkShellExtension Putty Streams -y

    # Text editors, finders and organizers
    sudo choco install NotepadPlusPlus.install --x86 -y
    sudo shimgen --output="${env:ChocolateyPath}\bin\npp.exe" `
    --path="${env:ProgramFiles(x86)}\Notepad++\notepad++.exe" `
    --iconPath="${env:ProgramFiles(x86)}\Notepad++\notepad++.exe" `
    --gui
    sudo choco install Everything Ditto.install -y

    # Internet
    sudo choco install QbitTorrent GoogleChrome -y

    # Media viewers / managers
    sudo choco install SumatraPDF.install Calibre Vlc Foobar2000 Fsviewer Dropbox -y

    # Development IDEs
    sudo choco install Webstorm Phpstorm -y

    # Development tools
    sudo choco install Kdiff3 Winscp.portable Lepter jq -y

    }

    Function Install-ChocolateyPackages {
    PARAM(
    [Parameter( Mandatory )]
    [String[]] $packages
    )

    $packages | ForEach { Install-Package $_ -verbose }
    }

    Function Install-ScoopPackages {
    PARAM(
    [Parameter( Mandatory )]
    [String[]] $packages
    )

    $packages | ForEach { scoop install $_ }

    }


    $chocoPackages = @(
    '7zip.install', '7zip.commandline', # Basic utilities
    'VCredist-All', 'JavaRuntime', # Libraries
    'Rapidee', 'RegistryManager', 'Rufus', # Registry, Environment, System Management utilities
    'SysInternals', 'SystemExplorer', #
    'CmderMini', 'DoubleCmd', 'Keypirinha', # Shells, Terminals and Launchers
    'LinkShellExtension', 'Putty', 'Streams', #
    'Ditto.install', 'Everything', # Text editors, finders and organizers
    'NotepadPlusPlus.install', #
    'QbitTorrent', 'GoogleChrome', # Internet
    'SumatraPDF.install', 'Calibre', 'Vlc', # Media viewers / Managers
    'Foobar2000', 'Fsviewer', 'Dropbox', #
    'Webstorm', 'Phpstorm', # Development IDEs
    'Kdiff3', 'WinSCP.portable', 'Lepter', 'jq' # Development tools
    )

    $chocoPackagesLight = @(
    '7zip.install', '7zip.commandline', # Basic utilities
    'Rapidee', 'RegistryManager', 'SystemExplorer', # Registry, Environment, System Management utilities
    'CmderMini', 'Keypirinha', 'DoubleCmd', # Shells, Terminals and Launchers
    'LinkShellExtension', 'Putty', #
    'Everything', 'NotepadPlusPlus.install', # Text editors, finders and organizers
    'QbitTorrent', 'GoogleChrome', # Internet
    'SumatraPDF.install', 'Vlc', # Media viewers / Managers
    'Foobar2000', 'Fsviewer' #
    )

    $chocoPackagesX86 = @(
    'NotepadPlusPlus.install' # Text editors, finders and organizers
    )

    $scoopPackages = @(
    'Filetypesman', 'ShellExView', # Registry, Environment, System Management utilities
    'ShellMenuView', 'RegDllView', #
    'OpenedFilesView' #
    )



    Install-Scoop
    sudo Install-Chocolatey

    sudo Install-ChocolateyPackages $chocoPackagesLight
    Install-ScoopPackages $scoopPackages
  2. @turboBasic turboBasic revised this gist Nov 3, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Install-ChocoAndScoop.ps1
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ New-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\E

    Invoke-WebRequest 'https://get.scoop.sh' | Invoke-Expression

    'scoop install sudo Git-with-OpenSSH Which --global' | Set-Content -path temp_script.ps1
    'scoop install Sudo Git-with-OpenSSH Which --global' | Set-Content -path temp_script.ps1
    Start-Process PowerShell -verb RunAs -argument "-noProfile $(Convert-Path .\temp_script.ps1)"
    Remove-Item temp_script.ps1 -force

  3. @turboBasic turboBasic revised this gist Nov 3, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Install-ChocoAndScoop.ps1
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@ New-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\E
    Invoke-WebRequest 'https://get.scoop.sh' | Invoke-Expression

    'scoop install sudo Git-with-OpenSSH Which --global' | Set-Content -path temp_script.ps1
    Start-Process PowerShell -verb RunAs -argument "-noProfile; $(Convert-Path .\temp_script.ps1)"
    Start-Process PowerShell -verb RunAs -argument "-noProfile $(Convert-Path .\temp_script.ps1)"
    Remove-Item temp_script.ps1 -force

    scoop bucket add Extras
  4. @turboBasic turboBasic revised this gist Nov 3, 2017. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions Install-ChocoAndScoop.ps1
    Original file line number Diff line number Diff line change
    @@ -4,13 +4,14 @@ New-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\E
    -value "${ENV:PROGRAMDATA}\scoop"

    Invoke-WebRequest 'https://get.scoop.sh' | Invoke-Expression
    scoop bucket add Extras
    scoop bucket add Nirsoft

    'scoop install sudo Git-with-OpenSSH Which --global' | Set-Content -path temp_script.ps1
    Start-Process PowerShell -verb RunAs -argument "-noProfile; $(Convert-Path .\temp_script.ps1)"
    Remove-Item temp_script.ps1 -force

    scoop bucket add Extras
    scoop bucket add Nirsoft

    sudo Invoke-WebRequest 'https://chocolatey.org/install.ps1' | Invoke-Expression
    refreshEnv
    pushd "${env:ChocolateyInstall}\tools"
  5. @turboBasic turboBasic revised this gist Nov 3, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Install-ChocoAndScoop.ps1
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    New-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" `
    -propertyType ExpandString `
    -name "SCOOP_GLOBAL" `
    -value "%PROGRAMDATA%\scoop"
    -value "${ENV:PROGRAMDATA}\scoop"

    Invoke-WebRequest 'https://get.scoop.sh' | Invoke-Expression
    scoop bucket add Extras
  6. @turboBasic turboBasic revised this gist Nov 3, 2017. 1 changed file with 5 additions and 3 deletions.
    8 changes: 5 additions & 3 deletions Install-ChocoAndScoop.ps1
    Original file line number Diff line number Diff line change
    @@ -23,8 +23,8 @@ sudo choco install 7zip.install 7zip.commandline -y -pre
    # Libraries
    sudo choco install VcRedist-All JRE8

    # Registry and Environment Utilities
    sudo choco install Rapidee RegistryManager -y
    # Registry, Environment, System Management utilities
    sudo choco install Rapidee RegistryManager DoubleCmd Rufus SysInternals SystemExplorer OpenedFilesView -y

    # Shells, Terminals and launchers
    sudo choco install CmderMini Keypirinha LinkShellExtension Putty Streams -y
    @@ -47,4 +47,6 @@ sudo choco install SumatraPDF.install Calibre Vlc Foobar2000 Fsviewer Dropbox -
    sudo choco install Webstorm Phpstorm -y

    # Development tools
    sudo choco install Kdiff3 Winscp.portable Lepter -y
    sudo choco install Kdiff3 Winscp.portable Lepter jq -y


  7. @turboBasic turboBasic revised this gist Nov 3, 2017. 1 changed file with 17 additions and 12 deletions.
    29 changes: 17 additions & 12 deletions Install-ChocoAndScoop.ps1
    Original file line number Diff line number Diff line change
    @@ -4,8 +4,8 @@ New-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\E
    -value "%PROGRAMDATA%\scoop"

    Invoke-WebRequest 'https://get.scoop.sh' | Invoke-Expression
    scoop bucket add extras
    scoop bucket add nirsoft
    scoop bucket add Extras
    scoop bucket add Nirsoft

    'scoop install sudo Git-with-OpenSSH Which --global' | Set-Content -path temp_script.ps1
    Start-Process PowerShell -verb RunAs -argument "-noProfile; $(Convert-Path .\temp_script.ps1)"
    @@ -14,32 +14,37 @@ Remove-Item temp_script.ps1 -force
    sudo Invoke-WebRequest 'https://chocolatey.org/install.ps1' | Invoke-Expression
    refreshEnv
    pushd "${env:ChocolateyInstall}\tools"
    sudo .\shimgen -o="..\bin\shimgen.exe" -p="..\tools\shimgen.exe" | Out-Null
    sudo .\shimgen --output="..\bin\shimgen.exe" --path="..\tools\shimgen.exe" | Out-Null
    popd

    # Basic utilities
    sudo choco install 7zip.install 7zip.commandline -y -pre

    # Libraries
    sudo choco install vcredist-all jre8
    sudo choco install VcRedist-All JRE8

    # Registry and Environment Utilities
    sudo choco install rapidee registrymanager -y
    sudo choco install Rapidee RegistryManager -y

    # Shells, Terminals and launchers
    sudo choco install cmdermini keypirinha linkshellextension putty streams -y
    sudo choco install CmderMini Keypirinha LinkShellExtension Putty Streams -y

    # Text editors, finders and organizers
    sudo choco install notepadPlusPlus.install --x86 -y
    sudo choco install NotepadPlusPlus.install --x86 -y
    sudo shimgen --output="${env:ChocolateyPath}\bin\npp.exe" `
    --path="${env:ProgramFiles(x86)}\Notepad++\notepad++.exe" `
    --iconPath="${env:ProgramFiles(x86)}\Notepad++\notepad++.exe" --gui
    --iconPath="${env:ProgramFiles(x86)}\Notepad++\notepad++.exe" `
    --gui
    sudo choco install Everything Ditto.install -y

    # Development IDEs
    sudo choco install webstorm phpstorm -y
    # Internet
    sudo choco install QbitTorrent GoogleChrome -y

    # Development tools
    sudo choco install kdiff3 winscp.portable -y
    # Media viewers / managers
    sudo choco install SumatraPDF.install Calibre Vlc Foobar2000 Fsviewer Dropbox -y

    # Development IDEs
    sudo choco install Webstorm Phpstorm -y

    # Development tools
    sudo choco install Kdiff3 Winscp.portable Lepter -y
  8. @turboBasic turboBasic created this gist Nov 3, 2017.
    45 changes: 45 additions & 0 deletions Install-ChocoAndScoop.ps1
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,45 @@
    New-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" `
    -propertyType ExpandString `
    -name "SCOOP_GLOBAL" `
    -value "%PROGRAMDATA%\scoop"

    Invoke-WebRequest 'https://get.scoop.sh' | Invoke-Expression
    scoop bucket add extras
    scoop bucket add nirsoft

    'scoop install sudo Git-with-OpenSSH Which --global' | Set-Content -path temp_script.ps1
    Start-Process PowerShell -verb RunAs -argument "-noProfile; $(Convert-Path .\temp_script.ps1)"
    Remove-Item temp_script.ps1 -force

    sudo Invoke-WebRequest 'https://chocolatey.org/install.ps1' | Invoke-Expression
    refreshEnv
    pushd "${env:ChocolateyInstall}\tools"
    sudo .\shimgen -o="..\bin\shimgen.exe" -p="..\tools\shimgen.exe" | Out-Null
    popd

    # Basic utilities
    sudo choco install 7zip.install 7zip.commandline -y -pre

    # Libraries
    sudo choco install vcredist-all jre8

    # Registry and Environment Utilities
    sudo choco install rapidee registrymanager -y

    # Shells, Terminals and launchers
    sudo choco install cmdermini keypirinha linkshellextension putty streams -y

    # Text editors, finders and organizers
    sudo choco install notepadPlusPlus.install --x86 -y
    sudo shimgen --output="${env:ChocolateyPath}\bin\npp.exe" `
    --path="${env:ProgramFiles(x86)}\Notepad++\notepad++.exe" `
    --iconPath="${env:ProgramFiles(x86)}\Notepad++\notepad++.exe" --gui
    sudo choco install Everything Ditto.install -y

    # Development IDEs
    sudo choco install webstorm phpstorm -y

    # Development tools
    sudo choco install kdiff3 winscp.portable -y