Silent Install

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
aardvark1999
New Cone
New Cone
Posts: 1
Joined: 30 Apr 2015 01:23

Silent Install

Postby aardvark1999 » 30 Apr 2015 01:40

Here is how to do a silent install of 2.2.1
_____________________________
Instructions
------------

Install VNC
Launch
Disable privacy settings
Set fullscreen
Set any other required settings
Close VLC
Copy the 2 vlc* files from %appdata%\vlc into .\DefaultSettings

Run Install.bat to install
Run UnInstall.bat to remove
_______________________________

Create an install directory with the following...

DefaultSettings - Directory that contains vlc-qt-interface.ini and vlcrc (Captured from earlier)

Install.bat
@echo off
.\vlc-2.2.1-win32.exe /S
if NOT exist "%programdata%\vlc" MD "%programdata%\vlc"
xcopy .\UserSetup.bat "%programdata%\vlc" /I /Y
xcopy .\DefaultSettings\*.* "%programdata%\vlc\DefaultSettings" /I /Y
reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Active Setup\Installed Components\VLC_2.2.1" /v StubPath /t REG_SZ /d "c:\windows\syswow64\cmd.exe /c %programdata%\vlc\UserSetup.bat" /f
reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Active Setup\Installed Components\VLC_2.2.1" /v Version /t REG_SZ /d "2.2.1" /f
del "%public%\desktop\VLC media player.lnk" /Q
exit

UnInstall.bat
@echo off
"%programfiles(x86)%\VideoLAN\VLC\uninstall.exe" /S
timeout 5 > nul
rd "%programdata%\vlc" /S /Q
reg delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Active Setup\Installed Components\VLC_2.2.1" /f
rd "%programfiles(x86)%\VideoLAN" /S /Q
exit


UserSetup.bat
@echo off
if NOT exist "%appdata%\vlc" md "%appdata%\vlc"
xcopy "%programdata%\vlc\DefaultSettings\*.*" "%appdata%\vlc" /I /Y
exit

vlc-2.2.1-win32.exe - Downloaded .exe

BMWW
New Cone
New Cone
Posts: 5
Joined: 17 Apr 2020 12:11

Re: Silent Install

Postby BMWW » 01 Feb 2021 08:51

But I assume this will install Web plugins and add Context Menus, right?
I seem your solution install VLC with defaults properties and THEN you change Preferences afterwards.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 25 guests