Giter Site home page Giter Site logo

installerifier's Introduction

installerifier

Installs a bunch of stuff I find useful when setting up a dev environment.

I'd rate this script as "idempotent-ish". Still very WIP, so YMMV.

What does this install

A bunch of pre-requesite tools

  1. The NuGet Package Provider, along with PSGallery so we can install some choice PowerShell tools
  2. The VSSetup PowerShell module, so we can detect if Visual Studio is installed
  3. Chocolatey, so we can get our Executables™
  4. The SqlServer PowerShell module, so we can detect if SqlServer is installed
  5. Git Fork, because its seriously amazing. I prefer this over SourceTree, but that is my Opinion™

Microsoft Stuff

  1. VSCode
  2. Visual Studio 2019 Professional
  3. SQL Server Management Studio
  4. [TODO] SQL Server Express

Other Stuff

  1. [TODO] Android Studio
  2. [TODO] SQLite Browser
  3. Copy the Git config file in \resources to the user root folder, complete with shiny aliases.

Quality of Life Stuff

  1. Google Chrome
  2. Spotify
  3. Firefox
  4. Paint.NET

Requirements

  1. You must have PowerShell. One Day™ I'll do a bash variant for the Mac/Linux folks in the house, but for now PowerShell will do
  2. You probably want to run this as Administrator to save yourself unnecessary hassle. Though Chocolatey should throw a fit if you try and run commands in a non-admin shell

installerifier's People

Contributors

arggrande avatar

Watchers

 avatar

installerifier's Issues

Better logging/error handling

The logging looks a bit yuck. Open to suggestions how to make it sparkle.

My error handling is... ok I guess? I need to figure out how to understand when bad things happen within chocolatey and display to the user.

I would also love to figure out how to:

  1. Make chocolately less verbose
  2. Take whatever errors chocolately spits out and chuck them into a log file (not chocolatelys log file)

Sql Server Management Studio Install fails

From the logs:

 Installing SQL Server Management Studio...
2019-12-22 20:19:34,599 10404 [DEBUG] - Ensuring 'C:\Users\AdamG\AppData\Local\Temp\chocolatey\sql-server-management-studio\15.0.18206.0' exists
2019-12-22 20:19:34,615 10404 [DEBUG] - Running Start-ChocolateyProcessAsAdmin -validExitCodes '0 3010 1641' -workingDirectory 'C:\Users\AdamG\AppData\Local\Temp\chocolatey\sql-server-management-studio\15.0.18206.0' -statements '/quiet /install /norestart /log "C:\Users\AdamG\AppData\Local\Temp\chocolatey\sql-server-management-studio\15.0.18206.0\SSMS.MsiInstall.log" ' -exeToRun 'C:\Users\AdamG\AppData\Local\Temp\chocolatey\sql-server-management-studio\15.0.18206.0\SSMS-Setup-ENU.exe' 
2019-12-22 20:19:34,615 10404 [DEBUG] - Unable to use current location for Working Directory. Using Cache Location instead.
2019-12-22 20:19:34,630 10404 [DEBUG] - Test-ProcessAdminRights: returning True
2019-12-22 20:19:34,630 10404 [DEBUG] - Elevating permissions and running ["C:\Users\AdamG\AppData\Local\Temp\chocolatey\sql-server-management-studio\15.0.18206.0\SSMS-Setup-ENU.exe" /quiet /install /norestart /log "C:\Users\AdamG\AppData\Local\Temp\chocolatey\sql-server-management-studio\15.0.18206.0\SSMS.MsiInstall.log" ]. This may take a while, depending on the statements.
2019-12-22 20:19:37,083 10404 [DEBUG] - Command ["C:\Users\AdamG\AppData\Local\Temp\chocolatey\sql-server-management-studio\15.0.18206.0\SSMS-Setup-ENU.exe" /quiet /install /norestart /log "C:\Users\AdamG\AppData\Local\Temp\chocolatey\sql-server-management-studio\15.0.18206.0\SSMS.MsiInstall.log" ] exited with '1626'.
2019-12-22 20:19:37,115 10404 [ERROR] - ERROR: Running ["C:\Users\AdamG\AppData\Local\Temp\chocolatey\sql-server-management-studio\15.0.18206.0\SSMS-Setup-ENU.exe" /quiet /install /norestart /log "C:\Users\AdamG\AppData\Local\Temp\chocolatey\sql-server-management-studio\15.0.18206.0\SSMS.MsiInstall.log" ] was not successful. Exit code was '1626'. See log for possible error messages.
2019-12-22 20:19:37,115 10404 [DEBUG] - Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\sql-server-management-studio\tools\chocolateyinstall.ps1' -installArguments '' -packageParameters '''] exited with '1626'.
2019-12-22 20:19:37,115 10404 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2019-12-22 20:19:37,146 10404 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
2019-12-22 20:19:37,146 10404 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\sql-server-management-studio'
2019-12-22 20:19:37,146 10404 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\sql-server-management-studio\sql-server-management-studio.nupkg'
  with checksum 'B14BD447E73D60F2D560E707F00FA8F3'
