this is my Install CMD file is doing

@echo off
cls
echo --------------------------------------------------------
echo .
echo .
echo .      Installing VLC Media Player - Please Wait
echo .         Window will close once installed

REM Uninstall existing VLC version
if exist "%PROGRAMFILES%\VideoLAN\VLC\uninstall.exe" "%PROGRAMFILES%\VideoLAN\VLC\uninstall.exe" /S
if exist "%PROGRAMFILES(x86)%\VideoLAN\VLC\uninstall.exe" "%PROGRAMFILES% (x86)\VideoLAN\VLC\uninstall.exe" /S
:: Wait for 20 seconds
ping -n 20 127.0.0.1 > NUL

REM Run VLC Installer
"%~dp0vlc-2.2.4-win32.exe" /language=en_GB /S

REM Removes VLC Desktop Icon - Windows XP
if exist "%allusersprofile%\Desktop\VLC media player.lnk" del "%allusersprofile%\Desktop\VLC media player.lnk" /S

REM Removes VLC Desktop Icon - Windows 7
if exist "%public%\Desktop\VLC media player.lnk" del "%public%\Desktop\VLC media player.lnk" /S

REM Remove all the useless shortcuts from Program Menu
if exist "%ProgramData%\Microsoft\Windows\Start Menu\Programs\VideoLAN\Documentation.lnk" del "%ProgramData%\Microsoft\Windows\Start Menu\Programs\VideoLAN\Documentation.lnk" /S

if exist "%ProgramData%\Microsoft\Windows\Start Menu\Programs\VideoLAN\Release Notes.lnk" del "%ProgramData%\Microsoft\Windows\Start Menu\Programs\VideoLAN\Release Notes.lnk" /S

if exist "%ProgramData%\Microsoft\Windows\Start Menu\Programs\VideoLAN\VideoLAN Website.lnk" del "%ProgramData%\Microsoft\Windows\Start Menu\Programs\VideoLAN\VideoLAN Website.lnk" /S

if exist "%ProgramData%\Microsoft\Windows\Start Menu\Programs\VideoLAN\VLC media player - reset preferences and cache files.lnk" del "%ProgramData%\Microsoft\Windows\Start Menu\Programs\VideoLAN\VLC media player - reset preferences and cache files.lnk" /S

if exist "%ProgramData%\Microsoft\Windows\Start Menu\Programs\VideoLAN\VLC media player skinned.lnk" del "%ProgramData%\Microsoft\Windows\Start Menu\Programs\VideoLAN\VLC media player skinned.lnk" /S

REM Return exit code to SCCM
exit /B %EXIT_CODE%

How can i write to disable auto-updates and Disable Privacy and Network Policies.

I am going to use it to deploy via sccm
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

1

VLC stores its preferences in a set of files in "%Userprofile%\AppData\Roaming\VLC":
    ml.xspf,
    vlcqtinterface.ini
    vlcrc.

You'll need to create a method for deploying these. I built an MSI which includes setting up an ActiveSetup trigger to self-heal the installation. Remember that, to do that, the MSI will need to be either local or accessible to all users. The former is obviously easier to achieve if you have no control over share permissions, etc. I typically set up any package with an MSI which relies on self-healing to populate user-profile stuff so that the package gets copied to and persists in the local cache: storage is stupidly cheap nowadays.

Answered 07/06/2016 by: VBScab
Red Belt

  • how did you built the msi based in these instruction?
Please log in to comment
1

I used an MSI authoring tool.

Answered 07/07/2016 by: VBScab
Red Belt

Please log in to comment
This content is currently hidden from public view.
Reason: Removed by member request
For more information, visit our FAQ's.

0

If your unfamiliar with MSI you can use group policy preferences to get the job done.

Ideally MSI though.


Answered 08/10/2016 by: Killragtshirts
Orange Belt

Please log in to comment
Answer this question or Comment on this question for clarity