Skip to content
This repository was archived by the owner on Sep 8, 2022. It is now read-only.

Batch Installer for WinGet#308

Closed
mrhaydendp wants to merge 6 commits intoChrisTitusTech:masterfrom
mrhaydendp:patch-1
Closed

Batch Installer for WinGet#308
mrhaydendp wants to merge 6 commits intoChrisTitusTech:masterfrom
mrhaydendp:patch-1

Conversation

@mrhaydendp
Copy link
Copy Markdown
Contributor

@mrhaydendp mrhaydendp commented Mar 31, 2022

  • Added batch install for Winget apps
  • Simplified Winget check
  • New Winget installation that doesn't require user intervention
  • Replaced "ms-appinstaller" method of installing Winget with a new Add-AppxPackage method because of CVE-2021-43890

- Simplified Winget check
- Switched to BitsTransfer of installing Winget because CVE-2021-43890 disables ms-appinstaller
- Added batch install feature for Winget apps
@Carterpersall
Copy link
Copy Markdown

It might be better to automate the installation of winget by downloading the license XML file and Add-AppxProvisionedPackage. If you want an example, take a look at my pull request #285. The alternative I implemented is a bit more sophisticated due to it being tailored for LTSC and Server editions of Windows, but the download and install commands should be the same (minus the VCLibs install).

- Added the wait process so the script wont run until you interact with appinstaller window
@mrhaydendp
Copy link
Copy Markdown
Contributor Author

It might be better to automate the installation of winget by downloading the license XML file and Add-AppxProvisionedPackage. If you want an example, take a look at my pull request #285. The alternative I implemented is a bit more sophisticated due to it being tailored for LTSC and Server editions of Windows, but the download and install commands should be the same (minus the VCLibs install).

I'll look into it

- Automate winget install by running `Add-AppxPackage` command
- Removed wait process as `Add-AppxPackage` can install in the background without user intervention
- Removed my local path used for testing & replaced with generalized .\
- Removed automated Winget install because it required multiple architecture dependent dependencies
- Added architecture check to install x86 or x64 VCLibs dependency
- Removed the need for installing installation files
- Installs without errors on fresh install of Windows 10 & 11
@lammersbjorn
Copy link
Copy Markdown

Yuk.

@ChrisTitusTech
Copy link
Copy Markdown
Owner

Not the proper way to install winget, and the batch installer has no configuration with selecting apps.

@mrhaydendp
Copy link
Copy Markdown
Contributor Author

Not the proper way to install winget, and the batch installer has no configuration with selecting apps.

Batch-Install
Sorry for not being clear in code comments, batch install shows a gui with all applications and lets you select multiple to install through winget

@mrhaydendp mrhaydendp deleted the patch-1 branch May 17, 2022 02:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants