Commit graph

12 commits

Author SHA1 Message Date
blue
9600a25266 Simplify extraction 2019-06-16 16:14:24 +01:00
blue
6d7020e8ea Don't redownload package if already done
Match file found against size from catalog, warn if it doesn't match.
2019-06-16 15:56:04 +01:00
blue
3b240d6fab Always clean up working directory 2019-06-16 15:55:25 +01:00
blue
5d0b7dff4e Stop download if final destination exists
Python automatically deletes it, but that seems unwise? Warn instead.
2019-06-16 15:54:28 +01:00
blue
51c0e0c301 Change save locations to act more like Python
Script will now download and unpack in $env:Temp and output final result
to $pwd\BootCamp-$Version like Python Script

Python uses a randomly generated directory in temp, but use a
predictable one to allow us to check if .pkg is already downloaded and
skip if so.
2019-06-16 15:30:53 +01:00
blue
344de3b871 Handle not finding any matching ESDs 2019-06-16 14:44:16 +01:00
blue
561ec98741 Add progress messages during usage
With $ProgressPreference = "SilentlyContinue" set, the script often
looks like it's hung. Inform the user what's going on more often,
particularly for slow actions.
2019-06-16 14:44:16 +01:00
blue
a55697dadc Use System.Version for version comparisons 2019-06-15 18:55:32 +01:00
blue
4fb8a3e54d Make ESD matching a bit easier to follow
Also add ESD version to package info
2019-06-15 18:55:24 +01:00
blue
d2e5319176 Simplify selecting which ESD to download
No need to pick newest manually, just sort the list by date.

Also builds a hash table of package's properties rather than just
looking for a string ending in '.pkg'
2019-06-15 18:53:31 +01:00
nathanmcnulty
e0d3a79951 Merge in changes from Get-Bootcamp script in #24
A version of the script is in a comment on #24, merge in differences.
https://github.com/timsutton/brigadier/issues/24#issuecomment-295011284
2019-06-15 14:24:32 +01:00
nathanmcnulty
acbe9c2a1e Initial commit of working script
Changed from the previous Install-Bootcamp.ps1 file as the default behavior now follows Tim's script in more areas. By default, this will now download the Bootcamp installer to the desktop rather than installing by default (hence Get- instead of Install-). It now requires the -Install argument to actually perform the installation.
2019-06-09 19:41:46 +01:00