natedawg20 / win10-setup-powershell

Windows 10 setup script via Powershell
0 stars 0 forks source link

Installers going to root directory #2

Open natedawg20 opened 1 year ago

natedawg20 commented 1 year ago

When the installers are downloaded, they're dumped into the root of the script rather than a separate "installers" folder. This makes the root folder crowded and difficult to find the script file (log, .ps1 file, etc).

image

natedawg20 commented 10 months ago

Working on cleaning up the download section, but having trouble auto-naming the downloaded installer. Invoke-WebRequest has an -OutFile flag, but it requires a full file name and won't accept a "root" folder. This is important because installer extensions range from .msi, .exe, and .zip. See below for what I've found so far:

Still thinking up a viable solution rather than relying on a human manually typing in the file extension