Home > Enterprise >  VLC silent install over Powershell
VLC silent install over Powershell

Time:11-29

I'm trying to install the VLC media player using a Powershell script.

I opened the VLC wiki and found this (that's the only help I found online):

Start process -FilePath "C: \ Temp \ VLC.exe" -ArgumentList "/ L = 1033 / S"

When I run this command I don't get an error, but I have to accept the windows admin thing and that's it. VLC cannot be installed.

All ideas are welcome.

I'm new to scripting and coding

CodePudding user response:

It's maybe not an answer to your question, but I would suggest to install software using Chocolatey. This is very simple, it's powershell based and consists in only 1 command line (but first you need to install Chocolatey):

choco install vlc

And it's very easy to update installed software as well...

CodePudding user response:

This can be done without powershell. I'm not sure why people jump so often to start-process. I guess it won't work if you quote the command. It can be run directly:

.\vlc-3.0.11-win32.exe /L=1033 /S

Msi version:

install-package vlc-3.0.16-win64.msi

Default preferences file for ignoring update prompts, etc:

copy-item vlcrc C:\Users\Default\AppData\Roaming\vlc
  • Related