Skip to content
/ devboot Public

Auto Bulk Software Installs for Dev Workstations via Winget Configuration and/or Dev Home app - WinGet Configuration Baseline Bootstrap/Setup and Run

License

Notifications You must be signed in to change notification settings

dmealo/devboot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

devboot - WinGet Configuration Baseline BootStrap/Setup and Run

🏃tl;dr Usage

Purpose

tl;dr: Auto Bulk Software Installs for Dev Workstations via Winget Configuration and/or Dev Home app

Microsoft announced a nice new way of doing desired state configuration (DSC) for workstations via pretty simple YAML code/configs - especially for dev systems - at Build, called winget configuration and in tests it's pretty cool. In other words, it can install a list of commonly needed development software with a few clicks in a new app from MSFT called Dev Home or a command from a terminal.

We also can call it from Dev Box (Windows development workstation in Azure accessed via Remote Desktop, etc) confguration which was also announced at Build and is in private preview now.

This repo contains configs for all of this as well as a devboot.ps1 script that automates the steps listed in Microsoft's Winget Congiguration setup (also listed below in Manual Setup) since their tool requires a minimum version of WinGet that may not be on all systems at this time.

Alternatively, users could install the new Dev Home app from Windows Store, then add their GitHub account, clone the repo in the app (along with a list of other repos in bulk if desired), and use the Machine Configuration > Configuration File option there to run the winget config with a GUI.

This could/should be very useful to help save probably hours per developer reinstalling software when workstations need to be reset/reimaged or for new machine setups.

Note: Individual projects can have their own Winget Configurations and .vsconfig's (VS will even feature these in a popup in the application when present) as well for project-specific tooling, prerequisites, but this allows us to get a good baseline install of the most commonly used development tools installed and managed here so that those do not need to be managed in each project - just the few specifics, if needed. :)

Usage

Note: Winget Configuration, as Desired State Configuration (DSC), is idempotent, so you can rerun it without affecting the already-installed software.

Prerequisites

  • Appropriate PowerShell ExecutionPolicy (example: Set a less restrictive script execution policy like Set-ExecutionPolicy -Scope LocalMachine -ExecutionPolicy RemoteSigned. See more information and warnings in Microsoft's PowerShell documentation.)

🤖 Scripted, one-liner Winget Configuration Setup and Run

  1. Run the script (in an admin-elevated PowerShell session) like this:
    Start-BitsTransfer -Source "https://raw.githubusercontent.com/dmealo/devboot/main/devboot.ps1"; .\devboot.ps1
  2. Type y when prompted to confirm the safety of the source of the configuration you are applying.
  3. The folder with the logs from the run will be displayed after the run is completed.

💪 Manual Winget Configuration Setup and Run

  1. Clone devboot repo
  2. Run winget configure -f .winget\configuration.dsc.yaml --verbose from repo root from an admin-elevated PowerShell session

📝 Notes & Known Issues

  • If you run into issues, you can quickly abandon this method and do a manual install of all software and only have spent 5 minutes trying to save a few hours. :)
  • Docker Desktop has been moved for now to an alternative configuration file, configuration.dsc.withDockerDesktop.yaml, since Docker Desktop for Windows Containers requires Hyper-V and related configurations to function which the Winget Configuration method of running the setup for does not currently seem to enable. This means that one would likely need to do so manually either before or after running devboot or Winget configure using the included configuration. This nullifies the time savings and convenience, so it is recommended to simply install Docker Desktop manually and let it configure it's prerequisites rather than have it included in this configuration.

🆘 Troubleshooting

  • Error running script: "...cannot be loaded because running scripts is disabled on this system..."
    • Solution: Set a less restrictive script execution policy like Set-ExecutionPolicy -Scope LocalMachine -ExecutionPolicy RemoteSigned. See more information and warnings in Microsoft's PowerShell documentation.

🙏 Software Suggestions, Ideas

Please make software installation suggestions and other ideas for devboot in the Ideas Discussion

❔ FAQ

  • How can I deal with some unwanted apps in the configuration?
    • Uninstalling them after configuration is complete is probably the quickest
      OR
    • Edit the configuration file and run manually after Winget setup:
      • Run the devboot.ps1 script to set up and opt into Winget Configuration, but cancel the script running when it prompts you to approve installation, then do one of the following:
      • Edit the <SYSTEMDRIVE>:\devboot\.winget\configuration.dsc.yaml
        OR
      • Comment or remove the unwanted apps from a local copy of the .winget\configuration.dsc.yaml file in a locally cloned copy of the repo
      • Then run winget configure -f .winget\configuration.dsc.yaml from the repo root

About

Auto Bulk Software Installs for Dev Workstations via Winget Configuration and/or Dev Home app - WinGet Configuration Baseline Bootstrap/Setup and Run

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published