Outfile Question

Hi,

I’m currently downloading and installing the vlc player silently:

When i run the following, all is fine.

Invoke-WebRequest -Uri "https://www.vlcwebsite.." -OutFile "c:\support\vlc-3.0.3-win64.exe"
& "c:\support\vlc*.exe" /L=1031 /S

I want to change the outfile to read c:\support\vlc.exe or something similar because the version of the vlc player will change.

If I run the following, the file gets downloaded but nothing happens with the install.

Invoke-WebRequest -Uri "https://www.vlcwebsite.." -OutFile "c:\support\vlc.exe"
& "c:\support\vlc.exe" /L=1031 /S

Does anyone know what would be the best way to approach this, is the problem the outfile?

Thanks