2019-12-22 20:19:37,146 10404 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\sql-server-management-studio\sql-server-management-studio.nuspec'
  with checksum 'D22D5377EC979E00FCDE56910437FAD0'
2019-12-22 20:19:37,161 10404 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\sql-server-management-studio\tools\chocolateyinstall.ps1'
  with checksum '0D04FEA2905D1182921D3D5FE7B8BBA3'
2019-12-22 20:19:37,161 10404 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\.chocolatey\sql-server-management-studio.15.0.18206.0".
2019-12-22 20:19:37,161 10404 [DEBUG] - There was no original file at 'C:\ProgramData\chocolatey\.chocolatey\sql-server-management-studio.15.0.18206.0\.files'
2019-12-22 20:19:37,161 10404 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\sql-server-management-studio.15.0.18206.0\.arguments".
2019-12-22 20:19:37,161 10404 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\sql-server-management-studio.15.0.18206.0\.extra".
2019-12-22 20:19:37,161 10404 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\sql-server-management-studio.15.0.18206.0\.version".
2019-12-22 20:19:37,161 10404 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\sql-server-management-studio.15.0.18206.0\.sxs".
2019-12-22 20:19:37,161 10404 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\sql-server-management-studio.15.0.18206.0\.pin".
2019-12-22 20:19:37,161 10404 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2019-12-22 20:19:37,161 10404 [ERROR] - The install of sql-server-management-studio was NOT successful.
2019-12-22 20:19:37,177 10404 [ERROR] - Error while running 'C:\ProgramData\chocolatey\lib\sql-server-management-studio\tools\chocolateyinstall.ps1'.
 See log for details.
2019-12-22 20:19:37,177 10404 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\sql-server-management-studio'
 to 'C:\ProgramData\chocolatey\lib-bad\sql-server-management-studio'
2019-12-22 20:19:39,209 10404 [DEBUG] - Attempting to delete file "C:\Users\AdamG\AppData\Local\NuGet\Cache\sql-server-management-studio.15.0.18206.0.nupkg".
2019-12-22 20:19:39,209 10404 [WARN ] - 
Chocolatey installed 1/2 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2019-12-22 20:19:39,209 10404 [INFO ] - 
2019-12-22 20:19:39,209 10404 [ERROR] - Failures
2019-12-22 20:19:39,209 10404 [ERROR] -  - sql-server-management-studio (exited 1626) - Error while running 'C:\ProgramData\chocolatey\lib\sql-server-management-studio\tools\chocolateyinstall.ps1'.
 See log for details.
2019-12-22 20:19:39,209 10404 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2019-12-22 20:19:39,224 10404 [DEBUG] - Exiting with 1626

This has worked in the past, so may be a transient thing. Will look at reproducing at some point by restoring to a previous snapshot on my VM.

Though obviously if anyone else wants to poke around, go nuts.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.