chtof / chocolatey-packages

Apache License 2.0
12 stars 36 forks source link

detect it easy remove old files and fix shortcut for --forcex86 #31

Closed TheCakeIsNaOH closed 3 years ago

TheCakeIsNaOH commented 3 years ago

See https://github.com/chtof/chocolatey-packages/issues/29#issuecomment-758295918

TheCakeIsNaOH commented 3 years ago

Your script is better than I wrote (see below) and it gives me some idea for my future scripts :-)

Thanks 😃 I specifically like using [System.IO.Path]::Combine(), I think it is the easiest to understand way to combine three or more path parts that works cross platform. Join-Path works fine for two parts of course.

(I will add the removinf of zip files after they have been unzipped).

I should have added that, completely forgot.