arggrande / installerifier Goto Github PK
View Code? Open in Web Editor NEWInstalls a bunch of stuff I find useful when setting up a dev environment.
License: MIT License
Installs a bunch of stuff I find useful when setting up a dev environment.
License: MIT License
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:
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.
Bit of a weird one.
Running the installation with the package parameters from the docs (found here ) on this chocolatey package fails.
Didn't take note of the logs because I'm a terrible person.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.